md
This commit is contained in:
parent
cc820c3b31
commit
19e523b615
@ -21,6 +21,10 @@
|
||||
<div style="padding: 8px 50px;background: white;">
|
||||
<div>开票单号:</div>
|
||||
<InvoiceSubBillRelList :applySeqNo="scope.row.applySeqNo"> </InvoiceSubBillRelList>
|
||||
|
||||
<div>开票文件:</div>
|
||||
<InvoiceChRecordListReadOnly :applySeqNo="scope.row.applySeqNo" > </InvoiceChRecordListReadOnly>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
@ -8,34 +8,34 @@
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="文件类型" prop="fileName">
|
||||
<el-form-item label="资料类型" prop="fileName">
|
||||
<el-radio-group v-model="form.attachType" >
|
||||
<el-radio :key="'3'" label="3">报关文件</el-radio>
|
||||
<el-radio :key="'4'" label="4">清关文件</el-radio>
|
||||
<el-radio :key="'3'" label="3">报关资料</el-radio>
|
||||
<el-radio :key="'4'" label="4">清关资料</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="文件名称" prop="fileName">
|
||||
<el-input v-model="form.fileName" placeholder="请输入文件名称" />
|
||||
<el-form-item label="资料名称" prop="fileName">
|
||||
<el-input v-model="form.fileName" placeholder="请输入资料名称" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="文件地址" prop="fileUrl">
|
||||
<el-form-item label="资料上传" prop="fileUrl">
|
||||
<!-- <el-input v-model="form.fileUrl" placeholder="请输入文件地址" /> -->
|
||||
<FileUpload :showTip="true" v-model="form.fileUrl" :isNeedUpload="true" :fileType="['jpg','png','bmp','pdf','zip']" :limit="1"></FileUpload>
|
||||
<FileUpload :showTip="true" v-model="form.fileUrl" :isNeedUpload="true" :fileType="['jpg','png','bmp','pdf','zip','xls','xlsx']" :limit="10"></FileUpload>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="文件描述" prop="fileDesc">
|
||||
<el-input v-model="form.fileDesc" placeholder="请输入文件描述" />
|
||||
<el-form-item label="资料描述" prop="fileDesc">
|
||||
<el-input v-model="form.fileDesc" type="textarea" placeholder="请输入资料描述" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<!-- <el-col :span="24">
|
||||
<el-form-item label="备注" prop="remark">
|
||||
<el-input v-model="form.remark" type="textarea" placeholder="请输入备注" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-col> -->
|
||||
|
||||
</el-form>
|
||||
</el-row>
|
||||
@ -67,8 +67,17 @@ export default {
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
id: [
|
||||
{ required: true, message: "id不能为空", trigger: "blur" }
|
||||
billCode: [
|
||||
{ required: true, message: "运单号不能为空", trigger: "blur" }
|
||||
],
|
||||
attachType: [
|
||||
{ required: true, message: "附件类型不能为空", trigger: "blur" }
|
||||
],
|
||||
fileName: [
|
||||
{ required: true, message: "文件名称不能为空", trigger: "blur" }
|
||||
],
|
||||
fileUrl: [
|
||||
{ required: true, message: "文件地址不能为空", trigger: "blur" }
|
||||
],
|
||||
}
|
||||
};
|
||||
@ -89,6 +98,7 @@ export default {
|
||||
methods: {
|
||||
initData() {
|
||||
this.reset();
|
||||
this.form.attachType=3;
|
||||
if(this.id !=undefined) {
|
||||
this.loading = true;
|
||||
getEmisWaybillAttachment(this.id).then(response => {
|
||||
@ -96,7 +106,6 @@ export default {
|
||||
this.loading = false;
|
||||
});
|
||||
}
|
||||
this.getTreeselect();
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
|
||||
@ -1,18 +1,28 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<search-form :model="queryParams" ref="queryForm" size="small" :maxShow="3" label-width="68px" v-show="showSearch" @search="handleQuery" @reset="resetQuery">
|
||||
<el-form-item label="" prop="fileName">
|
||||
<XdPageContainer class="app-container">
|
||||
<SearchForm slot="pageHeader" :model="queryParams" ref="queryForm" size="small" :maxShow="3" label-width="68px" v-show="showSearch" @search="handleQuery" @reset="resetQuery">
|
||||
<el-form-item label="运单号" prop="billCode">
|
||||
<el-input
|
||||
v-model="queryParams.fileName"
|
||||
:placeholder="$t('文件名称')"
|
||||
v-model="queryParams.billCode"
|
||||
:placeholder="$t('运单号')"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
</search-form>
|
||||
<el-form-item label="资料名称" prop="fileName">
|
||||
<el-input
|
||||
v-model="queryParams.fileName"
|
||||
:placeholder="$t('资料名称')"
|
||||
clearable
|
||||
/>
|
||||
</el-form-item>
|
||||
</SearchForm>
|
||||
|
||||
<XdTable
|
||||
slot="pageContent"
|
||||
slot-scope="slotProps"
|
||||
:height="(slotProps.contentHeight)+'px'"
|
||||
|
||||
<xd-table v-loading="loading"
|
||||
v-loading="loading"
|
||||
border
|
||||
size="small"
|
||||
storageName="emisWaybillAttachment_main"
|
||||
@ -35,9 +45,9 @@
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['emis:emisWaybillAttachment:add']"
|
||||
>新增</el-button>
|
||||
>上传资料</el-button>
|
||||
</el-col>
|
||||
<!--
|
||||
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
@ -47,8 +57,8 @@
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['emis:emisWaybillAttachment:edit']"
|
||||
>修改</el-button>
|
||||
</el-col> -->
|
||||
>修改资料</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
@ -73,26 +83,30 @@
|
||||
</el-row>
|
||||
</div>
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column :label="$t('附件类型')" align="center" prop="attachType" min-width="100" />
|
||||
<el-table-column :label="$t('文件名称')" align="center" prop="fileName" min-width="100" />
|
||||
<el-table-column :label="$t('文件地址')" align="center" prop="fileUrl" min-width="100" />
|
||||
<el-table-column :label="$t('文件描述')" align="center" prop="fileDesc" min-width="100" />
|
||||
<el-table-column :label="$t('备注')" align="center" prop="remark" min-width="100" />
|
||||
|
||||
</xd-table>
|
||||
|
||||
<!-- 添加或修改运单附件对话框 -->
|
||||
<!-- <el-dialog :title="title" :visible.sync="open" width="500px" v-dialogDrag :close-on-click-modal="false" append-to-body>
|
||||
BigTransClearAttachForm
|
||||
|
||||
</el-dialog> -->
|
||||
<el-table-column :label="$t('运单号')" align="center" prop="billCode" min-width="150" />
|
||||
<el-table-column :label="$t('资料类型')" align="center" prop="attachType" min-width="100">
|
||||
<template slot-scope="scope">
|
||||
<el-tag v-if="scope.row.attachType==3" type="warning">报关资料</el-tag>
|
||||
<el-tag v-else-if="scope.row.attachType==4" type="info">清关资料</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :label="$t('单证资料名称')" align="center" prop="fileName" min-width="150" :show-overflow-tooltip="true"/>
|
||||
<el-table-column :label="$t('单证资料地址')" align="center" prop="fileUrl" min-width="150" :show-overflow-tooltip="true"/>
|
||||
<el-table-column :label="$t('资料描述')" align="center" prop="fileDesc" min-width="100" :show-overflow-tooltip="true"/>
|
||||
<!-- <el-table-column :label="$t('备注')" align="center" prop="remark" min-width="100" /> -->
|
||||
<el-table-column label="创建人" align="center" prop="createByName" width="80" :show-overflow-tooltip="true"/>
|
||||
<el-table-column label="创建网点" align="center" prop="createSiteName" width="80" :show-overflow-tooltip="true"/>
|
||||
<el-table-column label="创建时间" align="center" prop="createTime" width="170"/>
|
||||
<el-table-column label="修改人" align="center" prop="updateByName" width="80" :show-overflow-tooltip="true"/>
|
||||
<el-table-column label="修改网点" align="center" prop="updateSiteName" width="80" :show-overflow-tooltip="true"/>
|
||||
<el-table-column label="修改时间" align="center" prop="updateTime" width="170"/>
|
||||
</XdTable>
|
||||
|
||||
<el-dialog :title="titleForm" :visible.sync="openForm" width="500px" v-dialogDrag append-to-body>
|
||||
<BigTransClearAttachForm :id="currentId" @on-changed="handleFormChanged" @on-cancel="cancelForm"></BigTransClearAttachForm>
|
||||
</el-dialog>
|
||||
</XdPageContainer>
|
||||
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@ -143,21 +157,20 @@ export default {
|
||||
id:null,
|
||||
titleView:"",
|
||||
openView: false,
|
||||
// 备注时间范围
|
||||
daterangeCreateTime: [],
|
||||
// 备注时间范围
|
||||
daterangeUpdateTime: [],
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 20,
|
||||
attachType: null,
|
||||
attachType: '3,4',
|
||||
fileName: null,
|
||||
fileUrl: null,
|
||||
fileDesc: null,
|
||||
orderNum: null,
|
||||
delFlag: null,
|
||||
remark: null
|
||||
remark: null,
|
||||
params:{
|
||||
blIsClear:1
|
||||
}
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
@ -176,15 +189,6 @@ export default {
|
||||
/** 查询运单附件列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
this.queryParams.params = {};
|
||||
if (null != this.daterangeCreateTime && '' != this.daterangeCreateTime) {
|
||||
this.queryParams.params["beginCreateTime"] = this.daterangeCreateTime[0];
|
||||
this.queryParams.params["endCreateTime"] = this.daterangeCreateTime[1];
|
||||
}
|
||||
if (null != this.daterangeUpdateTime && '' != this.daterangeUpdateTime) {
|
||||
this.queryParams.params["beginUpdateTime"] = this.daterangeUpdateTime[0];
|
||||
this.queryParams.params["endUpdateTime"] = this.daterangeUpdateTime[1];
|
||||
}
|
||||
listEmisWaybillAttachment(this.addDateRange(this.queryParams, this.dateTimeRange)).then(response => {
|
||||
this.emisWaybillAttachmentList = response.rows;
|
||||
this.total = response.total;
|
||||
@ -240,15 +244,8 @@ export default {
|
||||
/** 新增按钮操作 */
|
||||
handleAdd(row) {
|
||||
this.reset();
|
||||
this.open = true;
|
||||
this.title = "新增";
|
||||
|
||||
// 子组件打开模式
|
||||
// if(row != undefined){
|
||||
// this.currentParentId = row.id
|
||||
// }
|
||||
// this.openEmisWaybillAttachment = true;
|
||||
// this.titleEmisWaybillAttachment = "新增";
|
||||
this.openForm = true;
|
||||
this.titleForm = "新增";
|
||||
},
|
||||
handleShowMoreInput(){
|
||||
this.moreInputVisible = !this.moreInputVisible;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user