Merge pull request !14 from 打豆豆/master
This commit is contained in:
打豆豆 2024-01-10 06:26:21 +00:00 committed by Gitee
commit 664ccd1e1c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
21 changed files with 98 additions and 94 deletions

View File

@ -383,7 +383,6 @@ export default {
getList() { getList() {
this.loading = true; this.loading = true;
list(this.queryParams).then((response) => { list(this.queryParams).then((response) => {
console.log(response);
this.dvsubjectList = response.rows; this.dvsubjectList = response.rows;
this.total = response.total; this.total = response.total;
this.loading = false; this.loading = false;
@ -426,24 +425,19 @@ export default {
}, },
// //
handleSelectionChange(selection) { handleSelectionChange(selection) {
console.log(selection);
this.ids = selection.map((item) => item.codeId); this.ids = selection.map((item) => item.codeId);
console.log(this.ids);
this.queryParams.ids = this.ids.join(","); this.queryParams.ids = this.ids.join(",");
this.single = selection.length !== 1; this.single = selection.length !== 1;
this.multiple = !selection.length; this.multiple = !selection.length;
}, },
/** 查看 **/ /** 查看 **/
handleExportArr(row) { handleExportArr(row) {
console.log(row);
this.formQuery = row; this.formQuery = row;
this.openQuery = true; this.openQuery = true;
this.title = "查看"; this.title = "查看";
}, },
/** 处理 */ /** 处理 */
handleUpdate(row) { handleUpdate(row) {
console.log(row);
this.reset(); this.reset();
this.open = true; this.open = true;
this.title = "处理"; this.title = "处理";
@ -468,7 +462,6 @@ export default {
}, },
/** 置顶操作 */ /** 置顶操作 */
handleDelete(row) { handleDelete(row) {
console.log(row);
this.reset(); this.reset();
this.openTop = true; this.openTop = true;
}, },

View File

@ -286,7 +286,6 @@ export default {
getList() { getList() {
this.loading = true; this.loading = true;
list(this.queryParams).then((response) => { list(this.queryParams).then((response) => {
console.log(response);
this.dvsubjectList = response.rows; this.dvsubjectList = response.rows;
this.total = response.total; this.total = response.total;
this.loading = false; this.loading = false;
@ -319,17 +318,13 @@ export default {
}, },
// //
handleSelectionChange(selection) { handleSelectionChange(selection) {
console.log(selection);
this.ids = selection.map((item) => item.codeId); this.ids = selection.map((item) => item.codeId);
console.log(this.ids);
this.queryParams.ids = this.ids.join(","); this.queryParams.ids = this.ids.join(",");
this.single = selection.length !== 1; this.single = selection.length !== 1;
this.multiple = !selection.length; this.multiple = !selection.length;
}, },
/** 查看 **/ /** 查看 **/
handleExportArr(row) { handleExportArr(row) {
console.log(row);
this.formQuery = row; this.formQuery = row;
this.openQuery = true; this.openQuery = true;
this.title = "查看"; this.title = "查看";

View File

@ -383,7 +383,6 @@ export default {
getList() { getList() {
this.loading = true; this.loading = true;
list(this.queryParams).then((response) => { list(this.queryParams).then((response) => {
console.log(response);
this.dvsubjectList = response.rows; this.dvsubjectList = response.rows;
this.total = response.total; this.total = response.total;
this.loading = false; this.loading = false;
@ -426,24 +425,19 @@ export default {
}, },
// //
handleSelectionChange(selection) { handleSelectionChange(selection) {
console.log(selection);
this.ids = selection.map((item) => item.codeId); this.ids = selection.map((item) => item.codeId);
console.log(this.ids);
this.queryParams.ids = this.ids.join(","); this.queryParams.ids = this.ids.join(",");
this.single = selection.length !== 1; this.single = selection.length !== 1;
this.multiple = !selection.length; this.multiple = !selection.length;
}, },
/** 查看 **/ /** 查看 **/
handleExportArr(row) { handleExportArr(row) {
console.log(row);
this.formQuery = row; this.formQuery = row;
this.openQuery = true; this.openQuery = true;
this.title = "查看"; this.title = "查看";
}, },
/** 处理 */ /** 处理 */
handleUpdate(row) { handleUpdate(row) {
console.log(row);
this.reset(); this.reset();
this.open = true; this.open = true;
this.title = "处理"; this.title = "处理";
@ -468,7 +462,6 @@ export default {
}, },
/** 置顶操作 */ /** 置顶操作 */
handleDelete(row) { handleDelete(row) {
console.log(row);
this.reset(); this.reset();
this.openTop = true; this.openTop = true;
}, },

View File

@ -286,7 +286,6 @@ export default {
getList() { getList() {
this.loading = true; this.loading = true;
list(this.queryParams).then((response) => { list(this.queryParams).then((response) => {
console.log(response);
this.dvsubjectList = response.rows; this.dvsubjectList = response.rows;
this.total = response.total; this.total = response.total;
this.loading = false; this.loading = false;
@ -319,17 +318,13 @@ export default {
}, },
// //
handleSelectionChange(selection) { handleSelectionChange(selection) {
console.log(selection);
this.ids = selection.map((item) => item.codeId); this.ids = selection.map((item) => item.codeId);
console.log(this.ids);
this.queryParams.ids = this.ids.join(","); this.queryParams.ids = this.ids.join(",");
this.single = selection.length !== 1; this.single = selection.length !== 1;
this.multiple = !selection.length; this.multiple = !selection.length;
}, },
/** 查看 **/ /** 查看 **/
handleExportArr(row) { handleExportArr(row) {
console.log(row);
this.formQuery = row; this.formQuery = row;
this.openQuery = true; this.openQuery = true;
this.title = "查看"; this.title = "查看";

View File

@ -383,7 +383,6 @@ export default {
getList() { getList() {
this.loading = true; this.loading = true;
list(this.queryParams).then((response) => { list(this.queryParams).then((response) => {
console.log(response);
this.dvsubjectList = response.rows; this.dvsubjectList = response.rows;
this.total = response.total; this.total = response.total;
this.loading = false; this.loading = false;
@ -426,24 +425,19 @@ export default {
}, },
// //
handleSelectionChange(selection) { handleSelectionChange(selection) {
console.log(selection);
this.ids = selection.map((item) => item.codeId); this.ids = selection.map((item) => item.codeId);
console.log(this.ids);
this.queryParams.ids = this.ids.join(","); this.queryParams.ids = this.ids.join(",");
this.single = selection.length !== 1; this.single = selection.length !== 1;
this.multiple = !selection.length; this.multiple = !selection.length;
}, },
/** 查看 **/ /** 查看 **/
handleExportArr(row) { handleExportArr(row) {
console.log(row);
this.formQuery = row; this.formQuery = row;
this.openQuery = true; this.openQuery = true;
this.title = "查看"; this.title = "查看";
}, },
/** 处理 */ /** 处理 */
handleUpdate(row) { handleUpdate(row) {
console.log(row);
this.reset(); this.reset();
this.open = true; this.open = true;
this.title = "处理"; this.title = "处理";

View File

@ -286,7 +286,6 @@ export default {
getList() { getList() {
this.loading = true; this.loading = true;
list(this.queryParams).then((response) => { list(this.queryParams).then((response) => {
console.log(response);
this.dvsubjectList = response.rows; this.dvsubjectList = response.rows;
this.total = response.total; this.total = response.total;
this.loading = false; this.loading = false;
@ -319,17 +318,13 @@ export default {
}, },
// //
handleSelectionChange(selection) { handleSelectionChange(selection) {
console.log(selection);
this.ids = selection.map((item) => item.codeId); this.ids = selection.map((item) => item.codeId);
console.log(this.ids);
this.queryParams.ids = this.ids.join(","); this.queryParams.ids = this.ids.join(",");
this.single = selection.length !== 1; this.single = selection.length !== 1;
this.multiple = !selection.length; this.multiple = !selection.length;
}, },
/** 查看 **/ /** 查看 **/
handleExportArr(row) { handleExportArr(row) {
console.log(row);
this.formQuery = row; this.formQuery = row;
this.openQuery = true; this.openQuery = true;
this.title = "查看"; this.title = "查看";

View File

@ -286,7 +286,6 @@ export default {
getList() { getList() {
this.loading = true; this.loading = true;
list(this.queryParams).then((response) => { list(this.queryParams).then((response) => {
console.log(response);
this.dvsubjectList = response.rows; this.dvsubjectList = response.rows;
this.total = response.total; this.total = response.total;
this.loading = false; this.loading = false;
@ -319,17 +318,13 @@ export default {
}, },
// //
handleSelectionChange(selection) { handleSelectionChange(selection) {
console.log(selection);
this.ids = selection.map((item) => item.codeId); this.ids = selection.map((item) => item.codeId);
console.log(this.ids);
this.queryParams.ids = this.ids.join(","); this.queryParams.ids = this.ids.join(",");
this.single = selection.length !== 1; this.single = selection.length !== 1;
this.multiple = !selection.length; this.multiple = !selection.length;
}, },
/** 查看 **/ /** 查看 **/
handleExportArr(row) { handleExportArr(row) {
console.log(row);
this.formQuery = row; this.formQuery = row;
this.openQuery = true; this.openQuery = true;
this.title = "查看"; this.title = "查看";

View File

@ -383,7 +383,6 @@ export default {
getList() { getList() {
this.loading = true; this.loading = true;
list(this.queryParams).then((response) => { list(this.queryParams).then((response) => {
console.log(response);
this.dvsubjectList = response.rows; this.dvsubjectList = response.rows;
this.total = response.total; this.total = response.total;
this.loading = false; this.loading = false;
@ -426,24 +425,19 @@ export default {
}, },
// //
handleSelectionChange(selection) { handleSelectionChange(selection) {
console.log(selection);
this.ids = selection.map((item) => item.codeId); this.ids = selection.map((item) => item.codeId);
console.log(this.ids);
this.queryParams.ids = this.ids.join(","); this.queryParams.ids = this.ids.join(",");
this.single = selection.length !== 1; this.single = selection.length !== 1;
this.multiple = !selection.length; this.multiple = !selection.length;
}, },
/** 查看 **/ /** 查看 **/
handleExportArr(row) { handleExportArr(row) {
console.log(row);
this.formQuery = row; this.formQuery = row;
this.openQuery = true; this.openQuery = true;
this.title = "查看"; this.title = "查看";
}, },
/** 处理 */ /** 处理 */
handleUpdate(row) { handleUpdate(row) {
console.log(row);
this.reset(); this.reset();
this.open = true; this.open = true;
this.title = "处理"; this.title = "处理";

View File

@ -378,7 +378,6 @@ export default {
}, },
}) })
.then((res) => { .then((res) => {
console.log(res);
if (res.data.code === 200) { if (res.data.code === 200) {
this.elimage = false; this.elimage = false;
this.Powersupply = false; this.Powersupply = false;
@ -404,7 +403,6 @@ export default {
}, },
}) })
.then((res) => { .then((res) => {
console.log(res);
if (res.data.code === 200) { if (res.data.code === 200) {
this.elimage = true; this.elimage = true;
this.Powersupply = true; this.Powersupply = true;

View File

@ -390,7 +390,6 @@ export default {
getList() { getList() {
this.loading = true; this.loading = true;
list(this.queryParams).then((response) => { list(this.queryParams).then((response) => {
console.log(response);
this.dvsubjectList = response.data; this.dvsubjectList = response.data;
this.total = response.data.length; this.total = response.data.length;
this.loading = false; this.loading = false;
@ -426,10 +425,7 @@ export default {
}, },
// //
handleSelectionChange(selection) { handleSelectionChange(selection) {
console.log(selection);
this.ids = selection.map((item) => item.codeId); this.ids = selection.map((item) => item.codeId);
console.log(this.ids);
this.queryParams.ids = this.ids.join(","); this.queryParams.ids = this.ids.join(",");
this.single = selection.length !== 1; this.single = selection.length !== 1;
this.multiple = !selection.length; this.multiple = !selection.length;
@ -471,7 +467,6 @@ export default {
// //
handleNodeClick(data) { handleNodeClick(data) {
console.log(data);
this.machineryIdsArr = []; this.machineryIdsArr = [];
this.form.machineryTypeName = data.machineryTypeName; this.form.machineryTypeName = data.machineryTypeName;
let arr = { let arr = {
@ -482,7 +477,6 @@ export default {
arr.machineryTypeId = data.machineryTypeId; arr.machineryTypeId = data.machineryTypeId;
listMachinery(arr).then((response) => { listMachinery(arr).then((response) => {
console.log(response);
this.listTypeArr = response.rows; this.listTypeArr = response.rows;
}); });
}, },
@ -501,7 +495,6 @@ export default {
this.files = e; this.files = e;
}, },
customUploadChangeImage2(files) { customUploadChangeImage2(files) {
console.log(files);
if (files.status === "ready") return; if (files.status === "ready") return;
if (files.status === "success") { if (files.status === "success") {
const res = files.response || {}; const res = files.response || {};
@ -543,7 +536,6 @@ export default {
// //
previewFile() { previewFile() {
console.log(this.form);
if (this.form.url != undefined && this.form.url != "") { if (this.form.url != undefined && this.form.url != "") {
var url = this.form.url; var url = this.form.url;
window.open(url); window.open(url);
@ -554,7 +546,6 @@ export default {
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
console.log(row);
this.reset(); this.reset();
this.fileList = []; this.fileList = [];
this.machineryIdsArr = {}; this.machineryIdsArr = {};
@ -563,7 +554,6 @@ export default {
if (row.originalName != undefined && row.originalName != "") { if (row.originalName != undefined && row.originalName != "") {
this.$set(name, "name", row.originalName); this.$set(name, "name", row.originalName);
this.fileList.push(name); this.fileList.push(name);
console.log(this.fileList);
} }
let arr = { let arr = {
pageNum: 1, pageNum: 1,
@ -571,18 +561,13 @@ export default {
machineryTypeId: null, machineryTypeId: null,
}; };
arr.machineryTypeId = row.machineryTypeId; arr.machineryTypeId = row.machineryTypeId;
listMachinery(arr).then((response) => { listMachinery(arr).then((response) => {
console.log(response);
this.listTypeArr = response.rows; this.listTypeArr = response.rows;
}); });
let arr1 = row.cadCodeMachineryList.map((item) => item.machineryName); let arr1 = row.cadCodeMachineryList.map((item) => item.machineryName);
this.machineryIdsArr = arr1; this.machineryIdsArr = arr1;
let arr2 = row.cadCodeMachineryList.map((item) => item.machineryId); let arr2 = row.cadCodeMachineryList.map((item) => item.machineryId);
this.form.machineryIds = arr2.join(","); this.form.machineryIds = arr2.join(",");
this.form.subjectId = row.codeId || this.ids; this.form.subjectId = row.codeId || this.ids;
this.open = true; this.open = true;
this.title = "修改代码"; this.title = "修改代码";
@ -625,7 +610,6 @@ export default {
}, },
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
console.log(row);
const subjectIds = row.codeId || this.ids; const subjectIds = row.codeId || this.ids;
this.$modal this.$modal
.confirm("是否确认删除当前的数据项?") .confirm("是否确认删除当前的数据项?")
@ -651,7 +635,6 @@ export default {
/** 单选导出按钮操作 */ /** 单选导出按钮操作 */
handleExportArr(e) { handleExportArr(e) {
console.log(e);
this.queryParams.ids = e.codeId; this.queryParams.ids = e.codeId;
this.download( this.download(
"/cad/code/export", "/cad/code/export",

View File

@ -439,7 +439,6 @@ export default {
this.loading = false; this.loading = false;
}); });
listType().then((response) => { listType().then((response) => {
console.log(response);
this.listTypeArr = response.rows; this.listTypeArr = response.rows;
}); });
}, },
@ -478,7 +477,6 @@ export default {
handleSelectionChange(selection) { handleSelectionChange(selection) {
this.id = selection.map((item) => item.id); this.id = selection.map((item) => item.id);
this.queryParams.ids = this.id.join(","); this.queryParams.ids = this.id.join(",");
console.log(this.queryParams.ids);
this.single = selection.length !== 1; this.single = selection.length !== 1;
this.multiple = !selection.length; this.multiple = !selection.length;
}, },
@ -487,7 +485,6 @@ export default {
this.reset(); this.reset();
this.fileList = []; this.fileList = [];
listType().then((response) => { listType().then((response) => {
console.log(response);
this.listTypeArr = response.rows; this.listTypeArr = response.rows;
}); });
this.open = true; this.open = true;
@ -495,7 +492,6 @@ export default {
}, },
typeNameArr(e) { typeNameArr(e) {
console.log(e);
this.form.typeName = e.name; this.form.typeName = e.name;
this.form.type = e.id; this.form.type = e.id;
}, },
@ -505,7 +501,6 @@ export default {
this.files = e; this.files = e;
}, },
customUploadChangeImage2(files) { customUploadChangeImage2(files) {
console.log(files);
if (files.status === "ready") return; if (files.status === "ready") return;
if (files.status === "success") { if (files.status === "success") {
const res = files.response || {}; const res = files.response || {};
@ -547,7 +542,6 @@ export default {
// //
previewFile() { previewFile() {
console.log(this.form);
if (this.form.url != undefined && this.form.url != "") { if (this.form.url != undefined && this.form.url != "") {
var url = this.form.url; var url = this.form.url;
window.open(url); window.open(url);
@ -558,14 +552,12 @@ export default {
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
console.log(row);
this.reset(); this.reset();
this.fileList = []; this.fileList = [];
this.form = row; this.form = row;
var name = {}; var name = {};
this.$set(name, "name", row.originalName); this.$set(name, "name", row.originalName);
this.fileList.push(name); this.fileList.push(name);
console.log(this.fileList);
this.form.subjectId = row.id || this.id; this.form.subjectId = row.id || this.id;
this.open = true; this.open = true;
this.title = "修改文档"; this.title = "修改文档";

View File

@ -323,7 +323,6 @@ export default {
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
console.log(row);
this.reset(); this.reset();
this.form = row; this.form = row;
this.form.subjectId = row.id; this.form.subjectId = row.id;

View File

@ -724,7 +724,6 @@ export default {
}, },
// //
handleNodeClick(data) { handleNodeClick(data) {
console.log(data);
this.queryParams.machineryTypeId = data.machineryTypeId; this.queryParams.machineryTypeId = data.machineryTypeId;
this.queryParamsdata = data; this.queryParamsdata = data;
this.handleQuery(); this.handleQuery();

View File

@ -323,7 +323,6 @@ export default {
getList() { getList() {
this.loading = true; this.loading = true;
findProAgvline(this.queryParams).then((response) => { findProAgvline(this.queryParams).then((response) => {
console.log(response);
this.dvsubjectList = response.rows; this.dvsubjectList = response.rows;
this.total = response.total; this.total = response.total;
this.loading = false; this.loading = false;
@ -377,13 +376,11 @@ export default {
this.open = true; this.open = true;
this.title = "新增AGV线路"; this.title = "新增AGV线路";
findLineCode().then((response) => { findLineCode().then((response) => {
console.log(response);
this.form.lineCode = response.data.lineCode; this.form.lineCode = response.data.lineCode;
}); });
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
console.log(row);
this.reset(); this.reset();
this.getWorkshops(); this.getWorkshops();
this.form = row; this.form = row;

View File

@ -349,9 +349,8 @@ export default {
methods: { methods: {
/** 列表 */ /** 列表 */
getList() { getList() {
// this.loading = true; this.loading = true;
findProAgvsite(this.queryParams).then((response) => { findProAgvsite(this.queryParams).then((response) => {
console.log(response);
this.dvsubjectList = response.rows; this.dvsubjectList = response.rows;
this.total = response.total; this.total = response.total;
this.loading = false; this.loading = false;
@ -406,13 +405,11 @@ export default {
this.open = true; this.open = true;
this.title = "新增AGV站点"; this.title = "新增AGV站点";
findSiteCode().then((response) => { findSiteCode().then((response) => {
console.log(response);
this.form.siteCode = response.data.siteCode; this.form.siteCode = response.data.siteCode;
}); });
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
console.log(row);
this.reset(); this.reset();
this.getWorkshops(); this.getWorkshops();
this.form = row; this.form = row;
@ -454,7 +451,6 @@ export default {
}, },
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
console.log(row);
deleteProAgvsite({ proAgvsiteId: row.proAgvsiteId }).then((response) => { deleteProAgvsite({ proAgvsiteId: row.proAgvsiteId }).then((response) => {
this.$modal this.$modal
.confirm("是否确认删除当前的数据项?") .confirm("是否确认删除当前的数据项?")

View File

@ -160,12 +160,10 @@ export default{
}, },
// //
handleImgUplaoded(imgUrl){ handleImgUplaoded(imgUrl){
console.log(imgUrl);
this.form.sopUrl = imgUrl; this.form.sopUrl = imgUrl;
}, },
// //
handleImgRemoved(imgUrl){ handleImgRemoved(imgUrl){
console.log(imgUrl);
this.form.sopUrl = null; this.form.sopUrl = null;
}, },
// //

View File

@ -113,6 +113,16 @@
v-hasPermi="['mes:md:vendor:export']" v-hasPermi="['mes:md:vendor:export']"
>导出</el-button> >导出</el-button>
</el-col> </el-col>
<el-col :span="1.5">
<el-button
type="info"
plain
icon="el-icon-upload2"
size="mini"
@click="handleImport"
v-hasPermi="['system:user:import']"
>导入</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row> </el-row>
@ -334,11 +344,43 @@
<el-button @click="cancel"> </el-button> <el-button @click="cancel"> </el-button>
</div> </div>
</el-dialog> </el-dialog>
<!-- 供应商导入对话框 -->
<el-dialog :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
<el-upload
ref="upload"
:limit="1"
accept=".xlsx, .xls"
:headers="upload.headers"
:action="upload.url + '?updateSupport=' + upload.updateSupport"
:disabled="upload.isUploading"
:on-progress="handleFileUploadProgress"
:on-success="handleFileSuccess"
:auto-upload="false"
drag
>
<i class="el-icon-upload"></i>
<div class="el-upload__text">将文件拖到此处<em>点击上传</em></div>
<div class="el-upload__tip text-center" slot="tip">
<div class="el-upload__tip" slot="tip">
<el-checkbox v-model="upload.updateSupport" /> 是否更新已经存在的用户数据
</div>
<span>仅允许导入xlsxlsx格式文件</span>
<el-link type="primary" :underline="false" style="font-size:12px;vertical-align: baseline;" @click="importTemplate">下载模板</el-link>
</div>
</el-upload>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitFileForm"> </el-button>
<el-button @click="upload.open = false"> </el-button>
</div>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
import { listVendor, getVendor, delVendor, addVendor, updateVendor } from "@/api/mes/md/vendor"; import { listVendor, getVendor, delVendor, addVendor, updateVendor } from "@/api/mes/md/vendor";
import { getToken } from "@/utils/auth";
import {genCode} from "@/api/system/autocode/rule" import {genCode} from "@/api/system/autocode/rule"
export default { export default {
name: "Vendor", name: "Vendor",
@ -366,6 +408,21 @@ export default {
title: "", title: "",
// //
open: false, open: false,
//
upload: {
//
open: false,
//
title: "",
//
isUploading: false,
//
updateSupport: 0,
//
headers: { Authorization: "Bearer " + getToken() },
//
url: process.env.VUE_APP_BASE_API + "/mes/md/vendor/importData"
},
// //
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
@ -542,10 +599,36 @@ export default {
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
this.download('md/vendor/export', { this.download('/mes/md/vendor/export', {
...this.queryParams ...this.queryParams
}, `vendor_${new Date().getTime()}.xlsx`) }, `vendor_${new Date().getTime()}.xlsx`)
}, },
/** 导入按钮操作 */
handleImport() {
this.upload.title = "供应商导入";
this.upload.open = true;
},
/** 下载模板操作 */
importTemplate() {
this.download('mes/md/vendor/importTemplate', {
}, `vendor_template_${new Date().getTime()}.xlsx`)
},
//
handleFileUploadProgress(event, file, fileList) {
this.upload.isUploading = true;
},
//
handleFileSuccess(response, file, fileList) {
this.upload.open = false;
this.upload.isUploading = false;
this.$refs.upload.clearFiles();
this.$alert("<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" + response.msg + "</div>", "导入结果", { dangerouslyUseHTMLString: true });
this.getList();
},
//
submitFileForm() {
this.$refs.upload.submit();
},
// //
handleAutoGenChange(autoGenFlag){ handleAutoGenChange(autoGenFlag){
debugger; debugger;

View File

@ -330,7 +330,7 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12" v-if="TypeId">
<el-form-item label="选择线路" prop="lineId"> <el-form-item label="选择线路" prop="lineId">
<el-select <el-select
v-model="form.lineId" v-model="form.lineId"
@ -347,7 +347,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12" v-if="TypeId">
<el-form-item label="选择点位" prop="lineId"> <el-form-item label="选择点位" prop="lineId">
<el-select <el-select
v-model="form.pointId" v-model="form.pointId"
@ -457,6 +457,7 @@ export default {
dvsubjectList: [], dvsubjectList: [],
lineName:"", lineName:"",
pointName:"", pointName:"",
TypeId:false,
// //
form: {}, form: {},
// //
@ -546,7 +547,11 @@ export default {
}, },
// //
handleNodeClick(data) { handleNodeClick(data) {
console.log(data); if(data.machineryTypeId == 229){
this.TypeId = true
}else{
this.TypeId = false
}
this.form.machineryTypeName = data.machineryTypeName; this.form.machineryTypeName = data.machineryTypeName;
}, },
// //
@ -559,7 +564,6 @@ export default {
this.files = e; this.files = e;
}, },
customUploadChangeImage2(files) { customUploadChangeImage2(files) {
console.log(files);
if (files.status === "ready") return; if (files.status === "ready") return;
if (files.status === "success") { if (files.status === "success") {
const res = files.response || {}; const res = files.response || {};
@ -601,7 +605,6 @@ export default {
// //
previewFile() { previewFile() {
console.log(this.form);
if (this.form.url != undefined && this.form.url != "") { if (this.form.url != undefined && this.form.url != "") {
var url = this.form.url; var url = this.form.url;
window.open(url); window.open(url);
@ -667,6 +670,11 @@ export default {
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
this.reset(); this.reset();
if(row.machineryTypeId == 229){
this.TypeId = true
}else{
this.TypeId = false
}
var name = {}; var name = {};
if (row.originalName != undefined && row.originalName != "") { if (row.originalName != undefined && row.originalName != "") {
this.$set(name, "name", row.originalName); this.$set(name, "name", row.originalName);

View File

@ -712,7 +712,6 @@ export default {
debugger; debugger;
let blob = new Blob([res],{type:'application/pdf'}); let blob = new Blob([res],{type:'application/pdf'});
let href = URL.createObjectURL(blob); let href = URL.createObjectURL(blob);
console.log(href);
window.open(`/pdf/web/viewer.html?file=${encodeURIComponent(href)}`); window.open(`/pdf/web/viewer.html?file=${encodeURIComponent(href)}`);
}); });
} }

View File

@ -192,7 +192,6 @@
}) })
} else { } else {
ownerServer.modifyOwnerContBaseById(this.contractForm).then(result => { ownerServer.modifyOwnerContBaseById(this.contractForm).then(result => {
console.log(this.contractForm);
if (result.code === 200) { if (result.code === 200) {
this.$notify({ this.$notify({
title: '成功', title: '成功',

View File

@ -606,7 +606,6 @@ export default {
}, },
// //
restoreRole(roleId) { restoreRole(roleId) {
console.log(roleId);
this.$confirm("确定恢复默认菜单权限吗?", '提示', { this.$confirm("确定恢复默认菜单权限吗?", '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',