Browse Source

plm BM

master
ruanqi 2 years ago
parent
commit
44c96e009c
  1. 13
      src/api/project/toolingInfo.js
  2. 3
      src/views/modules/sys/menu-add-or-update.vue
  3. 176
      src/views/modules/tooling/com_tool_upload_file.vue
  4. 940
      src/views/modules/tooling/searchToolApply.vue
  5. 795
      src/views/modules/tooling/toolingInfo.vue

13
src/api/project/toolingInfo.js

@ -0,0 +1,13 @@
import { createAPI } from "@/utils/httpRequest.js";
export const getQuotationHeaderForToolingInfo = (data,ids) => createAPI(`/plm/toolingApplication/getQuotationHeaderForToolingInfo`+ids,'get',data);
export const getQuotationToolForApply = data => createAPI('plm/toolingApplication/getQuotationToolForApply','post',data)
export const saveToolApply= data => createAPI('plm/toolingApplication/saveToolApply','post',data)
export const searchToolApplyHeader= data => createAPI('plm/toolingApplication/searchToolApplyHeader','post',data)
export const searchToolApplyDetail= data => createAPI('plm/toolingApplication/searchToolApplyDetail','post',data)
export const comfirmToolApply= data => createAPI('plm/toolingApplication/comfirmToolApply','post',data)
export const cancelToolApply= data => createAPI('plm/toolingApplication/cancelToolApply','post',data)

3
src/views/modules/sys/menu-add-or-update.vue

@ -151,7 +151,8 @@
type1: '目录', type1: '目录',
type2: '菜单', type2: '菜单',
type3: '按钮', type3: '按钮',
code:'编号'
code:'编号',
typeName:'名称'
}, },
menuList: [], menuList: [],
menuListTreeProps: { menuListTreeProps: {

176
src/views/modules/tooling/com_tool_upload_file.vue

@ -0,0 +1,176 @@
<template>
<div class="customer-css">
<el-dialog :title="titleCon" :close-on-click-modal="false" :visible.sync="visible" width="400px" style="" class="customer-dialog">
<el-form :inline="true" label-position="top" label-width="80px" :rules="dataRole">
<el-row>
<el-col :span="12">
<el-form-item class="customer-item" label="申请单编码:" >
<el-input v-model="pageData.projectId" style="width: 120px;" disabled ></el-input>
</el-form-item>
</el-col>
<!-- <el-col :span="12">-->
<!-- <el-form-item class="customer-item" label="项目名称:">-->
<!-- <el-input v-model="pageData.projectName" style="width: 120px;" disabled></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<el-col :span="12" style="width: 32%">
<el-form-item class="customer-item" label="文件类型:" prop="fileType" :role="dataRole.fileType">
<el-select v-model="pageData.fileType" style="width: 110px">
<el-option label="sop" value="sop"></el-option>
<el-option label="other" value="other"></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-upload class="customer-upload"
drag
action="javascript:void(0);" ref="uploadFile" :limit="1"
:before-upload="beforeUploadHandle" :on-change="onChange"
accept="*" :auto-upload="false"
style="text-align: left;">
<i class="el-icon-upload"></i>
<div class="el-upload__text">将文件拖到此处<em>点击上传</em></div>
</el-upload>
</el-col>
</el-row>
<el-row>
<el-col :span="24" style="margin-bottom: 30px;">
<el-form-item class="customer-item" label="备注:" >
<el-input type="textarea" style="width: 360px;" placeholder="请输入内容" v-model="pageData.fileRemark"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
</el-row>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="saveUploadFile()">保存</el-button>
<el-button type="primary" @click="closeDialog">关闭</el-button>
</span>
</el-dialog>
</div>
</template>
<script>
import {
uploadProjectFile,
} from "@/api/project/project.js"
/* 引入组件 */
var functionId = 'C10000002';
export default {
data() {
return {
titleCon: '项目文件上传',
folder: 'eamObject',
visible: false,
userId: this.$store.state.user.name,
fileList: [],
pageData: {
site: this.$store.state.user.site,
username: this.$store.state.user.name,
projectId: '',
projectName: '',
fileType: '',
fileRemark: '',
},
dataListLoading: false,
dataRole: {
fileType: [
{
required: true,
message: ' ',
trigger: 'change'
}
],
},
}
},
methods: {
//
init(currentRow) {
if(currentRow.projectId==null||currentRow.projectId==''){
this.$alert('请选择申请单!', '错误', {
confirmButtonText: '确定'
})
return false;
}
//
this.pageData = JSON.parse(JSON.stringify(currentRow));
//
this.visible = true;
//
this.pageData.username = this.userId;
//
//this.titleCon = this.labels.titleCon;
},
//
beforeUploadHandle(file) {
// if (file.type !== 'image/jpg' && file.type !== 'image/jpeg' && file.type !== 'image/png' && file.type !== 'image/gif' && file.type !== 'application/pdf') {
// this.$message.error('PDF')
// return false
// }
this.num++
},
/*选择上传文件时*/
onChange(file){
this.fileList.push(file);
},
/*关闭modal*/
closeDialog(){
//
this.$emit('refreshPageTables');
//
this.visible = false;
},
/*保修当前的数据*/
saveUploadFile(){
let remark = this.pageData.fileRemark;
if(this.pageData.fileType === '' || this.pageData.fileType == null){
this.$message.warning("请选择文件类型!");
return false;
}
/*判断文件是否上传*/
if(null == this.fileList || 0 == this.fileList.length){
this.$message.error("请先上传文件!");
return false;
}
const formData = new FormData();
//
formData.append("file", this.fileList[0].raw);
formData.append("folder", this.folder);
formData.append("site", this.pageData.site);
formData.append("projectId", this.pageData.projectId);
formData.append("orderRef3", this.pageData.fileType);
formData.append("remark", remark);
uploadProjectFile(formData).then(({data}) => {
if (data.code === 0) {
this.$message.success(data.msg);
//
this.$refs.uploadFile.clearFiles();
this.pageData.fileRemark = '';
}else {
this.$message.warning(data.msg);
}
})
}
},
created() {
// this.factoryList()
// this.getLanguageList()
}
}
</script>
<style scoped lang="scss">
</style>

940
src/views/modules/tooling/searchToolApply.vue

@ -0,0 +1,940 @@
<template>
<div class="mod-config">
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;">
<el-form-item :label="'申请编码'">
<el-input v-model="searchData.applyId" style="width: 160px"></el-input>
</el-form-item>
<el-form-item label="申请日期">
<el-date-picker
value-format="yyyy-MM-dd"
style="width: 100%"
v-model="searchData.startDate"
type="date"
placeholder="开始日期">
</el-date-picker>
</el-form-item>
<el-form-item label="到">
<el-date-picker
value-format="yyyy-MM-dd"
style="width: 100%"
v-model="searchData.endDate"
type="date"
placeholder="结束日期">
</el-date-picker>
</el-form-item>
<el-form-item label=" ">
<el-button @click="search()" type="primary" style="margin-left: 2px;margin-top:0px">查询</el-button>
<!-- <el-button @click="addOrUpdateHandle('save')" type="primary" style="margin-left: 2px;margin-top: 0px">新增</el-button>-->
<download-excel
:fields="fields()"
:data="exportData"
type="xls"
:name="exportName"
:header="exportHeader"
:footer="exportFooter"
:fetch="createExportData"
:before-generate="startDownload"
:before-finish="finishDownload"
worksheet="导出信息"
class="el-button el-button--primary el-button--medium">
{{ '导出' }}
</download-excel>
</el-form-item>
</el-form>
<el-table
:height="height"
:data="dataList1"
border
ref="mainTable"
@row-click="changeData"
highlight-current-row
v-loading="dataListLoading"
style="width: 100%;">
<el-table-column
header-align="center"
align="center"
width="150"
fixed="right"
label="操作">
<template slot-scope="scope">
<a type="text" size="small" v-if="scope.row.statusCode==='05'" @click="comfirmApply(scope.row)">下达</a>
<a type="text" size="small" v-if="scope.row.statusCode==='05'" @click="cancelApply(scope.row)">取消申请</a>
</template>
</el-table-column>
<el-table-column
v-for="(item,index) in columnList1" :key="index"
:sortable="item.columnSortable"
:prop="item.columnProp"
:header-align="item.headerAlign"
:show-overflow-tooltip="item.showOverflowTooltip"
:align="item.align"
:fixed="item.fixed==''?false:item.fixed"
:min-width="item.columnWidth"
:label="item.columnLabel">
<template slot-scope="scope">
<span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
style="width: 100px; height: 80px"/></span>
</template>
</el-table-column>
</el-table>
<el-pagination
@size-change="sizeChangeHandle"
@current-change="currentChangeHandle"
:current-page="pageIndex"
:page-sizes="[20, 50, 100, 1000]"
:page-size="pageSize"
:total="totalPage"
layout="total, sizes, prev, pager, next, jumper">
</el-pagination>
<el-tabs style="font-size: 12px;min-height: 330px" class="customer-tab" v-model="activeName" type="border-card" @tab-click="tabClick">
<el-tab-pane label="工具明细" name="detail">
<el-table
:data="detailList"
height="240"
border
v-loading="dataListLoading"
style="width: 100%; ">
<el-table-column
v-for="(item,index) in columnList2" :key="index"
:sortable="item.columnSortable"
:prop="item.columnProp"
:header-align="item.headerAlign"
:show-overflow-tooltip="item.showOverflowTooltip"
:align="item.align"
:fixed="item.fixed==''?false:item.fixed"
:min-width="item.columnWidth"
:label="item.columnLabel">
<template slot-scope="scope">
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
style="width: 100px; height: 80px"/></span>
</template>
</el-table-column>
<!-- <el-table-column-->
<!-- fixed="right"-->
<!-- header-align="center"-->
<!-- align="center"-->
<!-- width="100"-->
<!-- label="操作">-->
<!-- <template slot-scope="scope">-->
<!-- &lt;!&ndash; <a :href="'http://192.168.1.130:80/file/'+scope.row.url" :download="scope.row.fileName">下载</a>&ndash;&gt;-->
<!-- <a @click="downloadFile(scope.row)" >下载</a>-->
<!-- <a type="text" size="small" @click="deleteFile(scope.row)">删除</a>-->
<!-- </template>-->
<!-- </el-table-column>-->
</el-table>
</el-tab-pane>
<el-tab-pane label="文档管理" name="down">
<!--文件上传-->
<el-form label-position="top" style="margin-top: 1px; margin-left: 0px;">
<el-form :inline="true" label-position="top" style="margin-top: 0px">
<el-button type="primary" @click="addUploadFileModal()">上传文件</el-button>
</el-form>
</el-form>
<el-table
:data="fileContentList"
height="240"
border
v-loading="dataListLoading"
style="width: 100%; ">
<el-table-column
v-for="(item,index) in columnFileContentArray" :key="index"
:sortable="item.columnSortable"
:prop="item.columnProp"
:header-align="item.headerAlign"
:show-overflow-tooltip="item.showOverflowTooltip"
:align="item.align"
:fixed="item.fixed==''?false:item.fixed"
:min-width="item.columnWidth"
:label="item.columnLabel">
<template slot-scope="scope">
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
style="width: 100px; height: 80px"/></span>
</template>
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
width="100"
label="操作">
<template slot-scope="scope">
<!-- <a :href="'http://192.168.1.130:80/file/'+scope.row.url" :download="scope.row.fileName">下载</a>-->
<a @click="downloadFile(scope.row)" >下载</a>
<a type="text" size="small" @click="deleteFile(scope.row)">删除</a>
</template>
</el-table-column>
</el-table>
</el-tab-pane>
<el-tab-pane label="审批信息" name="tab3"></el-tab-pane>
<el-tab-pane label="处理信息" name="tab4"></el-tab-pane>
</el-tabs>
<!-- 上传文件的modal -->
<projectUploadFile ref="projectUploadFile" @refreshPageTables="getFileContentData()" v-drag></projectUploadFile>
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist>
</div>
</template>
<script>
import {
customerInformationSearch, // `
} from '@/api/customer/customerInformation.js'
import projectUploadFile from "./com_tool_upload_file";/*上传文件的組件*/
import Chooselist from '@/views/modules/common/Chooselist'
import {searchToolApplyHeader,
searchToolApplyDetail,
comfirmToolApply,
cancelToolApply,
} from "@/api/project/toolingInfo.js"
import {
deleteProjectFile,
getFileContentList,
downLoadProjectFile,
getProjectUserRole,
} from "@/api/project/project.js"
/*組件*/
export default {
components: {
Chooselist,
projectUploadFile,
},
name: "null",
data() {
return {
fileContentList: [],
activeName: 'detail',
searchData:{
page: 1,
limit: 100,
site:this.$store.state.user.site,
applyId:'',
startDate:'',
endDate:'',
},
currentRow:'',
height: 200,
dataList1:[],
detailList:[],
dataListLoading: false,
// start
exportData: [],
exportName: "项目清单" + this.dayjs().format('YYYYMMDDHHmmss'),
exportHeader: ["项目清单"],
exportFooter: [],
exportList:[],
// start
exportData2: [],
exportName2: "项目客户联系人" + this.dayjs().format('YYYYMMDDHHmmss'),
exportHeader2: ["项目客户联系人"],
exportFooter2: [],
exportList2:[],
tagNo:'',
tagNo2:'',
pageIndex: 1,
pageSize: 100,
totalPage: 0,
// end
columnList1: [
{
userId: this.$store.state.user.name,
functionId: 106002,
serialNumber: '106002Table1Site',
tableId: "106002Table1",
tableName: "刀具申请主表",
columnProp: "site",
headerAlign: "center",
align: "left",
columnLabel: "工厂编码",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 70
},
{
userId: this.$store.state.user.name,
functionId: 106002,
serialNumber: '106002Table1ApplyNo',
tableId: "106002Table1",
tableName: "刀具申请主表",
columnProp: "applyNo",
headerAlign: "center",
align: "left",
columnLabel: "申请单号",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80
},
{
userId: this.$store.state.user.name,
functionId: 106002,
serialNumber: '106002Table1ApplyBy',
tableId: "106002Table1",
tableName: "刀具申请主表",
columnProp: "applyBy",
headerAlign: "center",
align: "left",
columnLabel: "申请人",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 60
},
{
userId: this.$store.state.user.name,
functionId: 106002,
serialNumber: '106002Table1Status',
tableId: "106002Table1",
tableName: "刀具申请主表",
columnProp: "status",
headerAlign: "center",
align: "left",
columnLabel: "状态",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 60
},
{
userId: this.$store.state.user.name,
functionId: 106002,
serialNumber: '106002Table1ApplyDate',
tableId: "106002Table1",
tableName: "刀具申请主表",
columnProp: "applyDate",
headerAlign: "center",
align: "left",
columnLabel: "申请日期",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80
},
{
userId: this.$store.state.user.name,
functionId: 106002,
serialNumber: '106002Table1ApplyReason',
tableId: "106002Table1",
tableName: "刀具申请主表",
columnProp: "applyReason",
headerAlign: "center",
align: "left",
columnLabel: "申请原因",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 150
},
{
userId: this.$store.state.user.name,
functionId: 106002,
serialNumber: '106002Table1Remark',
tableId: "106002Table1",
tableName: "刀具申请主表",
columnProp: "remark",
headerAlign: "center",
align: "left",
columnLabel: "申请备注",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 200
},
],
columnList2: [
{
userId: this.$store.state.user.name,
functionId: 106002,
serialNumber: '106002Table2SeqNo',
tableId: '106002Table2',
tableName: '工具申请明细',
columnProp: 'seqNo',
headerAlign: 'center',
align: 'center',
columnLabel: '序号',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 40
},
{
userId: this.$store.state.user.name,
functionId: 106002,
serialNumber: '106002Table2QuotationNo',
tableId: '106002Table2',
tableName: '工具申请明细',
columnProp: 'quotationNo',
headerAlign: 'center',
align: 'center',
columnLabel: '所属报价单',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 70
},
{
userId: this.$store.state.user.name,
functionId: 106002,
serialNumber: '106002Table2ToolNo',
tableId: '106002Table2',
tableName: '工具申请明细',
columnProp: 'toolNo',
headerAlign: 'center',
align: 'center',
columnLabel: '工具编码',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 70
},
{
userId: this.$store.state.user.name,
functionId: 106002,
serialNumber: '106002Table2ToolDescription',
tableId: '106002Table2',
tableName: '工具申请明细',
columnProp: 'toolDescription',
headerAlign: 'center',
align: 'center',
columnLabel: '工具描述',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 120
},
{
userId: this.$store.state.user.name,
functionId: 106002,
serialNumber: '106002Table2ToolSpec',
tableId: '106002Table2',
tableName: '工具申请明细',
columnProp: 'toolSpec',
headerAlign: 'center',
align: 'center',
columnLabel: '工具规格',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 120
},
{
userId: this.$store.state.user.name,
functionId: 106002,
serialNumber: '106002Table2ApplyQty',
tableId: '106002Table2',
tableName: '工具申请明细',
columnProp: 'applyQty',
headerAlign: 'center',
align: 'center',
columnLabel: '申请数量',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 60
},
{
userId: this.$store.state.user.name,
functionId: 106002,
serialNumber: '106002Table2ExpectedServiceLife',
tableId: '106002Table2',
tableName: '工具申请明细',
columnProp: 'expectedServiceLife',
headerAlign: 'center',
align: 'center',
columnLabel: '预计寿命',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 50
},
{
userId: this.$store.state.user.name,
functionId: 106002,
serialNumber: '106002Table2UnitCost',
tableId: '106002Table2',
tableName: '工具申请明细',
columnProp: 'unitCost',
headerAlign: 'center',
align: 'center',
columnLabel: '单位成本',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 60
},
{
userId: this.$store.state.user.name,
functionId: 106002,
serialNumber: '106002Table2quotationUnitCost',
tableId: '106002Table2',
tableName: '工具申请明细',
columnProp: 'quotationUnitCost',
headerAlign: 'center',
align: 'center',
columnLabel: '单位报价成本',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 60
},
{
userId: this.$store.state.user.name,
functionId: 106002,
serialNumber: '106002Table2Remark',
tableId: '106002Table2',
tableName: '工具申请明细',
columnProp: 'remark',
headerAlign: 'center',
align: 'center',
columnLabel: '备注',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 200
},
],
columnFileContentArray: [
{
columnProp: 'fileName',
headeralign: 'left',
align: 'left',
columnLabel: '文件名称',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
// }, {
// columnProp: 'createdBy',
// headeralign: 'left',
// align: 'left',
// columnLabel: '',
// columnHidden: false,
// columnImage: false,
// columnSortable: true,
// sortLv: 0,
// status: true,
// fixed: false
}, {
columnProp: 'createDate',
headeralign: 'left',
align: 'left',
columnLabel: '上传时间',
columnHidden: false,
columnImage: false,
columnSortable: true,
sortLv: 0,
status: true,
fixed: false
}, {
columnProp: 'orderRef3',
headeralign: 'left',
align: 'left',
columnLabel: '类型',
columnHidden: false,
columnImage: false,
columnSortable: true,
sortLv: 0,
status: true,
fixed: false
},
],
}
},
watch: {
// columnList1: {
// deep: true,
// handler: function (newV, oldV) {
// debugger
//
// }
// }
},
mounted() {
this.$nextTick(() => {
this.height = window.innerHeight - 520;
})
},
methods: {
// S
getBaseList (val, type) {
this.tagNo = val
this.tagNo2 = type
this.$nextTick(() => {
let strVal = ''
if (val === 1010) {
if(type==1) {
strVal = this.searchData.projectType
}
}
this.$refs.baseList.init(val, strVal)
})
},
/* 列表方法的回调 */
getBaseData (val) {
if (this.tagNo === 1010) {
if(this.tagNo2==1) {
this.searchData.projectType = val.Base_desc
}
}
},
//excel
async createExportData() {
this.searchData.limit = -1
this.searchData.page = 1
await searchToolApplyHeader(this.searchData).then(({data}) => {
this.exportList= data.page.list;
})
return this.exportList;
},
startDownload() {
// this.exportData = this.dataList
},
finishDownload() {
},
fields() {
let json = "{"
this.columnList1.forEach((item, index) => {
if (index == this.columnList1.length - 1) {
json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\""
} else {
json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" + ","
}
})
json += "}"
let s = eval("(" + json + ")")
return s
},
//excel
async createExportData2() {
return this.contactList;
},
startDownload2() {
// this.exportData = this.dataList
},
finishDownload2() {
},
fields2() {
let json = "{"
this.columnList2.forEach((item, index) => {
if (index == this.columnList2.length - 1) {
json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\""
} else {
json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" + ","
}
})
json += "}"
let s = eval("(" + json + ")")
return s
},
// end
//
search () {
this.searchData.limit = this.pageSize
this.searchData.page = this.pageIndex
searchToolApplyHeader(this.searchData).then(({data}) => {
if (data.code == 0) {
this.dataList1 = data.page.list
this.pageIndex = data.page.currPage
this.pageSize = data.page.pageSize
this.totalPage = data.page.totalCount
if(this.dataList1.length>0){
this.$refs.mainTable.setCurrentRow(this.dataList1[0]);
this.currentRow = JSON.parse( JSON.stringify(this.dataList1[0]));
}else {
this.currentRow ={}
}
this.refreshCurrentTabTable ()
}
this.dataListLoading = false
})
},
//
changeData(row) {
this.currentRow = JSON.parse(JSON.stringify(row));
this.refreshCurrentTabTable ();
},
addUploadFileModal(){
let currentData = {
site: this.currentRow.site,
createBy: this.$store.state.user.name,
projectId: this.currentRow.applyNo,
projectName: '',
remark: '',
};
//
this.$nextTick(() => {
this.$refs.projectUploadFile.init(currentData);
})
},
deleteFile(row){
this.$confirm('确定要删除此文件?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
deleteProjectFile(row).then(({data}) => {
if (data && data.code == 0) {
this.getFileContentData();
this.$message({
message: '操作成功',
type: 'success',
duration: 1500,
onClose: () => {
}
})
} else {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
}
})
}).catch(() => {
})
},
tabClick (tab, event) {
//
this.refreshCurrentTabTable()
},
// table
refreshCurrentTabTable () {
if (this.activeName == 'detail') {
this.searchToolApplyDetail();
}
if (this.activeName == 'down') {
this.getFileContentData();
}
},
searchToolApplyDetail(){
searchToolApplyDetail(this.currentRow).then(({data}) => {
if (data.code == 0) {
this.detailList = data.rows
}
})
},
comfirmApply(row){
this.$confirm(`确定下达这个申请`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
comfirmToolApply(row).then(({data}) => {
if (data && data.code === 0) {
this. search ();
this.$message({
message: '操作成功',
type: 'success',
duration: 1500,
onClose: () => {}
})
} else {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
}
})
})
},
cancelApply(row){
this.$confirm(`确定取消这个申请`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
cancelToolApply(row).then(({data}) => {
if (data && data.code === 0) {
this.search();
this.$message({
message: '操作成功',
type: 'success',
duration: 1500,
onClose: () => {
}
})
} else {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
}
})
})
},
//
getFileContentData() {
let currentData = {orderRef2: this.currentRow.applyNo};
getFileContentList(currentData).then(({data}) => {
//
if (data && data.code == 200) {
this.fileContentList = data.rows;
} else {
this.fileContentList = [];
}
});
},
//
downloadFile(row){
// let inData={
// site:this.currentRow.site,
// username:this.$store.state.user.name,
// projectId:this.currentRow.projectId
// }
// getProjectUserRole(inData).then(({data}) => {
// if(this.$store.state.user.name=='admin'||data.row.downFlag=='Y') {
downLoadProjectFile(row)
.then(({data}) => {
//
const blob = new Blob([data], {type:'application/octet-stream;charset=utf-8'})
//
const fileName = row.fileName
// a
const linkNode = document.createElement('a')
linkNode.download = fileName // adownload
linkNode.style.display = 'none'
linkNode.href = URL.createObjectURL(blob) // Blob URL
console.log(linkNode)
// if(val == 'Y'){
// this.pdfVisible = true
// this.pdfUrl = linkNode.href
// }else {
document.body.appendChild(linkNode)
linkNode.click() //
URL.revokeObjectURL(linkNode.href) // URL
document.body.removeChild(linkNode)
// }
})
// }else {
// this.$alert('', '', {
// confirmButtonText: ''
// })
// }
// })
},
//
sizeChangeHandle (val) {
this.pageSize = val
this.pageIndex = 1
this.search()
},
//
currentChangeHandle (val) {
this.pageIndex = val
this.search()
},
},
activated() {
},
}
</script>
<style >
.el-transfer-panel {
border: 2px solid #17b3a3;
border-radius: 4px;
overflow: hidden;
background: #fff;
display: inline-block;
vertical-align: middle;
width: 200px;
max-height: 100%;
-webkit-box-sizing: border-box;
box-sizing: border-box;
position: relative;
}
.el-transfer-panel .el-transfer-panel__header {
height: 40px;
line-height: 40px;
background: #17b3a3;
margin: 0;
padding-left: 15px;
border-bottom: 1px solid #17b3a3;
-webkit-box-sizing: border-box;
box-sizing: border-box;
color: #000;
}
.el-transfer-panel .el-transfer-panel__header .el-checkbox .el-checkbox__label {
font-size: 14px;
color: #303133;
font-weight: 400;
}
</style>

795
src/views/modules/tooling/toolingInfo.vue

@ -0,0 +1,795 @@
<template>
<div class="mod-config">
<!-- 工具申请界面-->
<el-form label-position="top" :model="searchData">
<el-row :gutter="18">
<el-col :span="2">
<el-form-item label="客户编码">
<el-input v-model="searchData.customerNo" clearable />
</el-form-item>
</el-col>
<el-col :span="2">
<el-form-item label="客户名称">
<el-input v-model="searchData.customerName" clearable />
</el-form-item>
</el-col>
<el-col :span="2">
<el-form-item label="跟单员">
<el-input v-model="searchData.trackerName" clearable/>
</el-form-item>
</el-col>
<el-col :span="2">
<el-form-item label="报价单号">
<el-input v-model="searchData.quotationNo" clearable />
</el-form-item>
</el-col>
<el-col :span="2">
<el-form-item label="客户询价单号">
<el-input v-model="searchData.customerInquiryNo" clearable />
</el-form-item>
</el-col>
<el-col :span="2">
<el-form-item label="内部询价单号">
<el-input v-model="searchData.internalInquiryNo" clearable/>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="18">
<el-col :span="2">
<el-form-item label="项目编码">
<el-input v-model="searchData.projectId" clearable />
</el-form-item>
</el-col>
<el-col :span="2">
<el-form-item label="项目名称">
<el-input v-model="searchData.projectName" clearable/>
</el-form-item>
</el-col>
<el-col :span="2">
<el-form-item label="报价专员">
<el-input v-model="searchData.quoterName" size="large" clearable/>
</el-form-item>
</el-col>
<el-col :span="4">
<el-row>
<el-col :span="11">
<el-form-item label="开始日期">
<el-date-picker
value-format="yyyy-MM-dd"
style="width: 100%"
v-model="searchData.startDate"
type="date"
placeholder="开始日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="2">
<el-form-item label=" ">
<svg t="1701739447362" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8471" id="mx_n_1701739447363" width="20" height="20"><path d="M524.288 804.864l444.416-294.912-444.416-294.912v143.36H81.92V655.36h442.368v149.504z m0 0" p-id="8472"></path></svg>
</el-form-item>
</el-col>
<el-col :span="11">
<el-form-item label="结束日期">
<el-date-picker
value-format="yyyy-MM-dd"
style="width: 100%"
v-model="searchData.endDate"
type="date"
placeholder="结束日期">
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
</el-col>
<el-col :span="4">
<el-form-item label=" ">
<el-button plain type="primary" @click="initDataBtn" @keyup.enter.native="initDataBtn"> </el-button>
<el-button type="primary" @click="applyModel">刀模申请</el-button>
</el-form-item>
</el-col>
</el-row>
</el-form>
<el-table
:data="dataList"
:height="height"
border
@selection-change="selectionChangeHandle"
v-loading="dataListLoading"
style="width: 100%; ">
<el-table-column
type="selection"
align="center"
width="30">
</el-table-column>
<!-- <el-table-column-->
<!-- v-for="(item,index) in columnList1" :key="index"-->
<!-- :sortable="item.columnSortable"-->
<!-- :prop="item.columnProp"-->
<!-- :header-align="item.headerAlign"-->
<!-- :show-overflow-tooltip="item.showOverflowTooltip"-->
<!-- :align="item.align"-->
<!-- :fixed="item.fixed==''?false:item.fixed"-->
<!-- :min-width="item.columnWidth"-->
<!-- :label="item.columnLabel">-->
<!-- <template slot-scope="scope">-->
<!-- <span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>-->
<!-- <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"-->
<!-- style="width: 100px; height: 80px"/></span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column
align="center"
prop="quotationNo"
label="报价单号"
min-width="110"
show-overflow-tooltip>
<template slot-scope="{row,$index}">
{{row.quotationNo+'-'+row.versionCode}}
</template>
</el-table-column>
<el-table-column
align="center"
prop="quotationDate"
min-width="90"
label="报价日期"
show-overflow-tooltip>
</el-table-column>
<el-table-column
align="center"
prop="customerNo"
min-width="80"
show-overflow-tooltip
label="客户编码">
</el-table-column>
<el-table-column
align="left"
prop="customerName"
min-width="120"
show-overflow-tooltip
label="客户名称">
</el-table-column>
<el-table-column
align="center"
prop="projectId"
min-width="90"
show-overflow-tooltip
label="项目编码">
</el-table-column>
<el-table-column
align="left"
prop="projectName"
min-width="120"
show-overflow-tooltip
label="项目名称">
</el-table-column>
<el-table-column
align="left"
prop="quoterName"
min-width="80"
show-overflow-tooltip
label="报价专员">
</el-table-column>
<el-table-column
align="left"
prop="trackerName"
min-width="80"
show-overflow-tooltip
label="跟单员">
</el-table-column>
<el-table-column
align="left"
prop="currency"
min-width="60"
show-overflow-tooltip
label="货币">
</el-table-column>
<el-table-column
align="center"
prop="quotationStatus"
min-width="60"
show-overflow-tooltip
label="状态">
</el-table-column>
<el-table-column
align="left"
prop="remark"
show-overflow-tooltip
min-width="120"
label="备注">
</el-table-column>
<el-table-column
align="center"
prop="customerInquiryNo"
show-overflow-tooltip
min-width="80"
label="客户询价单号">
</el-table-column>
<el-table-column
align="center"
prop="internalInquiryNo"
show-overflow-tooltip
min-width="80"
label="内部询价单号">
</el-table-column>
<!-- <el-table-column-->
<!-- header-align="center"-->
<!-- align="center"-->
<!-- width="150"-->
<!-- fixed="right"-->
<!-- label="操作">-->
<!-- <template slot-scope="scope">-->
<!-- <a type="text" size="small" @click="updateModel(scope.row)">修改</a>-->
<!-- <a type="text" size="small" @click="deleteData(scope.row)">删除</a>-->
<!-- </template>-->
<!-- </el-table-column>-->
</el-table>
<el-pagination
@size-change="sizeChangeHandle"
@current-change="currentChangeHandle"
:current-page="pageIndex"
:page-sizes="[20, 50, 100, 1000]"
:page-size="pageSize"
:total="totalPage"
layout="total, sizes, prev, pager, next, jumper">
</el-pagination>
<el-dialog
width="800px" v-drag
:title="'刀模申请'"
:close-on-click-modal="false"
:visible.sync="visible">
<el-form :inline="true" label-position="top" label-width="100px" >
<el-form-item :label="'申请编号'">
<el-input v-model="dataForm.applyNo" style="width: 130px" disabled></el-input>
</el-form-item>
<el-form-item :label="'申请人'">
<el-input v-model="dataForm.applyBy" style="width: 130px" ></el-input>
</el-form-item>
<el-form-item :label="'申请日期'">
<el-date-picker
value-format="yyyy-MM-dd"
style="width: 100%"
v-model="dataForm.applyDate"
type="date"
placeholder="结束日期">
</el-date-picker>
</el-form-item>
<el-form-item :label="'申请总数'">
<el-input v-model="dataForm.applySumQty" style="width: 130px" disabled></el-input>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" label-width="100px" >
<el-form-item :label="'申请原因'">
<el-input v-model="dataForm.applyReason" style="width: 770px" ></el-input>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" label-width="100px" >
<el-form-item :label="'备注'">
<el-input v-model="dataForm.remark" style="width: 770px" ></el-input>
</el-form-item>
</el-form>
<div class="rq">
<el-table
height="250"
:data="toolData"
border
ref="toolTable"
v-loading="dataListLoading"
style="width: 100%;">
<el-table-column label="报价单号" width="90" prop="quotationNo" show-overflow-tooltip/>
<el-table-column label="产品编码" width="150" prop="productNo" show-overflow-tooltip/>
<el-table-column label="工具编码" width="90" prop="toolNo" show-overflow-tooltip/>
<el-table-column label="工具描述" width="120" prop="toolDescription" show-overflow-tooltip/>
<el-table-column label="工具数量" width="60" prop="toolQuantity" show-overflow-tooltip/>
<el-table-column label="申请数量" width="70" prop="applyQty" show-overflow-tooltip>
<template slot-scope="scope">
<el-input v-model="scope.row.applyQty" type="number" @change="changeSum" placeholder="请输入数量" onkeyup="value=value.replace(/^(0+)|[^\d]+/g,'')"
style="width:98%"></el-input>
</template>
</el-table-column>
<el-table-column label="产品名称" width="120" prop="productDesc" show-overflow-tooltip/>
<el-table-column label="工具成本" width="60" prop="unitCost" show-overflow-tooltip/>
<el-table-column label="单位报价成本" width="90" prop="quotationUnitCost" show-overflow-tooltip/>
<el-table-column label="预计使用寿命" width="90" prop="expectedServiceLife" show-overflow-tooltip/>
</el-table>
</div>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="saveData()">{{'保存'}}</el-button>
<el-button type="primary" @click="visible = false">{{'取消'}}</el-button>
</span>
</el-dialog>
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist>
</div>
</template>
<script>
import {
getQuotationHeaderForToolingInfo,
getQuotationToolForApply,
saveToolApply,
} from "@/api/project/toolingInfo.js"
import Chooselist from '@/views/modules/common/Chooselist'
export default {
components: {
Chooselist
},
data() {
return {
height: 200,
dataList: [],
searchFlag:false,
//
searchData:{
site:this.$store.state.user.site,//
customerNo:"", //
customer:"", //
tracker:"", //
quotationStatus:"", //
projectId:"", //
projectName:"", //
quoterName:"", //
startDate:"", //
endDate:"", //
dateValue:[],//
},
exportList:[],
pageIndex: 1,
pageSize: 100,
totalPage: 0,
visible:false,
dataListLoading: false,
currentRow:'',
columnList1:[
{
userId: this.$store.state.user.name,
functionId: 106001,
serialNumber: '106001Table4TestPartNo',
tableId: "106001Table4",
tableName: "项目物料",
columnProp: "testPartNo",
headerAlign: "center",
align: "left",
columnLabel: "物料编码",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80
},{
userId: this.$store.state.user.name,
functionId: 106001,
serialNumber: '106001Table4PartType',
tableId: "106001Table4",
tableName: "项目物料",
columnProp: "partType",
headerAlign: "center",
align: "left",
columnLabel: "物料分类",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 60
},{
userId: this.$store.state.user.name,
functionId: 106001,
serialNumber: '106001Table4PartTypeDesc',
tableId: "106001Table4",
tableName: "项目物料",
columnProp: "partTypeDesc",
headerAlign: "center",
align: "left",
columnLabel: "物料分类名称",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80
},{
userId: this.$store.state.user.name,
functionId: 106001,
serialNumber: '106001Table4PartName',
tableId: "106001Table4",
tableName: "项目物料",
columnProp: "partName",
headerAlign: "center",
align: "left",
columnLabel: "物料名称",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 120
},{
userId: this.$store.state.user.name,
functionId: 106001,
serialNumber: '106001Table4PartDesc',
tableId: "106001Table4",
tableName: "项目物料",
columnProp: "partDesc",
headerAlign: "center",
align: "left",
columnLabel: "物料描述",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 120
},{
userId: this.$store.state.user.name,
functionId: 106001,
serialNumber: '106001Table4PartSpec',
tableId: "106001Table4",
tableName: "项目物料",
columnProp: "partSpec",
headerAlign: "center",
align: "left",
columnLabel: "规格型号",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 120
},{
userId: this.$store.state.user.name,
functionId: 106001,
serialNumber: '106001Table4MaterialNumber',
tableId: "106001Table4",
tableName: "项目物料",
columnProp: "materialNumber",
headerAlign: "center",
align: "left",
columnLabel: "物料图号",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 120
},{
userId: this.$store.state.user.name,
functionId: 106001,
serialNumber: '106001Table4Remark',
tableId: "106001Table4",
tableName: "项目物料",
columnProp: "remark",
headerAlign: "center",
align: "left",
columnLabel: "备注",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 120
},{
userId: this.$store.state.user.name,
functionId: 106001,
serialNumber: '106001Table4CreateDate',
tableId: "106001Table4",
tableName: "项目物料",
columnProp: "createDate",
headerAlign: "center",
align: "left",
columnLabel: "创建时间",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 160
},{
userId: this.$store.state.user.name,
functionId: 106001,
serialNumber: '106001Table4CreateBy',
tableId: "106001Table4",
tableName: "项目物料",
columnProp: "createBy",
headerAlign: "center",
align: "left",
columnLabel: "创建人",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80
},{
userId: this.$store.state.user.name,
functionId: 106001,
serialNumber: '106001Table4UpdateDate',
tableId: "106001Table4",
tableName: "项目物料",
columnProp: "updateDate",
headerAlign: "center",
align: "left",
columnLabel: "上次修改日期",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 160
},{
userId: this.$store.state.user.name,
functionId: 106001,
serialNumber: '106001Table4UpdateBy',
tableId: "106001Table4",
tableName: "项目物料",
columnProp: "updateBy",
headerAlign: "center",
align: "left",
columnLabel: "修改人",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80
},
],
dataForm:{
site: '',
applyNo: '',
applyBy:'',
applyDate:'',
applySumQty:'',
applyReason:'',
remark:'',
createBy:'',
detailList:[],
},
toolData:[],
dataListSelections:[],
dataRole: {
partTypeDesc: [
{
required: true,
message: ' ',
trigger: 'change'
}
],
partName: [
{
required: true,
message: ' ',
trigger: 'change'
}
],
},
// start
exportData: [],
exportName: '项目物料'+this.dayjs().format('YYYYMMDDHHmmss'),
exportHeader: ["项目物料"],
exportFooter: [],
// end
}
},
mounted() {
this.$nextTick(() => {
this.height = window.innerHeight - 230;
})
},
methods: {
// S
getBaseList (val, type) {
this.tagNo = val
this.tagNo1 = type
this.$nextTick(() => {
let strVal = ''
if (val === 1013) {
if(type==1) {
strVal = this.dataForm.partType
}
}
this.$refs.baseList.init(val, strVal)
})
},
/* 列表方法的回调 */
getBaseData (val) {
if (this.tagNo === 1013) {
if(this.tagNo1==1) {
this.dataForm.partType = val.Base_id
this.dataForm.partTypeDesc = val.Base_desc
}
}
},
selectionChangeHandle (val) {
this.dataListSelections = val
},
//
sizeChangeHandle (val) {
this.pageSize = val
this.pageIndex = 1
this.search()
},
//
currentChangeHandle (val) {
this.pageIndex = val
this.search()
},
initDataBtn(){
this.$route.params.ids = null;
this.initData();
},
//
initData(){
let ids = ""
if (this.$route.params.ids){
ids = "?"
for (let i = 0; i < this.$route.params.ids.length; i++) {
ids+='ids='+this.$route.params.ids[i]+'&'
}
ids = ids.substring(0,ids.length-1);
}
let params = {
no:this.no,
size:this.size,
site:this.$store.state.user.site,
customerNo:this.searchData.customerNo,
customerName:this.searchData.customerName,
trackerName:this.searchData.trackerName,
quotationNo:this.searchData.quotationNo,
customerInquiryNo:this.searchData.customerInquiryNo,
internalInquiryNo:this.searchData.internalInquiryNo,
quotationStatus:this.searchData.quotationStatus,
projectId:this.searchData.projectId,
projectName:this.searchData.projectName,
quoterName:this.searchData.quoterName,
startDate:this.searchData.startDate,
endDate: this.searchData.endDate,
}
this.init(params,ids)
},
init(params,ids){
this.initQuotationHeaderLoading = true;
getQuotationHeaderForToolingInfo(params,ids).then(({data})=>{
this.dataList = data.data.records;
this.total = data.data.total;
if (this.tableData.length > 0){
this.quotationHeader = this.tableData[0];
}else {
this.quotationHeader = null;
}
this.initQuotationHeaderLoading = false;
}).catch((error)=>{
this.initQuotationHeaderLoading = false;
})
},
applyModel() {
if(this.dataListSelections.length===0){
this.$alert('请选择报价单!', '错误', {
confirmButtonText: '确定'
})
return false;
}
getQuotationToolForApply(this.dataListSelections).then(({data}) => {
if (data.code == 0) {
this.toolData=data.rows
}
})
this.dataForm={
site: this.$store.state.user.site,
applyNo: '',
applyBy:this.$store.state.user.name,
applyDate:new Date(),
applySumQty:0,
applyReason:'',
remark:'',
createBy:this.$store.state.user.name,
detailList:[],
};
this.visible=true;
},
changeSum(){
this.dataForm.applySumQty =0
for (const item of this.toolData) {
// null undefined 0
this.dataForm.applySumQty += Number(item.applyQty != null && item.applyQty !== '' ? item.applyQty : 0);
}
},
saveData(){
if(this.dataForm.applySumQty===0){
this.$alert('未填写申请数量!', '错误', {
confirmButtonText: '确定'
})
return false;
}
if(this.dataForm.applyBy===''||this.dataForm.applyBy==null){
this.$alert('未选择申请人!', '错误', {
confirmButtonText: '确定'
})
return false;
}
if(this.dataForm.applyDate===''||this.dataForm.applyDate==null){
this.$alert('未选择申请日期!', '错误', {
confirmButtonText: '确定'
})
return false;
}
this.$confirm('确定要保存?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
for (let i = 0; i < this.toolData.length; i++) {
if (this.toolData[i].applyQty===''||this.toolData[i].applyQty==null){
this.toolData[i].applyQty=0
}
}
this.dataForm.detailList=JSON.parse(JSON.stringify(this.toolData))
saveToolApply(this.dataForm).then(({data}) => {
if (data && data.code == 0) {
this.visible=false;
this.initDataBtn();
this.$message({
message: '操作成功',
type: 'success',
duration: 1500,
onClose: () => {
}
})
} else {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
}
})
}).catch(() => {
})
},
//excel
//excel
async createExportData() {
// this.searchData.limit = -1
// this.searchData.page = 1
// await projectInfoSearch(this.searchData).then(({data}) => {
// this.exportList= data.page.list;
// })
//
// return this.exportList;
},
startDownload() {
// this.exportData = this.dataList
},
finishDownload() {
},
fields() {
let json = "{"
this.columnList1.forEach((item, index) => {
if (index == this.columnList1.length - 1) {
json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\""
} else {
json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" + ","
}
})
json += "}"
let s = eval("(" + json + ")")
return s
},
},
}
</script>
<style scoped>
</style>
Loading…
Cancel
Save