|
|
@ -144,73 +144,178 @@ |
|
|
</el-pagination> |
|
|
</el-pagination> |
|
|
|
|
|
|
|
|
<!-- 询价模态框 --> |
|
|
<!-- 询价模态框 --> |
|
|
<el-dialog :title="modalData.title" :close-on-click-modal="false" v-drag :visible.sync="modalFlag" width="495px"> |
|
|
|
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;"> |
|
|
|
|
|
<el-form-item prop="customerDesc" :rules="rules.customerDesc"> |
|
|
|
|
|
<span slot="label" style="" @click="getBaseList(102,1)"><a herf="#">客户</a></span> |
|
|
|
|
|
<el-input v-model="modalData.customerDesc" style="width: 221px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item prop="trackerName" :rules="rules.trackerName"> |
|
|
|
|
|
<span slot="label" style="" @click="getBaseList(103,1)"><a herf="#">跟单员</a></span> |
|
|
|
|
|
<el-input v-model="modalData.trackerName" style="width: 221px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-form> |
|
|
|
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;"> |
|
|
|
|
|
<el-form-item prop="projectName" :rules="rules.projectName"> |
|
|
|
|
|
<span slot="label" style="" @click="getBaseList(104,1)"><a herf="#">项目</a></span> |
|
|
|
|
|
<el-input v-model="modalData.projectName" style="width: 221px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item prop="quoterName" :rules="rules.quoterName"> |
|
|
|
|
|
<span slot="label" style="" @click="getBaseList(103,2)"><a herf="#">询价专员</a></span> |
|
|
|
|
|
<el-input v-model="modalData.quoterName" style="width: 221px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-form> |
|
|
|
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;"> |
|
|
|
|
|
<el-form-item prop="partName" :rules="rules.partName"> |
|
|
|
|
|
|
|
|
<el-dialog :title="modalData.title" @open="openSaveDataDialog" @close="closeSaveDataDialog" :close-on-click-modal="false" top="10vh" :visible.sync="modalFlag" width="50%"> |
|
|
|
|
|
<el-form label-position="top" ref="saveDataForm" :model="modalData" :rules="rules"> |
|
|
|
|
|
<el-row :gutter="10"> |
|
|
|
|
|
<el-col :span="12"> |
|
|
|
|
|
<el-form-item prop="customerNo" label="客户编码"> |
|
|
|
|
|
<span slot="label" @click="getBaseList(102,1)"><a herf="#">客户编码</a></span> |
|
|
|
|
|
<el-row :gutter="10"> |
|
|
|
|
|
<el-col :span="8"> |
|
|
|
|
|
<el-input :readonly="true" v-model="modalData.customerNo"></el-input> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="16"> |
|
|
|
|
|
<el-input disabled v-model="modalData.customerDesc"></el-input> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="4"> |
|
|
|
|
|
<el-form-item label="客户负责人"> |
|
|
|
|
|
<el-input v-model="modalData.customerResponsiblePerson"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="4"> |
|
|
|
|
|
<el-form-item label="客户负责人联系方式"> |
|
|
|
|
|
<el-input v-model="modalData.customerResponsiblePersonPhone"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="4"> |
|
|
|
|
|
<el-form-item prop="trackerName"> |
|
|
|
|
|
<span slot="label" style="" @click="getBaseList(103,1)"><a herf="#">跟单员</a></span> |
|
|
|
|
|
<el-input v-model="modalData.trackerName"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
<el-row :gutter="10"> |
|
|
|
|
|
<el-col :span="12"> |
|
|
|
|
|
<el-form-item prop="projectId" label="项目编码"> |
|
|
|
|
|
<span slot="label" v-if="modalData.customerNo" style="" @click="chooseProjectListFlag = true"><a herf="#">项目编码</a></span> |
|
|
|
|
|
<el-row :gutter="10"> |
|
|
|
|
|
<el-col :span="8"> |
|
|
|
|
|
<el-input :disabled="!modalData.customerNo" :readonly="true" v-model="modalData.projectId"></el-input> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="16"> |
|
|
|
|
|
<el-input disabled v-model="modalData.projectName"></el-input> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="4"> |
|
|
|
|
|
<el-form-item label="优先等级" prop="priorityLevel"> |
|
|
|
|
|
<el-select v-model="modalData.priorityLevel"> |
|
|
|
|
|
<el-option label="一般" value="一般"></el-option> |
|
|
|
|
|
<el-option label="紧急" value="紧急"></el-option> |
|
|
|
|
|
<el-option label="重要" value="重要"></el-option> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="4"> |
|
|
|
|
|
<el-form-item label="要求完成日期" prop="requiredCompletionDate"> |
|
|
|
|
|
<el-date-picker v-model="modalData.requiredCompletionDate" style="width: 100%" type="date" value-format="yyyy-MM-dd" placeholder="选择日期"></el-date-picker> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="4"> |
|
|
|
|
|
<el-form-item prop="quoterName"> |
|
|
|
|
|
<span slot="label" style="" @click="getBaseList(103,2)"><a herf="#">询价专员</a></span> |
|
|
|
|
|
<el-input v-model="modalData.quoterName"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
<el-row :gutter="10"> |
|
|
|
|
|
<el-col :span="24"> |
|
|
|
|
|
<el-form-item label="备注" style="display: block;min-height: 90px"> |
|
|
|
|
|
<el-input type="textarea" :autosize="{minRows: 3, maxRows: 3}" resize='none' v-model="modalData.remark"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
<el-row :gutter="10"> |
|
|
|
|
|
<el-col :span="24"> |
|
|
|
|
|
<el-form-item label="技术注意事项" style="display: block;min-height: 90px"> |
|
|
|
|
|
<el-input |
|
|
|
|
|
type="textarea" |
|
|
|
|
|
v-model="modalData.technicalConsiderations" |
|
|
|
|
|
:autosize="{minRows: 3, maxRows: 3}" |
|
|
|
|
|
resize='none'> |
|
|
|
|
|
</el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
<el-form-item prop="partName" style="display: none"> |
|
|
<span slot="label" @click="getProjectPartList()"><a>项目物料</a></span> |
|
|
<span slot="label" @click="getProjectPartList()"><a>项目物料</a></span> |
|
|
<el-input v-model="modalData.partName" style="width: 221px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="优先等级" prop="priorityLevel" :rules="rules.priorityLevel"> |
|
|
|
|
|
<el-select v-model="modalData.priorityLevel" style="width: 221px"> |
|
|
|
|
|
<el-option label="一般" value="一般"></el-option> |
|
|
|
|
|
<el-option label="紧急" value="紧急"></el-option> |
|
|
|
|
|
<el-option label="重要" value="重要"></el-option> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-form> |
|
|
|
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;"> |
|
|
|
|
|
<el-form-item label="要求完成日期" prop="requiredCompletionDate" :rules="rules.requiredCompletionDate"> |
|
|
|
|
|
<el-date-picker v-model="modalData.requiredCompletionDate" type="date" value-format="yyyy-MM-dd" placeholder="选择日期" style="width: 142px"></el-date-picker> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="客户负责人"> |
|
|
|
|
|
<el-input v-model="modalData.customerResponsiblePerson" style="width: 142px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="客户负责人联系方式"> |
|
|
|
|
|
<el-input v-model="modalData.customerResponsiblePersonPhone" style="width: 142px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-form> |
|
|
|
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;"> |
|
|
|
|
|
<el-form-item label="备注"> |
|
|
|
|
|
<el-input v-model="modalData.remark" style="width: 456px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-form> |
|
|
|
|
|
<el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;"> |
|
|
|
|
|
<el-form-item label="技术注意事项"> |
|
|
|
|
|
<el-input |
|
|
|
|
|
type="textarea" |
|
|
|
|
|
v-model="modalData.technicalConsiderations" |
|
|
|
|
|
:rows="3" |
|
|
|
|
|
resize='none' |
|
|
|
|
|
show-word-limit |
|
|
|
|
|
style="width: 456px;height: 20px"> |
|
|
|
|
|
</el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="modalData.partName" style="display: none"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
<div class="rq"> |
|
|
|
|
|
<el-form :inline="true" label-position="top" :model="projectPartData"> |
|
|
|
|
|
<el-form-item label="产品编码"> |
|
|
|
|
|
<el-input v-model="projectPartData.testPartNo" clearable style="width: 120px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="产品名称"> |
|
|
|
|
|
<el-input v-model="projectPartData.partName" clearable style="width: 120px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label=" "> |
|
|
|
|
|
<el-button type="primary" @click="getProjectPartList()">查询</el-button> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-form> |
|
|
|
|
|
<el-table |
|
|
|
|
|
:height="223" |
|
|
|
|
|
:data="projectPartList" |
|
|
|
|
|
ref="projectPartTable" |
|
|
|
|
|
@row-click="projectPartClickRow" |
|
|
|
|
|
@selection-change="selectionProjectPart" |
|
|
|
|
|
:row-key="getRowKeys" |
|
|
|
|
|
border |
|
|
|
|
|
v-loading="dataListLoading" |
|
|
|
|
|
style="width: 100%;"> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
type="selection" |
|
|
|
|
|
header-align="center" |
|
|
|
|
|
align="center" |
|
|
|
|
|
:selectable="checkSelectable" |
|
|
|
|
|
width="50" class-name="disabledCheckbox"> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
v-for="(item,index) in projectPartDetailList" :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> |
|
|
|
|
|
</div> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-footer style="height:30px;margin-top: 50px;text-align:center"> |
|
|
|
|
|
|
|
|
<el-footer style="height:35px;margin-top: 10px;padding-bottom:5px;text-align:center"> |
|
|
<el-button type="primary" @click="saveData()">保存</el-button> |
|
|
<el-button type="primary" @click="saveData()">保存</el-button> |
|
|
<el-button type="primary" @click="modalFlag = false">关闭</el-button> |
|
|
<el-button type="primary" @click="modalFlag = false">关闭</el-button> |
|
|
</el-footer> |
|
|
</el-footer> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
<!--选择项目模态框--> |
|
|
|
|
|
<el-dialog title="选择-项目" @close="closeProjectInfoDialog" @open="searchProjectInfoList" :visible.sync="chooseProjectListFlag" width="35%"> |
|
|
|
|
|
<el-form label-position="top" :model="searchProjectData" ref="closeProjectInfoForm"> |
|
|
|
|
|
<el-row :gutter="10"> |
|
|
|
|
|
<el-col :span="6"> |
|
|
|
|
|
<el-form-item label="项目编码"> |
|
|
|
|
|
<el-input v-model="searchProjectData.projectId"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="6"> |
|
|
|
|
|
<el-form-item label="项目名称"> |
|
|
|
|
|
<el-input v-model="searchProjectData.projectName"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="6"> |
|
|
|
|
|
<el-form-item label=" "> |
|
|
|
|
|
<el-button type="primary" @click="searchProjectInfoList">查询</el-button> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
<el-table :height="223" |
|
|
|
|
|
:data="projectList" |
|
|
|
|
|
border |
|
|
|
|
|
@row-click="projectClickRow"> |
|
|
|
|
|
<el-table-column label="项目编码" prop="projectId"/> |
|
|
|
|
|
<el-table-column label="项目名称" prop="projectName"/> |
|
|
|
|
|
</el-table> |
|
|
|
|
|
</el-form> |
|
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
<!-- 录入询价结果模态框 --> |
|
|
<!-- 录入询价结果模态框 --> |
|
|
<el-dialog title="录入询价结果" :close-on-click-modal="false" v-drag :visible.sync="enterResultModalFlag" width="785px"> |
|
|
<el-dialog title="录入询价结果" :close-on-click-modal="false" v-drag :visible.sync="enterResultModalFlag" width="785px"> |
|
|
@ -320,59 +425,7 @@ |
|
|
</el-footer> |
|
|
</el-footer> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
<!-- 产品 --> |
|
|
|
|
|
<el-dialog title="产品清单" :close-on-click-modal="false" v-drag :visible.sync="projectPartModelFlag" width="800px"> |
|
|
|
|
|
<div class="rq"> |
|
|
|
|
|
<el-form :inline="true" label-position="top" :model="projectPartData"> |
|
|
|
|
|
<el-form-item :label="'产品编码'"> |
|
|
|
|
|
<el-input v-model="projectPartData.testPartNo" clearable style="width: 120px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item :label="'产品名称'"> |
|
|
|
|
|
<el-input v-model="projectPartData.partName" clearable style="width: 120px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item :label="' '"> |
|
|
|
|
|
<el-button type="primary" @click="getProjectPartList()">查询</el-button> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-form> |
|
|
|
|
|
<el-table |
|
|
|
|
|
:height="300" |
|
|
|
|
|
:data="projectPartList" |
|
|
|
|
|
ref="projectPartTable" |
|
|
|
|
|
@row-click="projectPartClickRow" |
|
|
|
|
|
@selection-change="selectionProjectPart" |
|
|
|
|
|
:row-key="getRowKeys" |
|
|
|
|
|
border |
|
|
|
|
|
v-loading="dataListLoading" |
|
|
|
|
|
style="width: 100%;"> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
type="selection" |
|
|
|
|
|
header-align="center" |
|
|
|
|
|
align="center" |
|
|
|
|
|
:reserve-selection="true" |
|
|
|
|
|
width="50"> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
v-for="(item,index) in projectPartDetailList" :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> |
|
|
|
|
|
</div> |
|
|
|
|
|
<el-footer style="height:40px;margin-top: 20px;text-align:center"> |
|
|
|
|
|
<el-button type="primary" @click="confirmProjectPart()">确认</el-button> |
|
|
|
|
|
<el-button type="primary" @click="projectPartModelFlag = false">关闭</el-button> |
|
|
|
|
|
</el-footer> |
|
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 页签 --> |
|
|
<!-- 页签 --> |
|
|
<el-tabs v-model="activeTable" style="margin-top: 0px; width: 100%; min-height: 500px;box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);border: 2px;" @tab-click="tabClick" class="customer-tab"> |
|
|
<el-tabs v-model="activeTable" style="margin-top: 0px; width: 100%; min-height: 500px;box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);border: 2px;" @tab-click="tabClick" class="customer-tab"> |
|
|
@ -794,7 +847,8 @@ |
|
|
getProjectPartList, // 获取产品列表 |
|
|
getProjectPartList, // 获取产品列表 |
|
|
checkQuotationStatus, // 检查询价进度 |
|
|
checkQuotationStatus, // 检查询价进度 |
|
|
getProjectInformation, // 获取项目信息 |
|
|
getProjectInformation, // 获取项目信息 |
|
|
getCustomerInformation // 获取客户信息 |
|
|
|
|
|
|
|
|
getCustomerInformation, // 获取客户信息 |
|
|
|
|
|
searchProjectInfoList,// 查询项目信息 |
|
|
} from '@/api/quotation/quotationInformation.js' |
|
|
} from '@/api/quotation/quotationInformation.js' |
|
|
import Chooselist from '@/views/modules/common/Chooselist' |
|
|
import Chooselist from '@/views/modules/common/Chooselist' |
|
|
import quotationUploadFile from "./quotation_upload_file" |
|
|
import quotationUploadFile from "./quotation_upload_file" |
|
|
@ -856,6 +910,17 @@ |
|
|
}, |
|
|
}, |
|
|
// 其它 |
|
|
// 其它 |
|
|
dataListLoading: false, |
|
|
dataListLoading: false, |
|
|
|
|
|
// 选择项目弹框开关 |
|
|
|
|
|
chooseProjectListFlag: false, |
|
|
|
|
|
//项目搜索条件 |
|
|
|
|
|
searchProjectData:{ |
|
|
|
|
|
site:this.$store.state.user.site, |
|
|
|
|
|
projectId:undefined, |
|
|
|
|
|
projectName:undefined, |
|
|
|
|
|
customerId:undefined, |
|
|
|
|
|
}, |
|
|
|
|
|
// 项目集合 |
|
|
|
|
|
projectList:[], |
|
|
// 初始页签 |
|
|
// 初始页签 |
|
|
activeTable: 'quotation_detail_information', |
|
|
activeTable: 'quotation_detail_information', |
|
|
// ======== 数据对象 ======== |
|
|
// ======== 数据对象 ======== |
|
|
@ -875,7 +940,7 @@ |
|
|
quotationStatus: '', |
|
|
quotationStatus: '', |
|
|
testPartNo: '', |
|
|
testPartNo: '', |
|
|
partName: '', |
|
|
partName: '', |
|
|
priorityLevel: '', |
|
|
|
|
|
|
|
|
priorityLevel: '一般', |
|
|
requiredCompletionDate: '', |
|
|
requiredCompletionDate: '', |
|
|
remark: '', |
|
|
remark: '', |
|
|
technicalConsiderations: '', |
|
|
technicalConsiderations: '', |
|
|
@ -945,7 +1010,8 @@ |
|
|
projectPartData: { |
|
|
projectPartData: { |
|
|
site: this.$store.state.user.site, |
|
|
site: this.$store.state.user.site, |
|
|
testPartNo: '', |
|
|
testPartNo: '', |
|
|
partName: '' |
|
|
|
|
|
|
|
|
partName: '', |
|
|
|
|
|
projectId:'', |
|
|
}, |
|
|
}, |
|
|
projectInformationData: { |
|
|
projectInformationData: { |
|
|
projectId: '', |
|
|
projectId: '', |
|
|
@ -1058,7 +1124,7 @@ |
|
|
sortLv: 0, |
|
|
sortLv: 0, |
|
|
status: true, |
|
|
status: true, |
|
|
fixed: '', |
|
|
fixed: '', |
|
|
columnWidth: 100 |
|
|
|
|
|
|
|
|
columnWidth: 120 |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
@ -1130,7 +1196,7 @@ |
|
|
sortLv: 0, |
|
|
sortLv: 0, |
|
|
status: true, |
|
|
status: true, |
|
|
fixed: '', |
|
|
fixed: '', |
|
|
columnWidth: 100 |
|
|
|
|
|
|
|
|
columnWidth: 160 |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
@ -1427,49 +1493,48 @@ |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 102001, |
|
|
functionId: 102001, |
|
|
serialNumber: '102001Table3ProjectId', |
|
|
|
|
|
|
|
|
serialNumber: '102001Table3TestPartNo', |
|
|
tableId: '102001Table3', |
|
|
tableId: '102001Table3', |
|
|
tableName: '项目物料表', |
|
|
tableName: '项目物料表', |
|
|
columnProp: 'projectName', |
|
|
|
|
|
|
|
|
columnProp: 'testPartNo', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
columnLabel: '项目名称', |
|
|
|
|
|
|
|
|
columnLabel: '产品编码', |
|
|
columnHidden: false, |
|
|
columnHidden: false, |
|
|
columnImage: false, |
|
|
columnImage: false, |
|
|
columnSortable: false, |
|
|
columnSortable: false, |
|
|
sortLv: 0, |
|
|
sortLv: 0, |
|
|
status: true, |
|
|
status: true, |
|
|
fixed: '', |
|
|
fixed: '', |
|
|
columnWidth: 120 |
|
|
|
|
|
|
|
|
columnWidth: 150 |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 102001, |
|
|
functionId: 102001, |
|
|
serialNumber: '102001Table3TestPartNo', |
|
|
|
|
|
|
|
|
serialNumber: '102001Table3PartDesc', |
|
|
tableId: '102001Table3', |
|
|
tableId: '102001Table3', |
|
|
tableName: '项目物料表', |
|
|
tableName: '项目物料表', |
|
|
columnProp: 'testPartNo', |
|
|
|
|
|
|
|
|
columnProp: 'partDesc', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
columnLabel: '产品编码', |
|
|
|
|
|
|
|
|
columnLabel: '产品名称', |
|
|
columnHidden: false, |
|
|
columnHidden: false, |
|
|
columnImage: false, |
|
|
columnImage: false, |
|
|
columnSortable: false, |
|
|
columnSortable: false, |
|
|
sortLv: 0, |
|
|
sortLv: 0, |
|
|
status: true, |
|
|
status: true, |
|
|
fixed: '', |
|
|
fixed: '', |
|
|
columnWidth: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
columnWidth: 120 |
|
|
|
|
|
},{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 102001, |
|
|
functionId: 102001, |
|
|
serialNumber: '102001Table3PartName', |
|
|
|
|
|
|
|
|
serialNumber: '102001Table3PartType', |
|
|
tableId: '102001Table3', |
|
|
tableId: '102001Table3', |
|
|
tableName: '项目物料表', |
|
|
tableName: '项目物料表', |
|
|
columnProp: 'partName', |
|
|
|
|
|
|
|
|
columnProp: 'partType', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
columnLabel: '产品名称', |
|
|
|
|
|
|
|
|
columnLabel: '产品类型', |
|
|
columnHidden: false, |
|
|
columnHidden: false, |
|
|
columnImage: false, |
|
|
columnImage: false, |
|
|
columnSortable: false, |
|
|
columnSortable: false, |
|
|
@ -1481,54 +1546,40 @@ |
|
|
], |
|
|
], |
|
|
// ======== 必填规则 ======== |
|
|
// ======== 必填规则 ======== |
|
|
rules: { |
|
|
rules: { |
|
|
|
|
|
customerNo: [ |
|
|
|
|
|
{required: true,message: ' ',trigger: 'change'}, |
|
|
|
|
|
{required: true,message: ' ',trigger: 'blur'}, |
|
|
|
|
|
], |
|
|
customerDesc: [ |
|
|
customerDesc: [ |
|
|
{ |
|
|
|
|
|
required: true, |
|
|
|
|
|
message: ' ', |
|
|
|
|
|
trigger: 'change' |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
{required: true,message: ' ',trigger: 'change'}, |
|
|
|
|
|
{required: true,message: ' ',trigger: 'blur'}, |
|
|
], |
|
|
], |
|
|
trackerName: [ |
|
|
trackerName: [ |
|
|
{ |
|
|
|
|
|
required: true, |
|
|
|
|
|
message: ' ', |
|
|
|
|
|
trigger: 'change' |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
{required: true,message: ' ',trigger: 'change'}, |
|
|
|
|
|
{required: true,message: ' ',trigger: 'blur'}, |
|
|
|
|
|
], |
|
|
|
|
|
projectId: [ |
|
|
|
|
|
{required: true,message: ' ',trigger: 'change'}, |
|
|
|
|
|
{required: true,message: ' ',trigger: 'blur'}, |
|
|
], |
|
|
], |
|
|
projectName: [ |
|
|
projectName: [ |
|
|
{ |
|
|
|
|
|
required: true, |
|
|
|
|
|
message: ' ', |
|
|
|
|
|
trigger: 'change' |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
{required: true,message: ' ',trigger: 'change'}, |
|
|
|
|
|
{required: true,message: ' ',trigger: 'blur'}, |
|
|
], |
|
|
], |
|
|
quoterName: [ |
|
|
quoterName: [ |
|
|
{ |
|
|
|
|
|
required: true, |
|
|
|
|
|
message: ' ', |
|
|
|
|
|
trigger: 'change' |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
{required: true,message: ' ',trigger: 'change'}, |
|
|
|
|
|
{required: true,message: ' ',trigger: 'blur'}, |
|
|
], |
|
|
], |
|
|
partName: [ |
|
|
partName: [ |
|
|
{ |
|
|
|
|
|
required: true, |
|
|
|
|
|
message: ' ', |
|
|
|
|
|
trigger: 'change' |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
{required: true,message: ' ',trigger: 'change'}, |
|
|
|
|
|
{required: true,message: ' ',trigger: 'blur'}, |
|
|
], |
|
|
], |
|
|
priorityLevel: [ |
|
|
priorityLevel: [ |
|
|
{ |
|
|
|
|
|
required: true, |
|
|
|
|
|
message: ' ', |
|
|
|
|
|
trigger: 'change' |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
{required: true,message: ' ',trigger: 'change'}, |
|
|
], |
|
|
], |
|
|
requiredCompletionDate: [ |
|
|
requiredCompletionDate: [ |
|
|
{ |
|
|
|
|
|
required: true, |
|
|
|
|
|
message: ' ', |
|
|
|
|
|
trigger: 'change' |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
{required: true,message: ' ',trigger: 'change'}, |
|
|
|
|
|
{required: true,message: ' ',trigger: 'blur'}, |
|
|
] |
|
|
] |
|
|
}, |
|
|
}, |
|
|
enterResultRules: { |
|
|
enterResultRules: { |
|
|
@ -1636,7 +1687,10 @@ |
|
|
* @param row |
|
|
* @param row |
|
|
*/ |
|
|
*/ |
|
|
projectPartClickRow (row) { |
|
|
projectPartClickRow (row) { |
|
|
this.$refs.projectPartTable.toggleRowSelection(row); |
|
|
|
|
|
|
|
|
if (this.modalData.flag === '1'){ |
|
|
|
|
|
this.$refs.projectPartTable.toggleRowSelection(row); |
|
|
|
|
|
this.confirmProjectPart(); |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
/** |
|
|
/** |
|
|
* 多选 |
|
|
* 多选 |
|
|
@ -1797,7 +1851,7 @@ |
|
|
quotationStatus: '草稿', |
|
|
quotationStatus: '草稿', |
|
|
testPartNo: '', |
|
|
testPartNo: '', |
|
|
partName: '', |
|
|
partName: '', |
|
|
priorityLevel: '', |
|
|
|
|
|
|
|
|
priorityLevel: '一般', |
|
|
requiredCompletionDate: '', |
|
|
requiredCompletionDate: '', |
|
|
remark: '', |
|
|
remark: '', |
|
|
technicalConsiderations: '', |
|
|
technicalConsiderations: '', |
|
|
@ -1868,10 +1922,16 @@ |
|
|
* 获取产品列表 |
|
|
* 获取产品列表 |
|
|
*/ |
|
|
*/ |
|
|
getProjectPartList () { |
|
|
getProjectPartList () { |
|
|
|
|
|
if (!this.modalData.projectId){ |
|
|
|
|
|
this.$message.warning("请选择项目编码!") |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
// 先清空缓存选中 |
|
|
// 先清空缓存选中 |
|
|
this.$nextTick(() => this.$refs.projectPartTable.clearSelection()) |
|
|
this.$nextTick(() => this.$refs.projectPartTable.clearSelection()) |
|
|
// 拿到选中的产品编号 |
|
|
// 拿到选中的产品编号 |
|
|
let projectPartList = this.modalData.testPartNo.split(';') |
|
|
let projectPartList = this.modalData.testPartNo.split(';') |
|
|
|
|
|
// 获得查询 |
|
|
|
|
|
this.projectPartData.projectId = this.modalData.projectId; |
|
|
// 查询所有产品 |
|
|
// 查询所有产品 |
|
|
getProjectPartList(this.projectPartData).then(({data}) => { |
|
|
getProjectPartList(this.projectPartData).then(({data}) => { |
|
|
if (data && data.code === 0) { |
|
|
if (data && data.code === 0) { |
|
|
@ -1882,7 +1942,6 @@ |
|
|
this.$nextTick(() => this.$refs.projectPartTable.toggleRowSelection(val, true)) |
|
|
this.$nextTick(() => this.$refs.projectPartTable.toggleRowSelection(val, true)) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
this.projectPartModelFlag = true |
|
|
|
|
|
}else { |
|
|
}else { |
|
|
this.$alert(data.msg, '错误', { |
|
|
this.$alert(data.msg, '错误', { |
|
|
confirmButtonText: '确定' |
|
|
confirmButtonText: '确定' |
|
|
@ -1895,7 +1954,11 @@ |
|
|
*/ |
|
|
*/ |
|
|
confirmProjectPart () { |
|
|
confirmProjectPart () { |
|
|
if(this.projectPartListSelections.length === 0){ |
|
|
if(this.projectPartListSelections.length === 0){ |
|
|
this.$message.warning('请勾选产品!') |
|
|
|
|
|
|
|
|
// 先清空缓存选中 |
|
|
|
|
|
this.$nextTick(() => this.$refs.projectPartTable.clearSelection()) |
|
|
|
|
|
// 拿到选中的产品编号 |
|
|
|
|
|
this.modalData.testPartNo = '' |
|
|
|
|
|
this.modalData.partName = '' |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
this.modalData.testPartNo = '' |
|
|
this.modalData.testPartNo = '' |
|
|
@ -1906,95 +1969,103 @@ |
|
|
} |
|
|
} |
|
|
this.modalData.testPartNo = this.modalData.testPartNo.substring(1) |
|
|
this.modalData.testPartNo = this.modalData.testPartNo.substring(1) |
|
|
this.modalData.partName = this.modalData.partName.substring(1) |
|
|
this.modalData.partName = this.modalData.partName.substring(1) |
|
|
this.projectPartModelFlag = false |
|
|
|
|
|
}, |
|
|
}, |
|
|
/** |
|
|
/** |
|
|
* 客户信息新增/编辑 |
|
|
* 客户信息新增/编辑 |
|
|
*/ |
|
|
*/ |
|
|
saveData () { |
|
|
saveData () { |
|
|
if (this.modalData.customerNo === '' || this.modalData.customerNo == null) { |
|
|
|
|
|
this.$message.warning('请选择客户编码!') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if (this.modalData.customerDesc === '' || this.modalData.customerDesc == null) { |
|
|
|
|
|
this.$message.warning('请选择客户名称!') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if (this.modalData.tracker === '' || this.modalData.tracker == null) { |
|
|
|
|
|
this.$message.warning('请选择跟单员编码!') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if (this.modalData.trackerName === '' || this.modalData.trackerName == null) { |
|
|
|
|
|
this.$message.warning('请选择跟单员名称!') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if (this.modalData.projectId === '' || this.modalData.projectId == null) { |
|
|
|
|
|
this.$message.warning('请选择项目编码!') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if (this.modalData.projectName === '' || this.modalData.projectName == null) { |
|
|
|
|
|
this.$message.warning('请选择项目名称!') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if (this.modalData.quoter === '' || this.modalData.quoter == null) { |
|
|
|
|
|
this.$message.warning('请选择询价专员编码!') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if (this.modalData.quoterName === '' || this.modalData.quoterName == null) { |
|
|
|
|
|
this.$message.warning('请选择询价专员名称!') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if (this.modalData.testPartNo === '' || this.modalData.testPartNo == null) { |
|
|
|
|
|
this.$message.warning('请选择产品编码!') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if (this.modalData.partName === '' || this.modalData.partName == null) { |
|
|
|
|
|
this.$message.warning('请选择产品名称!') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if (this.modalData.priorityLevel === '' || this.modalData.priorityLevel == null) { |
|
|
|
|
|
this.$message.warning('请选择优先等级!') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if (this.modalData.requiredCompletionDate === '' || this.modalData.requiredCompletionDate == null) { |
|
|
|
|
|
this.$message.warning('请输入要求完成日期!') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if (this.modalData.flag === '1') { |
|
|
|
|
|
quotationInformationSave(this.modalData).then(({data}) => { |
|
|
|
|
|
if (data && data.code === 0) { |
|
|
|
|
|
this.getDataList() |
|
|
|
|
|
this.modalFlag = false |
|
|
|
|
|
this.$message({ |
|
|
|
|
|
message: '操作成功', |
|
|
|
|
|
type: 'success', |
|
|
|
|
|
duration: 1500, |
|
|
|
|
|
onClose: () => {} |
|
|
|
|
|
}) |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$alert(data.msg, '错误', { |
|
|
|
|
|
confirmButtonText: '确定' |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
this.$refs.saveDataForm.validate((valid)=>{ |
|
|
|
|
|
if (!valid){ |
|
|
|
|
|
if (this.modalData.customerNo === '' || this.modalData.customerNo == null) { |
|
|
|
|
|
this.$message.warning('请选择客户编码!') |
|
|
|
|
|
return |
|
|
} |
|
|
} |
|
|
}) |
|
|
|
|
|
} else { |
|
|
|
|
|
quotationInformationEdit(this.modalData).then(({data}) => { |
|
|
|
|
|
if (data && data.code === 0) { |
|
|
|
|
|
this.getDataList() |
|
|
|
|
|
this.modalFlag = false |
|
|
|
|
|
this.$message({ |
|
|
|
|
|
message: '操作成功', |
|
|
|
|
|
type: 'success', |
|
|
|
|
|
duration: 1500, |
|
|
|
|
|
onClose: () => {} |
|
|
|
|
|
|
|
|
if (this.modalData.customerDesc === '' || this.modalData.customerDesc == null) { |
|
|
|
|
|
this.$message.warning('请选择客户名称!') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if (this.modalData.tracker === '' || this.modalData.tracker == null) { |
|
|
|
|
|
this.$message.warning('请选择跟单员编码!') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if (this.modalData.trackerName === '' || this.modalData.trackerName == null) { |
|
|
|
|
|
this.$message.warning('请选择跟单员名称!') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if (this.modalData.projectId === '' || this.modalData.projectId == null) { |
|
|
|
|
|
this.$message.warning('请选择项目编码!') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if (this.modalData.projectName === '' || this.modalData.projectName == null) { |
|
|
|
|
|
this.$message.warning('请选择项目名称!') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if (this.modalData.quoter === '' || this.modalData.quoter == null) { |
|
|
|
|
|
this.$message.warning('请选择询价专员编码!') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if (this.modalData.quoterName === '' || this.modalData.quoterName == null) { |
|
|
|
|
|
this.$message.warning('请选择询价专员名称!') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if (this.modalData.testPartNo === '' || this.modalData.testPartNo == null) { |
|
|
|
|
|
this.$message.warning('请选择产品编码!') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if (this.modalData.partName === '' || this.modalData.partName == null) { |
|
|
|
|
|
this.$message.warning('请选择产品名称!') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if (this.modalData.priorityLevel === '' || this.modalData.priorityLevel == null) { |
|
|
|
|
|
this.$message.warning('请选择优先等级!') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if (this.modalData.requiredCompletionDate === '' || this.modalData.requiredCompletionDate == null) { |
|
|
|
|
|
this.$message.warning('请输入要求完成日期!') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
}else { |
|
|
|
|
|
if (this.projectPartListSelections.length === 0){ |
|
|
|
|
|
this.$message.warning('请选择产品!') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if (this.modalData.flag === '1') { |
|
|
|
|
|
quotationInformationSave(this.modalData).then(({data}) => { |
|
|
|
|
|
if (data && data.code === 0) { |
|
|
|
|
|
this.getDataList() |
|
|
|
|
|
this.modalFlag = false |
|
|
|
|
|
this.$message({ |
|
|
|
|
|
message: '操作成功', |
|
|
|
|
|
type: 'success', |
|
|
|
|
|
duration: 1500, |
|
|
|
|
|
onClose: () => {} |
|
|
|
|
|
}) |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$alert(data.msg, '错误', { |
|
|
|
|
|
confirmButtonText: '确定' |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
}) |
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|
this.$alert(data.msg, '错误', { |
|
|
|
|
|
confirmButtonText: '确定' |
|
|
|
|
|
|
|
|
quotationInformationEdit(this.modalData).then(({data}) => { |
|
|
|
|
|
if (data && data.code === 0) { |
|
|
|
|
|
this.getDataList() |
|
|
|
|
|
this.modalFlag = false |
|
|
|
|
|
this.$message({ |
|
|
|
|
|
message: '操作成功', |
|
|
|
|
|
type: 'success', |
|
|
|
|
|
duration: 1500, |
|
|
|
|
|
onClose: () => {} |
|
|
|
|
|
}) |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$alert(data.msg, '错误', { |
|
|
|
|
|
confirmButtonText: '确定' |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
}, |
|
|
}, |
|
|
/** |
|
|
/** |
|
|
* 询价信息删除 |
|
|
* 询价信息删除 |
|
|
@ -2539,8 +2610,14 @@ |
|
|
getBaseData (val) { |
|
|
getBaseData (val) { |
|
|
if (this.tagNo === 102) { |
|
|
if (this.tagNo === 102) { |
|
|
if(this.tagNo1 === 1) { |
|
|
if(this.tagNo1 === 1) { |
|
|
|
|
|
if (val.Customer_no === this.modalData.customerNo) { |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
this.modalData.customerNo = val.Customer_no |
|
|
this.modalData.customerNo = val.Customer_no |
|
|
this.modalData.customerDesc = val.Customer_desc |
|
|
this.modalData.customerDesc = val.Customer_desc |
|
|
|
|
|
this.modalData.projectId = '' |
|
|
|
|
|
this.modalData.projectName = '' |
|
|
|
|
|
this.projectPartList = []; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if (this.tagNo === 103) { |
|
|
if (this.tagNo === 103) { |
|
|
@ -2589,15 +2666,81 @@ |
|
|
json += '}' |
|
|
json += '}' |
|
|
let s = eval('(' + json + ')') |
|
|
let s = eval('(' + json + ')') |
|
|
return s |
|
|
return s |
|
|
} |
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
// 保存弹框关闭事件 |
|
|
|
|
|
closeSaveDataDialog(){ |
|
|
|
|
|
this.$refs.saveDataForm.resetFields(); // 先清空缓存选中 |
|
|
|
|
|
this.$nextTick(() => this.$refs.projectPartTable.clearSelection()) |
|
|
|
|
|
// 拿到选中的产品编号 |
|
|
|
|
|
this.modalData.testPartNo = '' |
|
|
|
|
|
this.modalData.partName = '' |
|
|
|
|
|
this.projectPartData= { |
|
|
|
|
|
site: this.$store.state.user.site, |
|
|
|
|
|
testPartNo: '', |
|
|
|
|
|
partName: '', |
|
|
|
|
|
projectId:'', |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
// 保存弹框打开事件 |
|
|
|
|
|
openSaveDataDialog(){ |
|
|
|
|
|
if (!this.modalData.projectId){ |
|
|
|
|
|
this.projectPartList = []; |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
this.getProjectPartList() |
|
|
|
|
|
}, |
|
|
|
|
|
// 查询searchProjectInfoList |
|
|
|
|
|
searchProjectInfoList(){ |
|
|
|
|
|
this.projectList = []; |
|
|
|
|
|
this.searchProjectData.customerId = this.modalData.customerNo |
|
|
|
|
|
searchProjectInfoList(this.searchProjectData).then(({data})=>{ |
|
|
|
|
|
if (data && data.code === 0) { |
|
|
|
|
|
this.projectList = data.rows |
|
|
|
|
|
} else { |
|
|
|
|
|
this.projectList = [] |
|
|
|
|
|
} |
|
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
|
this.$message.error('查询项目信息失败') |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
closeProjectInfoDialog(){ |
|
|
|
|
|
this.$refs.closeProjectInfoForm.resetFields(); |
|
|
|
|
|
this.searchProjectData={ |
|
|
|
|
|
site:this.$store.state.user.site, |
|
|
|
|
|
projectId:undefined, |
|
|
|
|
|
projectName:undefined, |
|
|
|
|
|
customerId:undefined, |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
projectClickRow(row){ |
|
|
|
|
|
this.modalData.projectId = row.projectId |
|
|
|
|
|
this.modalData.projectName = row.projectName |
|
|
|
|
|
this.getProjectPartList() |
|
|
|
|
|
this.chooseProjectListFlag = false |
|
|
|
|
|
}, |
|
|
|
|
|
checkSelectable(row,index){ |
|
|
|
|
|
if (this.modalData.flag === '1'){ |
|
|
|
|
|
return true |
|
|
|
|
|
}else { |
|
|
|
|
|
return false |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<style scoped lang="scss"> |
|
|
|
|
|
|
|
|
<style scoped> |
|
|
/deep/ .customer-tab .el-tabs__content { |
|
|
/deep/ .customer-tab .el-tabs__content { |
|
|
padding: 0px !important; |
|
|
padding: 0px !important; |
|
|
height: 459px; |
|
|
height: 459px; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/deep/ .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner{ |
|
|
|
|
|
background-color: #17B3A3; |
|
|
|
|
|
border-color: #17B3A3; |
|
|
|
|
|
} |
|
|
|
|
|
/deep/ .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner::after{ |
|
|
|
|
|
border-color: #FFF |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |
|
|
|
|
|
|