Browse Source

销售询价单-选择项目带出优先级

jingbb 6 months ago
parent
commit
b0296d833e

+ 8 - 2
src/views/saleCode/saleInquiryForm/components/SaleInquiryFormForm.vue

@@ -21,7 +21,7 @@
 						</a-col>
 						<a-col :span="12">
 							<a-form-item label="询价客户(inquiry customer)" v-bind="validateInfos.inquiryCustomer" id="SaleInquiryFormForm-inquiryCustomer" name="inquiryCustomer">
-                <JSelectInput   v-model:value="formData.inquiryCustomer"  placeholder="请选择" :options="customerOption" ></JSelectInput>
+                <JSelectInput   v-model:value="formData.inquiryCustomer"  placeholder="请选择" :options="customerOption" disabled></JSelectInput>
 							</a-form-item>
 						</a-col>
 						<a-col :span="12">
@@ -390,6 +390,11 @@
         formData.projectName = data[0].name
         formData.inquiryCustomer =data[0].customerId
         formData.customerName =data[0].customerId_dictText
+        customerOption.value.map(item=>{
+          if(item.value==data[0].customerId){
+            formData.priority =item.priority
+          }
+        })
       }
       function getCustomerOptions(){
           let params = {pageSize:'-1',status:1}
@@ -399,7 +404,8 @@
               res.result.records.forEach(item=>{
                 customerOption.value.push({
                   label: item.name,
-                  value: item.id
+                  value: item.id,
+                  priority:item.priority
                 })
               })
             }