Browse Source

采购询价单/采购报价单/采购报价大吗选定-主表增加质量等级字段

jingbb 2 months ago
parent
commit
0f59e8ab66

+ 9 - 6
src/views/purchase/purchaseInquiryForm/components/PurchaseInquiryFormForm.vue

@@ -186,20 +186,23 @@
                 <a-input v-model:value="formData.inquiryTeamName" disabled />
               </a-form-item>
             </a-col>
+            <a-col :span="12">
+							<a-form-item label="质量等级(quality grade)" v-bind="validateInfos.inquiryTeam" id="SaleInquiryFormForm-inquiryTeam" name="inquiryTeam" :label-col="formItemLayout.labelCol1"  :wrapper-col="formItemLayout.wrapperCol1">
+                <JDictSelectTag v-model:value="formData.qualityGradeHead" placeholder="请选择" dictCode="quality_grade" />
+							</a-form-item>
+						</a-col>
             <a-col :span="12">
               <a-form-item
                 label="询价备注(inquiry notes)"
                 v-bind="validateInfos.inquiryNotes"
                 id="PuechaseInquiryFormForm-inquiryNotes"
                 name="inquiryNotes"
-                :label-col="formItemLayout.labelCol1"
-                :wrapper-col="formItemLayout.wrapperCol1"
               >
                 <a-input v-model:value="formData.inquiryNotes" placeholder="请输入询价备注(inquiry notes)" allow-clear AutoComplete="off" />
               </a-form-item>
             </a-col>
             <a-col :span="12">
-              <a-form-item label="销售说明(sale notes)" v-bind="validateInfos.saleNotes" id="SaleOrderForm-saleNotes" name="saleNotes">
+              <a-form-item label="销售说明(sale notes)" v-bind="validateInfos.saleNotes" id="SaleOrderForm-saleNotes" name="saleNotes" :label-col="formItemLayout.labelCol1"  :wrapper-col="formItemLayout.wrapperCol1">
                 <a-textarea v-model:value="formData.saleNotes" AutoComplete="off" :rows="2" />
               </a-form-item>
             </a-col>
@@ -209,14 +212,12 @@
                 v-bind="validateInfos.agreementTerms"
                 id="SaleOrderForm-agreementTerms"
                 name="agreementTerms"
-                :label-col="formItemLayout.labelCol1"
-                :wrapper-col="formItemLayout.wrapperCol1"
               >
                 <a-textarea v-model:value="formData.agreementTerms" AutoComplete="off" :rows="2" />
               </a-form-item>
             </a-col>
             <a-col :span="12">
-              <a-form-item label="附件(attachs)" v-bind="validateInfos.attachs" id="PuechaseInquiryFormForm-attachs" name="attachs">
+              <a-form-item label="附件(attachs)" v-bind="validateInfos.attachs" id="PuechaseInquiryFormForm-attachs" name="attachs" :label-col="formItemLayout.labelCol1"  :wrapper-col="formItemLayout.wrapperCol1">
                 <JUpload v-model:value="formData.attachs" />
               </a-form-item>
             </a-col>
@@ -381,6 +382,7 @@
         sourceId: '',
         agreementTerms: '',
         saleNotes: '',
+        qualityGradeHead:''
       });
 
       //表单验证
@@ -592,6 +594,7 @@
         formData.productionClass = data[0].productionClass;
         formData.saleAttachs = data[0].attachs;
         formData.saleNotes = data[0].inquiryNotes;
+        formData.qualityGradeHead = data[0].qualityGrade; 
         getShipList(data[0].headId);
       }
       function getShipList(id) {

+ 7 - 0
src/views/purchase/purchaseQuotationFrm/components/PurchaseQuotationFormForm.vue

@@ -170,6 +170,11 @@
                 />
               </a-form-item>
             </a-col>
+            <a-col :span="12">
+							<a-form-item label="质量等级(quality grade)" v-bind="validateInfos.inquiryTeam" id="SaleInquiryFormForm-inquiryTeam" name="inquiryTeam" :label-col="formItemLayout.labelCol1"  :wrapper-col="formItemLayout.wrapperCol1">
+                <JDictSelectTag v-model:value="formData.qualityGradeHead" placeholder="请选择" dictCode="quality_grade" />
+							</a-form-item>
+						</a-col>
             <a-col :span="12">
               <a-form-item label="币种(currency)" v-bind="validateInfos.currency" id="PuechaseQuotationFormForm-currency" name="currency">
                 <JDictSelectTag v-model:value="formData.currency" placeholder="请选择" dictCode="currency" />
@@ -363,6 +368,7 @@
         saleAttachs: '',
         paymentTermsInfo: '',
         quotationInfomation: '',
+        qualityGradeHead:''
       });
 
       //表单验证
@@ -577,6 +583,7 @@
         // formData.inquiryTeam =  data[0].inquiryTeam
         formData.productionClass = data[0].productionClass;
         formData.productionClass_dictText = data[0].productionClass_dictText;
+        formData.qualityGradeHead = data[0].qualityGradeHead;
         // formData.saleAttachs =data[0].attachs
         getShipList(data[0].headId);
       }

+ 8 - 1
src/views/purchase/selectionQuotationForm/components/SelectQuotationFormForm.vue

@@ -45,6 +45,11 @@
                 <JDictSelectTag v-model:value="formData.model" placeholder="请选择" dictCode="model_typer" disabled/>
 							</a-form-item>
 						</a-col>
+            <a-col :span="12">
+							<a-form-item label="质量等级(quality grade)" v-bind="validateInfos.inquiryTeam" id="SaleInquiryFormForm-inquiryTeam" name="inquiryTeam" :label-col="formItemLayout.labelCol1"  :wrapper-col="formItemLayout.wrapperCol1">
+                <JDictSelectTag v-model:value="formData.qualityGradeHead" placeholder="请选择" dictCode="quality_grade" />
+							</a-form-item>
+						</a-col>
 						<a-col :span="12">
 							<a-form-item label="厂家(maker)" v-bind="validateInfos.maker" id="SelectQuotationFormForm-maker" name="maker">
 								<a-input v-model:value="formData.maker" placeholder="请输入厂家(maker)"  allow-clear disabled></a-input>
@@ -239,7 +244,8 @@
         selectionNotes:'',
         attachs:'',
         sourceId:'',
-        selectionSupplier:''
+        selectionSupplier:'',
+        qualityGradeHead:''
       });
 
       //表单验证
@@ -371,6 +377,7 @@
               formData.productionClass = res.productionClass
               formData.model = res.model
               formData.maker = res.maker
+              formData.qualityGradeHead = res.qualityGradeHead
               SelectQuotationFormShipTable.dataSource = res.purInquiryFormShipList
               res.purInquiryFormProductList.map(item=>{
                 item.sourceCode= item.headCode