yusheng hace 1 año
padre
commit
778e4b50ee

+ 51 - 19
src/views/purchasingManage/purchaseOrder/invoice/components/detailDialog.vue

@@ -176,6 +176,7 @@
         :toolkit="[]"
         :datasource="detailData.resultList"
         row-key="id"
+        height="300px"
       >
         <template v-slot:technicalDrawings="{ row }">
           <fileMain v-model="row.technicalDrawings" type="view"></fileMain>
@@ -331,21 +332,23 @@
               prop: 'totalCount',
               label: '收货数量',
               slot: 'totalCount',
-              align: 'center'
+              align: 'center',
             },
             {
               width: 120,
               prop: 'orderTotalCount',
               label: '采购总数',
               slot: 'orderTotalCount',
-              align: 'center'
+              show:v!=2,
+              align: 'center',
             },
             {
               width: 120,
               prop: 'receiveTotalCount',
               label: '已收货总数',
               slot: 'receiveTotalCount',
-              align: 'center'
+              show:v!=2,
+              align: 'center',
             },
             {
               width: 80,
@@ -367,28 +370,33 @@
               label: '发货总重',
               slot: 'sendTotalWeight',
               align: 'center',
-              headerSlot: 'headerTotalCount'
+              headerSlot: 'headerTotalCount',
+              show:v!=2,
             },
             {
               width: 100,
               prop: 'receiveTotalWeight',
               label: '收货总重',
               slot: 'receiveTotalWeight',
-              align: 'center'
+              align: 'center',
+              show:v!=2,
+
             },
             {
               width: 100,
               prop: 'increaseTotalWeight',
               label: '增重重量',
               slot: 'increaseTotalWeight',
-              align: 'center'
+              align: 'center',
+              show:v!=2,
             },
             {
               width: 100,
               prop: 'weightUnit',
               label: '重量单位',
               slot: 'weightUnit',
-              align: 'center'
+              align: 'center',
+              show:v!=2,
             },
             {
               width: 160,
@@ -396,6 +404,7 @@
               label: '计价方式',
               slot: 'pricingWay',
               align: 'center',
+              show:v!=2,
               formatter: (row, column) => {
                 return row.pricingWay == 1
                   ? '按数量计费'
@@ -409,28 +418,36 @@
               prop: 'singlePrice',
               label: '单价',
               slot: 'singlePrice',
-              align: 'center'
+              align: 'center',
+              show:v!=2,
+
             },
             {
               width: 160,
               prop: 'discountSinglePrice',
               label: '折后单价',
               slot: 'discountSinglePrice',
-              align: 'center'
+              align: 'center',
+              show:v!=2,
+
             },
             {
               width: 120,
               prop: 'totalPrice',
               label: '合计',
               slot: 'totalPrice',
-              align: 'center'
+              align: 'center',
+              show:v!=2,
+
             },
             {
               width: 160,
               prop: 'discountTotalPrice',
               label: '折后合计',
               slot: 'discountTotalPrice',
-              align: 'center'
+              align: 'center',
+              show:v!=2,
+
             },
             {
               prop: 'provenance',
@@ -452,56 +469,71 @@
               prop: 'deliveryDays',
               label: '交期(天)',
               slot: 'deliveryDays',
-              align: 'center'
+              align: 'center',
+              show:v!=2,
+
             },
             {
               width: 160,
               prop: 'deliveryDeadline',
               label: '交期截止日期',
               slot: 'deliveryDeadline',
-              align: 'center'
+              align: 'center',
+              show:v!=2,
+
             },
             {
               width: 200,
               prop: 'guaranteePeriod',
               label: '质保期',
               slot: 'guaranteePeriod',
-              align: 'center'
+              align: 'center',
+              show:v!=2,
+
             },
             {
               width: 160,
               prop: 'guaranteePeriodDeadline',
               label: '质保截止日期',
               slot: 'guaranteePeriodDeadline',
-              align: 'center'
+              align: 'center',
+              show:v!=2,
+
             },
             {
               width: 130,
               prop: 'technicalAnswerName',
               label: '技术答疑人',
               slot: 'technicalAnswerName',
-              align: 'center'
+              align: 'center',
+              show:v!=2,
+
             },
             {
               width: 220,
               prop: 'technicalParams',
               label: '技术参数',
               slot: 'technicalParams',
-              align: 'center'
+              align: 'center',
+              show:v!=2,
+
             },
             {
               width: 240,
               prop: 'technicalDrawings',
               label: '技术图纸',
               slot: 'technicalDrawings',
-              align: 'center'
+              align: 'center',
+              show:v!=2,
+
             },
             {
               width: 220,
               prop: 'remark',
               label: '备注',
               slot: 'remark',
-              align: 'center'
+              align: 'center',
+              show:v!=2,
             },
             {
               width: 130,