浏览代码

采购报价单选定-选择供应商逻辑修改/列表字段修改

jingbb 5 月之前
父节点
当前提交
cf0dbe611c

+ 12 - 6
src/views/purchase/selectionQuotationForm/components/SelectQuotationFormForm.vue

@@ -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

+ 1 - 1
src/views/saleCode/saleInquiryForm/SaleInquiryForm.data.ts

@@ -24,7 +24,7 @@ export const columns: BasicColumn[] = [
    {
     title: '询价项目(inquiry project)',
     align:"center",
-    dataIndex: 'inquiryProject_dictText'
+    dataIndex: 'projectName'
    },
    {
     title: '询价客户(inquiry customer)',