tangning пре 1 година
родитељ
комит
6f00ccc956

+ 1 - 1
src/views/work/detail.vue

@@ -21,7 +21,7 @@
                 {{ detailData.customer.phone }}
               </DescriptionsItem>
             </Descriptions>
-            <Descriptions title="发票信息" :column="3" v-if="detailData.repairInvoice">
+            <Descriptions title="发票信息" :column="3">
               <DescriptionsItem label="是否开票">
                 {{ detailData.repairInvoice.repairId ? '是' : '否' }}</DescriptionsItem
               >

+ 1 - 1
src/views/work/followedList.vue

@@ -204,7 +204,7 @@
             dataIndex: 'invoiceStatus',
             width: 80,
             customRender: ({ record }) => {
-              return record.invoiceStatus == 0 ? '否' : '是';
+              return record.invoiceStatus == 1 ? '是' : record.invoiceStatus == 2 ? '否' : '-';
             },
           },
           {

+ 4 - 2
src/views/work/invoiceModal.vue

@@ -90,7 +90,7 @@
               },
               {
                 label: '否',
-                value: 0,
+                value: 2,
               },
             ],
             onChange: (val) => {
@@ -295,14 +295,16 @@
 
       async function onDataReceive(data) {
         resetFields();
+        console.log(data);
         fileFlow.invoiceAmount = data.payAmount;
         fileFlow.repairId = data.repairId;
         let getData = await getInvoiceInfo({ repairId: data.repairId });
-        handleUpShow(getData?true:false, getData && getData.invoiceType == 1 || false);
+        handleUpShow(getData?true:false || data.invoiceStatus != 2, getData && getData.invoiceType == 1 || false);
         setFieldsValue({
           ...data,
           ...getData,
           invoiceHead: data.companyName,
+          invoiceStatus: data.invoiceStatus || 1,
           deviceType: t(`routes.scene.tableType.${data.cameraType}`) + ' ' + data.cameraSnCode,
         });
       }

+ 1 - 1
src/views/work/signForModel.vue

@@ -55,7 +55,7 @@
         {
           field: 'trackingImg',
           component: 'Upload',
-          label: '付款凭证',
+          label: '验收凭证',
           required: true,
           rules: [{ required: true, message: t('common.uploadMessge') }],
           itemProps: {