|
|
|
@ -80,15 +80,13 @@ |
|
|
|
align="center" |
|
|
|
prop="quotationNo" |
|
|
|
label="报价单号" |
|
|
|
show-overflow-tooltip |
|
|
|
width="120"> |
|
|
|
show-overflow-tooltip> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
align="center" |
|
|
|
prop="quotationDate" |
|
|
|
label="报价日期" |
|
|
|
show-overflow-tooltip |
|
|
|
width="120"> |
|
|
|
show-overflow-tooltip> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
align="center" |
|
|
|
@ -97,7 +95,7 @@ |
|
|
|
label="客户编码"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
align="center" |
|
|
|
align="left" |
|
|
|
prop="customerName" |
|
|
|
show-overflow-tooltip |
|
|
|
label="客户名称"> |
|
|
|
@ -115,29 +113,26 @@ |
|
|
|
label="项目编码"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
align="center" |
|
|
|
align="left" |
|
|
|
prop="projectName" |
|
|
|
show-overflow-tooltip |
|
|
|
label="项目名称"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
align="center" |
|
|
|
align="left" |
|
|
|
prop="quoterName" |
|
|
|
width="60" |
|
|
|
show-overflow-tooltip |
|
|
|
label="销售员"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
align="center" |
|
|
|
align="left" |
|
|
|
prop="trackerName" |
|
|
|
width="60" |
|
|
|
show-overflow-tooltip |
|
|
|
label="跟单员"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
align="center" |
|
|
|
align="left" |
|
|
|
prop="currency" |
|
|
|
width="60" |
|
|
|
show-overflow-tooltip |
|
|
|
label="货币"> |
|
|
|
</el-table-column> |
|
|
|
@ -145,14 +140,12 @@ |
|
|
|
align="center" |
|
|
|
prop="quotationStatus" |
|
|
|
show-overflow-tooltip |
|
|
|
width="60" |
|
|
|
label="状态"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
align="center" |
|
|
|
align="left" |
|
|
|
prop="remark" |
|
|
|
show-overflow-tooltip |
|
|
|
width="60" |
|
|
|
label="备注"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
@ -199,50 +192,60 @@ |
|
|
|
</el-tabs> |
|
|
|
|
|
|
|
<!-- 新增弹框 --> |
|
|
|
<el-dialog title="新增报价" @close="closeInsertDialog" :close-on-click-modal="false" v-drag :visible.sync="insertDiaLogFlag" width="620px"> |
|
|
|
<el-form :rules="rules" :inline="true" label-position="top" ref="insertQuotationForm" :model="insertData" |
|
|
|
<el-dialog title="新增报价" @close="closeInsertDialog" :close-on-click-modal="false" v-drag :visible.sync="insertDiaLogFlag" width="40%"> |
|
|
|
<el-form :rules="rules" label-position="top" ref="insertQuotationForm" :model="insertData" |
|
|
|
label-width="120px"> |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item prop="internalInquiryNo"> |
|
|
|
<span slot="label" style="" @click="quotationNoDialogFlag = true"><a herf="#">内部询价单号</a></span> |
|
|
|
<el-input v-model="insertData.internalInquiryNo" placeholder="请输入内容" clearable style="width: 280px"/> |
|
|
|
<el-input v-model="insertData.internalInquiryNo" placeholder="请输入内容" clearable/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12" :offset="2"> |
|
|
|
<el-form-item label="客户询价单号" prop="customerInquiryNo"> |
|
|
|
<el-input v-model="insertData.customerInquiryNo" placeholder="请输入内容" clearable style="width: 280px"/> |
|
|
|
<el-input v-model="insertData.customerInquiryNo" placeholder="请输入内容" clearable/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item prop="customerNo"> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item prop="customerNo" label="客户编码"> |
|
|
|
<span slot="label" style="" v-if="insertData.internalInquiryNo ==''" @click="getBaseList(102,1)"><a herf="#">客户编码</a></span> |
|
|
|
<span slot="label" style="" v-else><a herf="#">客户编码</a></span> |
|
|
|
<el-input v-model="insertData.customerNo" :disabled="insertData.internalInquiryNo !=''" placeholder="请输入内容" clearable style="width: 280px"/> |
|
|
|
<el-input v-model="insertData.customerNo" :disabled="insertData.internalInquiryNo !=''" placeholder="请输入内容" clearable /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item prop="customerName"> |
|
|
|
<span slot="label" style="" v-if="insertData.internalInquiryNo ==''" @click="getBaseList(102,1)"><a herf="#">客户</a></span> |
|
|
|
<span slot="label" style="" v-else><a herf="#">客户</a></span> |
|
|
|
<el-input v-model="insertData.customerName" :disabled="insertData.internalInquiryNo !=''" placeholder="请输入内容" clearable style="width: 280px"/> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12" :offset="2"> |
|
|
|
<el-form-item prop="customerName" label="客户名称"> |
|
|
|
<span slot="label" style="" v-if="insertData.internalInquiryNo ==''" @click="getBaseList(102,1)"><a herf="#">客户名称</a></span> |
|
|
|
<el-input v-model="insertData.customerName" :disabled="insertData.internalInquiryNo !=''" placeholder="请输入内容" clearable/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item prop="projectId"> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item prop="projectId" label="项目编码"> |
|
|
|
<span slot="label" style="" v-if="insertData.internalInquiryNo ==''" @click="getBaseList(104,1)"><a herf="#">项目编码</a></span> |
|
|
|
<span slot="label" style="" v-else><a herf="#">项目编码</a></span> |
|
|
|
<el-input v-model="insertData.projectId" :disabled="insertData.internalInquiryNo !=''" placeholder="请输入内容" clearable style="width: 280px"/> |
|
|
|
<el-input v-model="insertData.projectId" :disabled="insertData.internalInquiryNo !=''" placeholder="请输入内容" clearable /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item prop="projectName"> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12" :offset="2"> |
|
|
|
<el-form-item prop="projectName" label="项目名称"> |
|
|
|
<span slot="label" style="" v-if="insertData.internalInquiryNo ==''" @click="getBaseList(104,1)"><a herf="#">项目名称</a></span> |
|
|
|
<span slot="label" style="" v-else><a herf="#">项目名称</a></span> |
|
|
|
<el-input v-model="insertData.projectName" :disabled="insertData.internalInquiryNo !=''" placeholder="请输入内容" clearable style="width: 280px"/> |
|
|
|
<el-input v-model="insertData.projectName" :disabled="insertData.internalInquiryNo !=''" placeholder="请输入内容" clearable /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="24"> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item label="货币" prop="currency"> |
|
|
|
<el-input v-model="insertData.currency" placeholder="请输入内容" size="large" clearable style="width: 280px"/> |
|
|
|
<el-input v-model="insertData.currency" :disabled="insertData.internalInquiryNo !=''" placeholder="请输入内容" size="large" clearable /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12" :offset="2"> |
|
|
|
<el-form-item label="报价日期" prop="quotationDate"> |
|
|
|
<el-date-picker |
|
|
|
style="width: 280px" |
|
|
|
style="width: 100%" |
|
|
|
v-model="insertData.quotationDate" |
|
|
|
type="date" |
|
|
|
size="mini" |
|
|
|
@ -252,30 +255,38 @@ |
|
|
|
</el-date-picker> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col> |
|
|
|
<el-form-item prop="quoter"> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item prop="quoter" label="销售员"> |
|
|
|
<span slot="label" style="" v-if="insertData.internalInquiryNo ==''" @click="getBaseList(103,2)"><a herf="#">销售员</a></span> |
|
|
|
<span slot="label" style="" v-else><a herf="#">销售员</a></span> |
|
|
|
<el-input v-model="insertData.quoterName" :disabled="insertData.internalInquiryNo !=''" @clear="clearQuoter" placeholder="请输入内容" clearable style="width: 280px"/> |
|
|
|
<el-input v-model="insertData.quoterName" :disabled="insertData.internalInquiryNo !=''" @clear="clearQuoter" placeholder="请输入内容" clearable /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item prop="tracker"> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12" :offset="2"> |
|
|
|
<el-form-item prop="tracker" label="跟单员"> |
|
|
|
<span slot="label" style="" v-if="insertData.internalInquiryNo ==''" @click="getBaseList(103,1)"><a herf="#">跟单员</a></span> |
|
|
|
<span slot="label" style="" v-else ><a herf="#">跟单员</a></span> |
|
|
|
<el-input v-model="insertData.trackerName" :disabled="insertData.internalInquiryNo !=''" @clear="clearTracker" placeholder="请输入内容" size="large" clearable style="width: 280px"/> |
|
|
|
<el-input v-model="insertData.trackerName" :disabled="insertData.internalInquiryNo !=''" @clear="clearTracker" placeholder="请输入内容" size="large" clearable /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="24"> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item label="状态" prop="quotationStatus"> |
|
|
|
<el-select v-model="insertData.quotationStatus" style="width: 280px" :disabled="insertData.internalInquiryNo !=''" clearable placeholder="请选择" > |
|
|
|
<el-select v-model="insertData.quotationStatus" style="width: 100%" :disabled="insertData.internalInquiryNo !=''" clearable placeholder="请选择" > |
|
|
|
<el-option label="草稿" value="草稿"></el-option> |
|
|
|
<el-option label="下达" value="下达"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12" :offset="2"> |
|
|
|
<el-form-item label=" "> |
|
|
|
<el-checkbox v-model="insertData.requireApproval" style="width: 23%" true-label="0" false-label="1" label="需要审批"></el-checkbox> |
|
|
|
<el-checkbox v-model="insertData.approvalStatus" style="width: 22%" true-label="已审批" false-label="未审批" label="是否审批"></el-checkbox> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item label="备注" style="width: 100%;min-height: 70px"> |
|
|
|
<el-input type="textarea" style="width: 100%" :show-word-limit="true" v-model="insertData.remark"/> |
|
|
|
@ -695,6 +706,7 @@ export default { |
|
|
|
this.insertData.trackerName=row.trackerName;//跟单员 |
|
|
|
this.insertData.quotationStatus=row.quotationStatus;//状态 |
|
|
|
this.insertData.internalInquiryNo=row.quotationNo;//内部询价单号 |
|
|
|
this.insertData.currency=row.customerCurrency;//内部询价单号 |
|
|
|
// 关闭弹框 |
|
|
|
this.quotationNoDialogFlag = false; |
|
|
|
} |
|
|
|
|