|
@@ -50,6 +50,11 @@
|
|
|
<a-input v-model:value="formData.maker" placeholder="请输入厂家(maker)" allow-clear disabled></a-input>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
+ <!-- <a-col :span="12">
|
|
|
+ <a-form-item label="选定供应商(selection notes)" v-bind="validateInfos.selectionNotes" id="SelectQuotationFormForm-selectionNotes" name="selectionNotes">
|
|
|
+ <a-input v-model:value="formData.selectionSupplier" placeholder="请输入选定备注备注(selection notes)" allow-clear AutoComplete="off" @change=""></a-input>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col> -->
|
|
|
<a-col :span="12">
|
|
|
<a-form-item label="选定备注(selection notes)" v-bind="validateInfos.selectionNotes" id="SelectQuotationFormForm-selectionNotes" name="selectionNotes">
|
|
|
<a-input v-model:value="formData.selectionNotes" placeholder="请输入选定备注备注(selection notes)" allow-clear AutoComplete="off"></a-input>
|
|
@@ -82,7 +87,7 @@
|
|
|
asyncRemove
|
|
|
>
|
|
|
<template #selectionSupplier="props">
|
|
|
- <a-select v-model:value="props.row.selectionSupplier" style="width: 100%;" @change="selectSupplier(props)" allowClear>
|
|
|
+ <a-select v-model:value="props.row.selectionSupplier" style="width: 100%;" @change="selectSupplier(props.row,props.rowIndex)" allowClear>
|
|
|
<a-select-option v-for="item in supplierList" :key="item.value" >{{ item.label }}</a-select-option>
|
|
|
</a-select>
|
|
|
</template>
|
|
@@ -233,7 +238,8 @@
|
|
|
maker: '',
|
|
|
selectionNotes:'',
|
|
|
attachs:'',
|
|
|
- sourceId:''
|
|
|
+ sourceId:'',
|
|
|
+ selectionSupplier:''
|
|
|
});
|
|
|
|
|
|
//表单验证
|
|
@@ -407,13 +413,13 @@
|
|
|
function onSearchProject(){
|
|
|
SelectProjectModalRef.value.getTable()
|
|
|
}
|
|
|
- function selectSupplier(prop){
|
|
|
+ function selectSupplier(prop,rowIndex){
|
|
|
SupplierQuotationDetailsTable.dataSource.map(item=>{
|
|
|
- if(item.productCode==prop.row.productCode&&item.quotationSuppiler==prop.row.selectionSupplier){
|
|
|
+ if(item.productCode==prop.productCode&&item.quotationSuppiler==prop.selectionSupplier){
|
|
|
var arr = [...SelectQuotationFormProductTable.dataSource]
|
|
|
arr.map((event,index)=>{
|
|
|
- if(prop.rowIndex==index){
|
|
|
- if(prop.rowIndex==index){
|
|
|
+ if(rowIndex==index){
|
|
|
+ if(rowIndex==index){
|
|
|
item.sourceCode=event.sourceCode
|
|
|
item.sourceId=event.sourceId
|
|
|
item.sourceId2=item.id
|