Просмотр исходного кода

解决售后服务售后方案新增费用名称没显示问题

hezhanp 8 месяцев назад
Родитель
Сommit
6ce3718d6b

+ 0 - 1
src/views/salesServiceManagement/components/info.vue

@@ -921,7 +921,6 @@
       @update:processSubmitDialogFlag="(val) => (processSubmitDialogFlag = val)"
       @formSubmit="handleFormSubmit"
     ></process-submit-dialog>
-
     <GYSparentList
       ref="GYSparentRef"
       @changeParent="GYSchangeParent"

+ 17 - 11
src/views/salesServiceManagement/demandList/components/addDialog.vue

@@ -10,11 +10,7 @@
     append-to-body
     @close="handleClose"
   >
-    <info
-      ref="infoRef"
-      :demandList="demandList"
-      :type="type"
-    ></info>
+    <info ref="infoRef" :demandList="demandList" :type="type"></info>
     <SubmitDialog ref="submitRef" @savExit="savExit" />
     <dispatchDialog ref="dispatchRef" @savExit="savExit" />
     <div slot="footer" class="footer">
@@ -86,7 +82,7 @@ export default {
   },
   methods: {
     async getLevelCode(code) {
-      console.log(code)
+      console.log(code);
       try {
         const res = await getByCode(code);
         if (res.code == 0) {
@@ -168,11 +164,21 @@ export default {
       let sparePartsData = (this.$refs.infoRef.getSpareInfoData() || []).map(
         (item) => ({
           ...item,
-          code: item.categoryCode,
-          name: item.categoryName
+    typeId: item.typeId,
+          code: item.code,
+          name: item.name,
+          feeType:item.feeType,//费用类别
+          modelType: item.categoryModel,//型号
+          
+          specification: item.specification,//规格
+          content: item.content,//详情内容
+          totalCount: item.totalCount,//数量
+          measureUnit:item.measureUnit,
+          singlePrice: item.singlePrice,
+          settlementPrice: item.settlementPrice
         })
       );
-
+      console.log(sparePartsData);
       if (!data.contactInfoVOS?.length) {
         this.$message.warning('联系人信息至少有1条');
         return false;
@@ -211,9 +217,9 @@ export default {
           isWithAccessories: data.part,
           costListVOS: sparePartsData,
           formJson: this.$refs.infoRef.carFormData,
-          
+
           isOutsource: data.isOutsource,
-          isCreatePurchaseOrder:data.isCreatePurchaseOrder,
+          isCreatePurchaseOrder: data.isCreatePurchaseOrder,
           supplierId: data.supplierId,
           supplierName: data.supplierName,
           supplierCode: data.supplierCode