Browse Source

plm BM

master
ruanqi 2 years ago
parent
commit
2d1592ece1
  1. 1
      src/api/project/project.js
  2. 2
      src/views/modules/common/Chooselist.vue
  3. 265
      src/views/modules/project/projectPart/com_projectPart_quotation.vue
  4. 405
      src/views/modules/project/projectPart/com_projectPart_technicalSpecification.vue
  5. 638
      src/views/modules/project/projectPart/searchProjectPart.vue
  6. 24
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_customerInformation.vue
  7. 52
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_routing.vue
  8. 62
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_tsd_basicInformation.vue

1
src/api/project/project.js

@ -44,3 +44,4 @@ export const addContact= data => createAPI(`/project/addContact`,'post',data)
export const deleteContact= data => createAPI(`/project/deleteContact`,'post',data)
export const queryCustomerContact= data => createAPI(`/project/queryCustomerContact`,'post',data)
export const projectInfoPartSearch= data => createAPI(`/project/projectInfoPartSearch`,'post',data)

2
src/views/modules/common/Chooselist.vue

@ -120,7 +120,7 @@ export default {
init(tagNo,param,conSql) {
this.tagNo = tagNo
this.visible = true;
this.param = param
this.param = param===null?'':param
this.conSql = conSql?conSql: ''
// tagNo
getChooselist({"tagNo": tagNo}).then(({data}) => {

265
src/views/modules/project/projectPart/com_projectPart_quotation.vue

@ -0,0 +1,265 @@
<script>
import {getQuotationHeader} from "@/api/quotation/quotationHeader.js";
export default {
name: 'com_project_info_quotation_header',
data(){
return{
dataList:[],
columnList: [
{
userId: this.$store.state.user.name,
functionId: 101002001,
serialNumber: '101002001Table5QuotationNo',
tableId: '101002001Table5',
tableName: '报价信息表',
columnProp: 'quotationNo',
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: 101002001,
serialNumber: '101002001Table5QuotationDate',
tableId: '101002001Table5',
tableName: '报价信息表',
columnProp: 'quotationDate',
headerAlign: 'center',
align: 'center',
columnLabel: '报价日期',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100
},
{
userId: this.$store.state.user.name,
functionId: 101002001,
serialNumber: '101002001Table5CustomerNo',
tableId: '101002001Table5',
tableName: '报价信息表',
columnProp: 'customerNo',
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: 101002001,
serialNumber: '101002001Table5CustomerName',
tableId: '101002001Table5',
tableName: '报价信息表',
columnProp: 'customerName',
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: 101002001,
serialNumber: '101002001Table5QuoterName',
tableId: '101002001Table5',
tableName: '报价信息表',
columnProp: 'quoterName',
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: 101002001,
serialNumber: '101002001Table5TrackerName',
tableId: '101002001Table5',
tableName: '报价信息表',
columnProp: 'trackerName',
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: 101002001,
serialNumber: '101002001Table5Currency',
tableId: '101002001Table5',
tableName: '报价信息表',
columnProp: 'currency',
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: 101002001,
serialNumber: '101002001Table5QuotationStatus',
tableId: '101002001Table5',
tableName: '报价信息表',
columnProp: 'quotationStatus',
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: 101002001,
serialNumber: '101002001CustomerInquiryNo',
tableId: '101002001Table5',
tableName: '报价信息表',
columnProp: 'customerInquiryNo',
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: 101002001,
serialNumber: '101002001InternalInquiryNo',
tableId: '101002001Table5',
tableName: '报价信息表',
columnProp: 'internalInquiryNo',
headerAlign: 'center',
align: 'center',
columnLabel: '内部报价单号',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 120
},
],
exportData: [],
exportName: '项目询价'+this.dayjs().format('YYYYMMDDHHmmss'),
exportHeader: ["项目询价"],
exportFooter: [],
}
},
methods:{
init(params){
getQuotationHeaderForPart(params).then(({data})=>{
this.dataList = data.data.records;
}).catch((error)=>{
})
},
fields() {
let json = "{"
this.columnList.forEach((item, index) => {
if (index === this.columnList.length - 1) {
json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\""
} else {
json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" + ","
}
})
json += "}"
let s = eval("(" + json + ")")
return s
},
createExportData() {
return this.dataList;
},
}
}
</script>
<template>
<div>
<el-form :inline="true" label-position="top" style="margin-top: 0px">
<download-excel
:fields="fields()"
:data="exportData"
type="xls"
:name="exportName"
:header="exportHeader"
:footer="exportFooter"
:fetch="createExportData"
worksheet="导出信息"
class="el-button el-button--primary el-button--medium">
{{ '导出' }}
</download-excel>
</el-form>
<el-table :data="dataList" stripe border style="width: 100%;margin-top: 12px" :height="240">
<el-table-column
v-for="(item,index) in columnList" :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]}${index === 0?("-"+scope.row['versionCode']):''}` }}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
</template>
</el-table-column>
</el-table>
</div>
</template>
<style scoped>
</style>

405
src/views/modules/project/projectPart/com_projectPart_technicalSpecification.vue

@ -0,0 +1,405 @@
<template>
<div class="mod-config">
<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="addModal()">新增</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>
</el-form>
<el-table
:data="dataList"
height="240"
border
v-loading="dataListLoading"
style="width: 100%; ">
<el-table-column
v-for="(item,index) in columnList" :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-->
<!-- 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>
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist>
</div>
</template>
<script>
import {
technicalSpecificationListSearch, //
} from "@/api/sampleManagement/technicalSpecificationList.js"
import Chooselist from '@/views/modules/common/Chooselist'
export default {
components: {
Chooselist
},
data() {
return {
dataList: [],
searchData: {
site: '',
username: this.$store.state.user.name,
testPartNo: '',
page: 1,
limit: 1000
},
visible:false,
dataListLoading: false,
currentRow:'',
columnList:[
{
userId: this.$store.state.user.name,
functionId: 101002002,
serialNumber: '101002002Table9CodeNo',
tableId: "101002002Table9",
tableName: "技术参数卡列表",
columnProp: "codeNo",
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: 101002002,
serialNumber: '101002002Table9Status',
tableId: "101002002Table9",
tableName: "技术参数卡列表",
columnProp: "statusDesc",
headerAlign: "center",
align: "left",
columnLabel: "状态",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 50
},{
userId: this.$store.state.user.name,
functionId: 101002002,
serialNumber: '101002002Table9FinalPartNo',
tableId: "101002002Table9",
tableName: "技术参数卡列表",
columnProp: "finalPartNo",
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: 101002002,
serialNumber: '101002002Table9TestPartNo',
tableId: "101002002Table9",
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: 101002002,
// serialNumber: '101002002Table9PartName',
// tableId: "101002002Table9",
// 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: 101002002,
serialNumber: '101002002Table9RevNo',
tableId: "101002002Table9",
tableName: "技术参数卡列表",
columnProp: "revNo",
headerAlign: "center",
align: "left",
columnLabel: "版本号",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 50
},{
userId: this.$store.state.user.name,
functionId: 101002002,
serialNumber: '101002002Table9ECNFlag',
tableId: "101002002Table9",
tableName: "技术参数卡列表",
columnProp: "ecnFlag",
headerAlign: "center",
align: "left",
columnLabel: "ECN变更",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 50
},{
userId: this.$store.state.user.name,
functionId: 101002002,
serialNumber: '101002002Table9EcnNo',
tableId: "101002002Table9",
tableName: "技术参数卡列表",
columnProp: "ecnNo",
headerAlign: "center",
align: "left",
columnLabel: "ECN单据号",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80
},{
userId: this.$store.state.user.name,
functionId: 101002002,
serialNumber: '101002002Table9ProofingNo',
tableId: "101002002Table9",
tableName: "技术参数卡列表",
columnProp: "proofingNo",
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: 101002002,
serialNumber: '101002002Table9CreateDate',
tableId: "101002002Table9",
tableName: "技术参数卡列表",
columnProp: "createDate",
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: 101002002,
serialNumber: '101002002Table9CreateBy',
tableId: "101002002Table9",
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: 101002002,
serialNumber: '101002002Table9UpdateDate',
tableId: "101002002Table9",
tableName: "技术参数卡列表",
columnProp: "updateDate",
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: 101002002,
serialNumber: '101002002Table9UpdateBy',
tableId: "101002002Table9",
tableName: "技术参数卡列表",
columnProp: "updateBy",
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: 101002002,
serialNumber: '101002002Table9ecnAddress',
tableId: "101002002Table9",
tableName: "技术参数卡列表",
columnProp: "ecnAddress",
headerAlign: "center",
align: "left",
columnLabel: "ECN文档链接",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 200
},
],
// start
exportData: [],
exportName: '技术参数卡'+this.dayjs().format('YYYYMMDDHHmmss'),
exportHeader: ["技术参数卡"],
exportFooter: [],
// end
}
},
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
// }
// }
},
//
init(inData) {
//
this.searchData = JSON.parse(JSON.stringify(inData));
//
this.searchTable();
},
searchTable(){
technicalSpecificationListSearch(this.searchData).then(({data}) => {
//
if (data && data.code == 0) {
this.dataList = data.page.list
} else {
this.dataList = [];
}
});
},
createExportData() {
return this.dataList;
},
startDownload() {
// this.exportData = this.dataList
},
finishDownload() {
},
fields() {
let json = "{"
this.columnList.forEach((item, index) => {
if (index == this.columnList.length - 1) {
json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\""
} else {
json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" + ","
}
})
json += "}"
let s = eval("(" + json + ")")
return s
},
},
}
</script>
<style scoped>
</style>

638
src/views/modules/project/projectPart/searchProjectPart.vue

@ -0,0 +1,638 @@
<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.projectId" style="width: 160px"></el-input>
</el-form-item>
<el-form-item label="物料编码">
<el-input v-model="searchData.testPartNo" style="width: 160px"></el-input>
</el-form-item>
<el-form-item label=" ">
<el-button @click="search()" 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
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="project">
<el-form label-position="top" style="margin-top: 0px; margin-left: 0px;">
<el-row :gutter="20">
<el-col :span="5"><div class="grid-content bg-purple">
<el-form-item :label="'项目号'">
<el-input v-model="projectData.projectId" readonly ></el-input>
</el-form-item>
</div></el-col>
<el-col :span="5"><div class="grid-content bg-purple">
<el-form-item :label="'项目类型'">
<el-input v-model="projectData.projectType" readonly ></el-input>
</el-form-item>
</div></el-col>
<el-col :span="5"><div class="grid-content bg-purple">
<el-form-item :label="'项目来源'">
<el-input v-model="projectData.projectSourceDesc" readonly ></el-input>
</el-form-item>
</div></el-col>
<el-col :span="5"><div class="grid-content bg-purple">
<el-form-item :label="'优先级'">
<el-input v-model="projectData.priorityDesc" readonly></el-input>
</el-form-item>
</div></el-col>
<el-col :span="4"><div class="grid-content bg-purple">
<el-form-item :label="'需求日期'">
<el-input v-model="projectData.needDate" readonly ></el-input>
</el-form-item>
</div></el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="5"><div class="grid-content bg-purple">
<el-form-item :label="'BU'">
<el-input v-model="projectData.buDesc" readonly style="" ></el-input>
</el-form-item>
</div></el-col>
<el-col :span="5"><div class="grid-content bg-purple">
<el-form-item :label="'项目名称'">
<el-input v-model="projectData.projectName" readonly style="" ></el-input>
</el-form-item>
</div></el-col>
<el-col :span="14"><div class="grid-content bg-purple">
<el-form-item :label="'项目描述'">
<el-input v-model="projectData.projectDesc" readonly style="" ></el-input>
</el-form-item>
</div></el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="8"><div class="grid-content bg-purple">
<el-form-item :label="'项目经理'">
<el-input v-model="projectData.projectManagerName" readonly style="" ></el-input>
</el-form-item>
</div></el-col>
<el-col :span="8"><div class="grid-content bg-purple">
<el-form-item :label="'项目责任人'">
<el-input v-model="projectData.projectOwnerName" readonly style="" ></el-input>
</el-form-item>
</div></el-col>
<el-col :span="8"><div class="grid-content bg-purple">
<el-form-item :label="'项目权限'">
<el-input v-model="projectData.userRoleName" readonly style="" ></el-input>
</el-form-item>
</div></el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="24"><div class="grid-content bg-purple">
<el-form-item :label="'客户应用/要求'">
<el-input v-model="projectData.customerRemark" readonly style="" ></el-input>
</el-form-item>
</div></el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="24"><div class="grid-content bg-purple">
<el-form-item :label="'其他特殊要求'">
<el-input v-model="projectData.remark" readonly style="" ></el-input>
</el-form-item>
</div></el-col>
</el-row>
</el-form>
</el-tab-pane>
<el-tab-pane label="询价信息" name="projectQuotation">
<projectQuotation ref="projectQuotation" ></projectQuotation>
</el-tab-pane>
<el-tab-pane label="报价信息" name="quotationHeader">
</el-tab-pane>
<el-tab-pane label="打样信息" name="sample">
<sample ref="sample" ></sample>
</el-tab-pane>
<el-tab-pane label="测试记录" name="test">
<test ref="test" ></test>
</el-tab-pane>
<el-tab-pane label="刀模申请" name="purchase">
</el-tab-pane>
<el-tab-pane label="技术参数卡" name="technicalSpecification">
<technicalSpecification ref="technicalSpecification" ></technicalSpecification>
</el-tab-pane>
</el-tabs>
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist>
</div>
</template>
<script>
import {projectInfoPartSearch,
projectInfoSearch,
} from "@/api/project/project.js"
import Chooselist from '@/views/modules/common/Chooselist'
import projectQuotation from "../projectInfo/com_project_puotation.vue";/*組件*/
import technicalSpecification from "./com_projectPart_technicalSpecification";
import sample from "../projectInfo/com_project_sample";
import test from "../projectInfo/com_project_test";
import quotationHeader from "../projectInfo/com_project_info_quotation";
export default {
components: {
Chooselist,
technicalSpecification,
projectQuotation,
sample,
test,
quotationHeader,
},
name: "searchProjectPart",
data() {
return{
currentRow:{},
activeName: 'project',
tagNo:'',
tagNo2:'',
pageIndex: 1,
pageSize: 100,
totalPage: 0,
height: 200,
dataListLoading: false,
// start
exportData: [],
exportName: "项目物料清单" + this.dayjs().format('YYYYMMDDHHmmss'),
exportHeader: ["项目物料清单"],
exportFooter: [],
exportList:[],
// start
dataList1:[],
columnList1:[
{
userId: this.$store.state.user.name,
functionId: 101002002,
serialNumber: '101002002Table1TestPartNo',
tableId: "101002002Table1",
tableName: "项目物料",
columnProp: "testPartNo",
headerAlign: "center",
align: "center",
columnLabel: "物料编码",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100
},{
userId: this.$store.state.user.name,
functionId: 101002002,
serialNumber: '101002002Table1PartType',
tableId: "101002002Table1",
tableName: "项目物料",
columnProp: "partType",
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: 101002002,
serialNumber: '101002002Table1PartType',
tableId: "101002002Table1",
tableName: "项目物料",
columnProp: "projectId",
headerAlign: "center",
align: "center",
columnLabel: "项目",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100
},{
userId: this.$store.state.user.name,
functionId: 101002002,
serialNumber: '101002002Table1PartTypeDesc',
tableId: "101002002Table1",
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: 101002002,
serialNumber: '101002002Table1PartDesc',
tableId: "101002002Table1",
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: 101002002,
serialNumber: '101002002Table1CodeNo',
tableId: "101002002Table1",
tableName: "项目物料",
columnProp: "codeNo",
headerAlign: "center",
align: "center",
columnLabel: "属性模板",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80
},{
userId: this.$store.state.user.name,
functionId: 101002002,
serialNumber: '101002002Table1CodeDesc',
tableId: "101002002Table1",
tableName: "项目物料",
columnProp: "codeDesc",
headerAlign: "center",
align: "left",
columnLabel: "属性模板名称",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100
},{
userId: this.$store.state.user.name,
functionId: 101002002,
serialNumber: '101002002Table1Remark',
tableId: "101002002Table1",
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: 101002002,
serialNumber: '101002002Table1CreateDate',
tableId: "101002002Table1",
tableName: "项目物料",
columnProp: "createDate",
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: 101002002,
serialNumber: '101002002Table1CreateBy',
tableId: "101002002Table1",
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: 101002002,
serialNumber: '101002002Table1UpdateDate',
tableId: "101002002Table1",
tableName: "项目物料",
columnProp: "updateDate",
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: 101002002,
serialNumber: '101002002Table1UpdateBy',
tableId: "101002002Table1",
tableName: "项目物料",
columnProp: "updateBy",
headerAlign: "center",
align: "left",
columnLabel: "修改人",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80
},
],
searchData:{
page: 1,
limit: 100,
site:this.$store.state.user.site,
projectId:'',
testPartNo:'',
userName:this.$store.state.user.name,
},
projectData: {
id: 0,
site:this.$store.state.user.site,
projectLevel:'',
projectId:'',
projectTypeDb:'',
projectType:'',
customerName:'',
customerId:'',
projectName:'',
projectDesc:'',
needDate:'',
priority:'',
projectSource:'',
priorityDesc:'',
projectSourceDesc:'',
projectManagerName:'',
projectOwnerName:'',
customerRemark:'',
remark:'',
userRoleName:'',
buDesc:'',
buNo:'',
},
}
},
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 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
},
//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
//
sizeChangeHandle (val) {
this.pageSize = val
this.pageIndex = 1
this.search()
},
//
currentChangeHandle (val) {
this.pageIndex = val
this.search()
},
//
changeData(row) {
this.currentRow = JSON.parse(JSON.stringify(row));
let inData= {
site:row.site,
projectId:row.projectId,
page: 1,
limit: 10,
}
projectInfoSearch(inData).then(({data}) => {
if (data.code == 0) {
if(data.page.list.length>0){
this.projectData=data.page.list[0]
}
}
this.dataListLoading = false
})
this.refreshCurrentTabTable()
},
search () {
this.searchData.limit = this.pageSize
this.searchData.page = this.pageIndex
projectInfoPartSearch(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.changeData(this.dataList1[0])
}
}
this.dataListLoading = false
})
},
tabClick (tab, event) {
//
this.refreshCurrentTabTable()
},
// table
refreshCurrentTabTable () {
if (this.activeName === 'technicalSpecification') {
this.refreshTable('technicalSpecification');
}
if (this.activeName === 'projectQuotation') {
this.refreshTable('projectQuotation');
}
if (this.activeName == 'quotationHeader') {
this.refreshTable('quotationHeader');
}
if (this.activeName == 'sample') {
this.refreshTable('sample');
}
if (this.activeName == 'test') {
this.refreshTable('test');
}
},
refreshTable(type){
let inData={
site: this.currentRow.site,
testPartNo: this.currentRow.testPartNo,
page: 1,
limit: 1000
}
if(type==='technicalSpecification'){
this.$refs.technicalSpecification.init(inData)
}
if(type==='projectQuotation'){
this.$refs.projectQuotation.init(inData)
}
// if(type==='quotationHeader'){
// this.$refs.quotationHeader.init(inData)
// }
if(type==='sample'){
this.$refs.sample.init(inData)
}
if(type==='test'){
this.$refs.test.init(inData)
}
},
}
}
</script>
<style scoped>
</style>

24
src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_customerInformation.vue

@ -1,5 +1,8 @@
<template>
<div class="mod-config">
<el-form label-position="top" style="margin-top: 1px; margin-left: 0px;">
<el-button type="primary" @click="refresh()" >刷新数据</el-button>
</el-form>
<el-form label-position="top" style="margin-top: 1px; margin-left: 0px;">
<el-row :gutter="20">
<el-col :span="6"><div class="grid-content bg-purple">
@ -254,10 +257,19 @@
this.searchTable();
},
searchTable(){
refresh(){
if(this.searchData.codeNo===''||this.searchData.codeNo===null){
this.$alert('刷新失败请重新打开技术参数卡', '失败', {
confirmButtonText: '确定'
})
return false
}
searchBMcustomerInfo(this.searchData).then(({data}) => {
if(data.rows.length>0){
this.dataForm = data.rows[0];
this.$alert('刷新成功', '成功', {
confirmButtonText: '确定'
})
}else {
this.dataForm.site=this.searchData.site
this.dataForm.codeNo=this.searchData.codeNo
@ -266,6 +278,16 @@
});
},
searchTable(){
searchBMcustomerInfo(this.searchData).then(({data}) => {
if(data.rows.length>0){
this.dataForm = data.rows[0];
}else {
this.dataForm.site=this.searchData.site
this.dataForm.codeNo=this.searchData.codeNo
}
});
},
saveData(){
this.$confirm("是否保存信息?", '保存提示', {
confirmButtonText: '确定',

52
src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_routing.vue

@ -2,7 +2,15 @@
<div class="mod-config">
<el-form :inline="true" label-position="top" style="margin-top: 1px; margin-left: 0px;" >
<el-form-item label="Process">
<el-input v-model="process" style="width: 520px"></el-input>
<el-input v-model="sheetData.process" style="width: 254px"></el-input>
</el-form-item>
<el-form-item >
<span slot="label" style="" @click="getBaseList(103,1)"><a herf="#">热转移打印人员</a></span>
<el-input v-model="sheetData.overPrintOperatorName" placeholder="请选择人员" readonly style="width: 120px" ></el-input>
</el-form-item>
<el-form-item >
<span slot="label" style="" @click="getBaseList(103,2)"><a herf="#">印刷人员</a></span>
<el-input v-model="sheetData.printOperatorName" placeholder="请选择人员" readonly style="width: 120px" ></el-input>
</el-form-item>
<el-form-item label=" ">
<el-button type="primary" @click="updateBMProcess()" >保存</el-button>
@ -499,7 +507,15 @@
tableData:'',
partList:[],
ifDisableFlag:false,
process:"",
sheetData:{
site: '',
codeNo: '',
process:'',
overPrintOperator:'',
overPrintOperatorName:'',
printOperator:'',
printOperatorName:'',
},
dataForm:{
site: '',
codeNo:'',
@ -832,7 +848,9 @@
//线
modalFlag:false,
routeDetailList:[],
currentRoute:null
currentRoute:null,
tagNo:'',
tagNo1:'',
}
},
mounted () {
@ -847,9 +865,12 @@
this.tagNo1 = type
this.$nextTick(() => {
let strVal = ''
if (val === 1013) {
if (val === 103) {
if(type==1) {
strVal = this.dataForm.partType
strVal = this.sheetData.overPrintOperator
}
if(type==2) {
strVal = this.sheetData.printOperator
}
}
this.$refs.baseList.init(val, strVal)
@ -857,10 +878,14 @@
},
/* 列表方法的回调 */
getBaseData (val) {
if (this.tagNo === 1013) {
if (this.tagNo === 103) {
if(this.tagNo1==1) {
this.dataForm.partType = val.Base_id
this.dataForm.partTypeDesc = val.Base_desc
this.sheetData.overPrintOperator = val.username
this.sheetData.overPrintOperatorName = val.user_display
}
if(this.tagNo1==2) {
this.sheetData.printOperator = val.username
this.sheetData.printOperatorName = val.user_display
}
}
},
@ -881,7 +906,7 @@
searchTable(){
tsdBasicInformationSearch(this.searchData).then(({data}) => {
if(data.row){
this.process=data.row.process
this.sheetData=data.row
}else {
}
@ -1297,16 +1322,11 @@
this.currentRoute=row
},
updateBMProcess(){
let inData={
site:this.searchData.site,
codeNo:this.searchData.codeNo,
process:this.process
}
updateBMProcess(inData).then(({data}) => {
updateBMProcess(this.sheetData).then(({data}) => {
if (data && data.code === 0) {
tsdBasicInformationSearch(this.searchData).then(({data}) => {
if(data.row){
this.process=data.row.process
this.sheetData=data.row
}else {
}

62
src/views/modules/sampleManagement/technicalSpecificationDetail/com_tsd_basicInformation.vue

@ -1,5 +1,8 @@
<template>
<div class="mod-config">
<el-form label-position="top" style="margin-top: 1px; margin-left: 0px;">
<el-button type="primary" @click="refresh()" >刷新数据</el-button>
</el-form>
<el-form label-position="top" style="margin-top: 1px; margin-left: 0px;">
<el-row :gutter="20">
<el-col :span="6"><div class="grid-content bg-purple">
@ -132,14 +135,14 @@
resize='none'
maxlength="200"
:disabled="ifDisableFlag"
style="height: 500px" >
style="height: 200px" >
</el-input>
</el-form-item>
</div></el-col>
</el-row>
</el-form>
<el-form label-position="top" style="margin-top: 15px; margin-left: 0px;text-align:center">
<el-form label-position="top" style="margin-top: 25px; margin-left: 0px;text-align:center">
<el-button type="primary" @click="saveData()" v-if="!ifDisableFlag">保存</el-button>
</el-form>
<el-dialog
@ -320,6 +323,61 @@
this.searchTable();
},
refresh(){
if(this.searchData.codeNo===''||this.searchData.codeNo===null){
this.$alert('刷新失败请重新打开技术参数卡', '失败', {
confirmButtonText: '确定'
})
return false
}
tsdBasicInformationSearch(this.searchData).then(({data}) => {
//
if (data && data.code == 0) {
this.dataForm = data.row
this.$alert('刷新成功', '成功', {
confirmButtonText: '确定'
})
let inData = {
site: this.dataForm.site,
codeNo: this.dataForm.codeNo,
type: 'quotationOfficer',
}
searchTechnicalSpecificationTeamStr(inData).then(({data}) => {
this.dataForm.quotationOfficerList = data.rows
})
let inData2 = {
site: this.dataForm.site,
codeNo: this.dataForm.codeNo,
type: 'technician',
}
searchTechnicalSpecificationTeamStr(inData2).then(({data}) => {
this.dataForm.technicianList = data.rows
})
let inData3 = {
site: this.dataForm.site,
codeNo: this.dataForm.codeNo,
type: 'engineer',
}
searchTechnicalSpecificationTeamStr(inData3).then(({data}) => {
this.dataForm.engineerList = data.rows
})
let inData4={
site:data.row.site,
productNo:data.row.finalPartNo,
}
searchPartLastQuotationNo(inData4).then(({data}) => {
if(data.rows.length>0){
this.quotationNo = data.rows[0].quotationNo
}
})
} else {
this.dataList = '';
this.$alert('刷新失败请重新打开技术参数卡', '失败', {
confirmButtonText: '确定'
})
}
});
},
searchTable(){
tsdBasicInformationSearch(this.searchData).then(({data}) => {
//

Loading…
Cancel
Save