|
|
|
@ -4,13 +4,13 @@
|
|
|
|
|
<el-form :model="filterQuery" label-width="100px" size="mini">
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item label="项目名称:" class="query-form-item">
|
|
|
|
|
<el-input v-model="filterQuery.name" placeholder="请输入项目名称"></el-input>
|
|
|
|
|
<el-form-item label="项目编码:" class="query-form-item">
|
|
|
|
|
<el-input v-model="filterQuery.code" placeholder="请输入项目编码"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item label="项目编码:" class="query-form-item">
|
|
|
|
|
<el-input v-model="filterQuery.code" placeholder="请输入项目编码"></el-input>
|
|
|
|
|
<el-form-item label="项目名称:" class="query-form-item">
|
|
|
|
|
<el-input v-model="filterQuery.name" placeholder="请输入项目名称"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
@ -18,6 +18,7 @@
|
|
|
|
|
<el-button-group>
|
|
|
|
|
<el-button type="primary" icon="el-icon-refresh" @click="onReset">重置</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="onSubmit">查询</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-download" @click="onDownload">更新下载</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-plus" @click="handleAddClick">新增</el-button>
|
|
|
|
|
</el-button-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -31,8 +32,8 @@
|
|
|
|
|
<el-table-column label="项目编码" prop="code" width="140"></el-table-column>
|
|
|
|
|
<el-table-column label="项目名称" prop="name" width="160"></el-table-column>
|
|
|
|
|
<el-table-column label="备注" prop="remark" width="180"></el-table-column>
|
|
|
|
|
<el-table-column label="创建人" prop="createByName" width="140"></el-table-column>
|
|
|
|
|
<el-table-column label="创建时间" prop="createTime" width="160"></el-table-column>
|
|
|
|
|
<!-- <el-table-column label="创建人" prop="createByName" width="140"></el-table-column>-->
|
|
|
|
|
<el-table-column label="更新时间" prop="createTime" width="160"></el-table-column>
|
|
|
|
|
<el-table-column label="操作" width="160" fixed="right">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button type="text" size="small" @click.native.stop="handleModifyClick(scope.row)">编辑</el-button>
|
|
|
|
@ -63,9 +64,9 @@
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="delectList" border highlight-current-row style="width: 100%">
|
|
|
|
|
<el-table-column label="序号" type="index"></el-table-column>
|
|
|
|
|
<el-table-column label="产品DI" prop="nameCode"></el-table-column>
|
|
|
|
|
<el-table-column label="产品编码" prop="thirdId"></el-table-column>
|
|
|
|
|
<el-table-column label="产品名称" prop="cpmctymc"></el-table-column>
|
|
|
|
|
<el-table-column label="DI/物资编码" prop="nameCode"></el-table-column>
|
|
|
|
|
<el-table-column label="第三方编码" prop="thirdId"></el-table-column>
|
|
|
|
|
<el-table-column label="物资名称" prop="cpmctymc"></el-table-column>
|
|
|
|
|
<el-table-column label="规格型号" prop="ggxh"></el-table-column>
|
|
|
|
|
<el-table-column label="计量单位" prop="measname"></el-table-column>
|
|
|
|
|
<el-table-column label="数量" prop="count">
|
|
|
|
@ -105,7 +106,7 @@
|
|
|
|
|
:visible.sync="formVisible"
|
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
|
width="40%"
|
|
|
|
|
width="45%"
|
|
|
|
|
:before-close="closeDialog"
|
|
|
|
|
v-if="formVisible"
|
|
|
|
|
>
|
|
|
|
@ -138,13 +139,14 @@
|
|
|
|
|
<script>
|
|
|
|
|
import {
|
|
|
|
|
addModeldestiny,
|
|
|
|
|
delectModeldestiny, delectModeldestinyProduct,
|
|
|
|
|
delectModeldestiny, delectModeldestinyProduct, downloadBasicProject,
|
|
|
|
|
filterDestinyDelect,
|
|
|
|
|
getBasicDestinyfilter, uploadModeldestinyProduct
|
|
|
|
|
} from "@/api/basic/basicDestinyRel";
|
|
|
|
|
import destinyModelEdit from "@/views/basic/destiny/destinyModelEdit";
|
|
|
|
|
import destinyModelSelectProduct from "@/views/basic/destiny/destinyModelSelectProduct";
|
|
|
|
|
import destinySelectProduct from "@/views/basic/destiny/destinySelectProduct";
|
|
|
|
|
import {downloadSick} from "@/api/basic/sicker/skPersonApi";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
@ -161,6 +163,7 @@ export default {
|
|
|
|
|
formVisible: false,
|
|
|
|
|
selectFormVisible: false,
|
|
|
|
|
loading: false,
|
|
|
|
|
dlBasicLoading: false,
|
|
|
|
|
formName: "",
|
|
|
|
|
total: 0,
|
|
|
|
|
list: [],
|
|
|
|
@ -209,6 +212,21 @@ export default {
|
|
|
|
|
this.filterQuery.page = 1;
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
onDownload() {
|
|
|
|
|
this.dlBasicLoading = true;
|
|
|
|
|
downloadBasicProject({thidSys: "thirdId"}).then(res => {
|
|
|
|
|
this.dlBasicLoading = false
|
|
|
|
|
if (res.code != 20000) {
|
|
|
|
|
this.$message.error(res.message)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
this.dlBasicLoading = false
|
|
|
|
|
this.$message.error("数据加载失败")
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
getList() {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
getBasicDestinyfilter(this.filterQuery).then(response => {
|
|
|
|
|