|
|
|
@ -70,7 +70,7 @@ |
|
|
|
fixed |
|
|
|
width="160"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-link style="cursor: pointer" @click="editQuotationHeaderStatus(scope.row,'下达')">下达</el-link> |
|
|
|
<el-link style="cursor: pointer" v-if="scope.row.quotationStatus !== '下达'" @click="editQuotationHeaderStatus(scope.row,'下达')">下达</el-link> |
|
|
|
<el-link style="cursor: pointer" @click="editQuotationHeader(scope.row)">编辑</el-link> |
|
|
|
<el-link style="cursor: pointer" @click="deleteQuotationHeader(scope.row)">删除</el-link> |
|
|
|
<el-link style="cursor: pointer" @click="quotationAgain(scope.row)">重新报价</el-link> |
|
|
|
@ -146,7 +146,7 @@ |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item prop="customerNo" label="客户编码"> |
|
|
|
<span slot="label" style="" v-if="insertData.internalInquiryBatchNo ===''" @click="getBaseList(102,1)"><a herf="#">客户编码</a></span> |
|
|
|
<el-input v-model="insertData.customerNo" :disabled="insertData.internalInquiryBatchNo !==''" placeholder="请输入内容" clearable /> |
|
|
|
<el-input v-model="insertData.customerNo" :disabled="insertData.internalInquiryBatchNo !==''" placeholder="请输入内容" clearable @clear="clearCustomer"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12" :offset="2"> |
|
|
|
@ -222,8 +222,7 @@ |
|
|
|
<el-dialog title="内部询价单号" |
|
|
|
@close="closeQuotationNoDialog" |
|
|
|
@open="openQuotationNoDialog" |
|
|
|
:visible.sync="quotationNoDialogFlag" |
|
|
|
width="685px" v-drag> |
|
|
|
:visible.sync="quotationNoDialogFlag" v-drag> |
|
|
|
<el-form label-position="top" |
|
|
|
inline="inline" |
|
|
|
:model="quotationNoSearchData" |
|
|
|
@ -239,13 +238,13 @@ |
|
|
|
<el-button type="primary" style="padding: 3px 12px" @click="searchQuotationData">查询</el-button> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-table :data="quotationNoData" height="200" stripe border @cell-dblclick="dblclickQuotationNo"> |
|
|
|
<el-table-column prop="quotationNo" label="询价单号"/> |
|
|
|
<el-table-column prop="quotationBatchNo" label="询价批次号"/> |
|
|
|
<el-table-column width="60" align="right" prop="quotationItemNo" label="询价序号"/> |
|
|
|
<el-table-column prop="projectName" label="项目名称"/> |
|
|
|
<el-table-column width="160" prop="testPartNo" label="项目料号"/> |
|
|
|
<el-table-column prop="partName" label="物料名称"/> |
|
|
|
<el-table :data="quotationNoData" height="300" stripe border @cell-dblclick="dblclickQuotationNo"> |
|
|
|
<el-table-column prop="quotationNo" header-align="center" label="询价单号"/> |
|
|
|
<el-table-column prop="quotationBatchNo" header-align="center" label="询价批次号"/> |
|
|
|
<el-table-column width="60" align="center" header-align="center" prop="quotationItemNo" label="询价序号"/> |
|
|
|
<el-table-column prop="projectName" header-align="center" label="项目名称"/> |
|
|
|
<el-table-column width="180" prop="testPartNo" header-align="center" label="项目料号"/> |
|
|
|
<el-table-column prop="partName" header-align="center" label="物料名称"/> |
|
|
|
</el-table> |
|
|
|
<el-footer style="height:30px;margin-top: 20px;text-align:center"> |
|
|
|
<el-button type="primary" @click="quotationNoDialogFlag = false">关闭</el-button> |
|
|
|
@ -1002,8 +1001,48 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
editQuotationHeaderStatus(row,status){ |
|
|
|
this.insertData = JSON.parse(JSON.stringify(row)); |
|
|
|
this.insertData.approvalStatus = status; |
|
|
|
let params = JSON.parse(JSON.stringify(row)); |
|
|
|
params.approvalStatus = status; |
|
|
|
saveQuotationHeader(params).then(({data})=>{ |
|
|
|
// 返回提示 |
|
|
|
if (data.code === 200){ |
|
|
|
this.initData(); |
|
|
|
this.restQuoteHeader(); |
|
|
|
} |
|
|
|
this.$message.success(data.msg); |
|
|
|
}) |
|
|
|
}, |
|
|
|
restQuoteHeader(){ |
|
|
|
this.insertData={ |
|
|
|
site:this.$store.state.user.site, |
|
|
|
quotationNo:"",//客户报价单号 |
|
|
|
quotationDate:new Date(),//报价日期 |
|
|
|
customerNo:"", // 客户编号 |
|
|
|
customerName:"",//客户名称 |
|
|
|
versionCode:"001", |
|
|
|
projectId:"",//项目编码 |
|
|
|
projectName:"",//项目名称 |
|
|
|
tracker:"",//跟单员 |
|
|
|
quoter:"",//销售编号 |
|
|
|
quoterName:"",//报价专员 |
|
|
|
trackerName:"",//跟单员 |
|
|
|
currency:"",//货币 |
|
|
|
quotationStatus:"草稿",//状态 |
|
|
|
remark:"",//备注 |
|
|
|
customerInquiryNo:"",//客户询价单号 |
|
|
|
internalInquiryNo:"",//内部询价单号 |
|
|
|
internalInquiryBatchNo:"",//内部询价单号 |
|
|
|
requireApproval:"",//需要审批 |
|
|
|
approvalStatus:"",//审批状态 |
|
|
|
createBy:this.$store.state.user.id,//当前登录账号 |
|
|
|
createTime:new Date(),//当前时间 |
|
|
|
} |
|
|
|
}, |
|
|
|
clearCustomer(){ |
|
|
|
this.insertData.customerNo = ''; |
|
|
|
this.insertData.customerName = ''; |
|
|
|
this.insertData.projectId = ''; |
|
|
|
this.insertData.projectName = ''; |
|
|
|
} |
|
|
|
}, |
|
|
|
computed:{ |
|
|
|
|