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

开票申请审核状态新增查看发票功能

qymljy 2 месяцев назад
Родитель
Сommit
f4d7138015

+ 8 - 4
src/HDrpManagement/invoiceapp/detail/tab/blueInvoice/components/invoiceTable.vue

@@ -53,13 +53,17 @@
         width="250">
         <template slot-scope="scope">
           <div class="inline-16" v-if="data.byhand == 0">
-            <a class="table_row_link inline-16" :href="scope.row.paperpdfurl" target="_Blank" :style="{pointerEvents:scope.row.paperpdfurl == ''?'none':'',textDecoration:scope.row.paperpdfurl == ''?'none':'',color:scope.row.paperpdfurl == ''?'#cccccc':''}">{{$t(`纸票pdf`)}}</a>
-            <a class="table_row_link inline-16" :href="scope.row.pdfurl" target="_Blank" :style="{pointerEvents:scope.row.pdfurl == ''?'none':'',textDecoration:scope.row.pdfurl == ''?'none':'',color:scope.row.pdfurl == ''?'#cccccc':''}">{{$t(`发票pdf`)}}</a>
+            <a class="table_row_link inline-16" :href="scope.row.paperpdfurl" target="_Blank"
+               :style="{pointerEvents:scope.row.paperpdfurl == ''?'none':'',textDecoration:scope.row.paperpdfurl == ''?'none':'',color:scope.row.paperpdfurl == ''?'#cccccc':''}">{{$t(`纸票pdf`)}}</a>
+            <a class="table_row_link inline-16" :href="scope.row.pdfurl" target="_Blank"
+               :style="{pointerEvents:scope.row.pdfurl == ''?'none':'',textDecoration:scope.row.pdfurl == ''?'none':'',color:scope.row.pdfurl == ''?'#cccccc':''}">{{$t(`发票pdf`)}}</a>
           </div>
           <div class="inline-16" v-else>
             <!-- <a class="table_row_link inline-16" :href="scope.row.paperpdfurl">上传发票</a> -->
-            <upload class="inline-16" :folderid="folderid" :bindData="{ownertable: 'sa_invoicebill', ownerid: scope.row.sa_invoicebillid,usetype: 'default'}" @onSuccess="listData" btntype="icon"></upload>
-            <a class="table_row_link inline-16" v-if="scope.row.attinfos.length > 0" :href="scope.row.attinfos[scope.row.attinfos.length - 1].url">{{$t(`下载发票`)}}</a>
+            <upload class="inline-16" :folderid="folderid"
+                    :bindData="{ownertable: 'sa_invoicebill', ownerid: scope.row.sa_invoicebillid,usetype: 'default'}" @onSuccess="listData" btntype="icon"></upload>
+            <a class="table_row_link inline-16"
+               v-if="scope.row.attinfos.length > 0" :href="scope.row.attinfos[scope.row.attinfos.length - 1].url">{{$t(`下载发票`)}}</a>
           </div>
           <el-button v-if="tool.checkAuth($route.name,'editBlueInvioce')" @click="editRow(scope.row)" type="text" size="mini" :disabled="data.status !== '新建' && data.status !== '提交'">{{$t('编 辑')}}</el-button>
           <el-button v-if="tool.checkAuth($route.name,'editBlueInvioce')" @click="deleteRow(scope.row)" type="text" size="mini" :disabled="data.status !== '新建' && data.status !== '提交'">{{$t('删 除')}}</el-button>

+ 4 - 4
src/HDrpManagement/invoiceapp/detail/tab/redInvoice/components/invoiceTable.vue

@@ -49,13 +49,13 @@
         width="260">
         <template slot-scope="scope">
           <div class="inline-16" v-if="scope.row.ishand == 0">
-            <a class="table_row_link inline-16" :href="scope.row.paperpdfurl" target="_Blank" :style="{pointerEvents:scope.row.paperpdfurl == ''?'none':'',textDecoration:scope.row.paperpdfurl == ''?'none':'',color:scope.row.paperpdfurl == ''?'#cccccc':''}">纸票pdf</a>
-            <a class="table_row_link inline-16" :href="scope.row.pdfurl" target="_Blank" :style="{pointerEvents:scope.row.pdfurl == ''?'none':'',textDecoration:scope.row.pdfurl == ''?'none':'',color:scope.row.pdfurl == ''?'#cccccc':''}">发票pdf</a>
+            <a class="table_row_link inline-16" :href="scope.row.paperpdfurl" target="_Blank" :style="{pointerEvents:scope.row.paperpdfurl == ''?'none':'',textDecoration:scope.row.paperpdfurl == ''?'none':'',color:scope.row.paperpdfurl == ''?'#cccccc':''}">{{$t(`纸票`)}}pdf</a>
+            <a class="table_row_link inline-16" :href="scope.row.pdfurl" target="_Blank" :style="{pointerEvents:scope.row.pdfurl == ''?'none':'',textDecoration:scope.row.pdfurl == ''?'none':'',color:scope.row.pdfurl == ''?'#cccccc':''}">{{$t(`发票`)}}pdf</a>
           </div>
           <div class="inline-16" v-else>
             <!-- <a class="table_row_link inline-16" :href="scope.row.paperpdfurl">上传发票</a> -->
             <upload :disabled="scope.row.status == 2" class="inline-16" :folderid="folderid" :bindData="{ownertable: 'sa_invoicebill', ownerid: scope.row.sa_invoicebillid,usetype: 'default'}" @onSuccess="listData" btntype="icon"></upload>
-            <a class="table_row_link inline-16" v-if="scope.row.attinfos.length > 0" :href="scope.row.attinfos[scope.row.attinfos.length - 1].url">下载发票</a>
+            <a class="table_row_link inline-16" v-if="scope.row.attinfos.length > 0" :href="scope.row.attinfos[scope.row.attinfos.length - 1].url">{{$t(`下载发票`)}}</a>
           </div>
 <!--          <customBtn
               class="inline-16"
@@ -69,7 +69,7 @@
               v-if="tool.checkAuth($route.name,'editRedInvioce') && scope.row.ishand == 1"
               @onSuccess="listData"
           />-->
-          <el-button :disabled="scope.row.status == 2" v-if="tool.checkAuth($route.name,'editRedInvioce') && scope.row.ishand == 1" @click="clickRed(scope.row)" type="text" size="mini">确认红冲</el-button>
+          <el-button :disabled="scope.row.status == 2" v-if="tool.checkAuth($route.name,'editRedInvioce') && scope.row.ishand == 1" @click="clickRed(scope.row)" type="text" size="mini">{{$t(`确认红冲`)}}</el-button>
          <el-button v-if="tool.checkAuth($route.name,'editRedInvioce')" @click="deleteRow(scope.row)" type="text" size="mini" :disabled="scope.row.status == 2">{{$t('删 除')}}</el-button>
 
         </template>

+ 2 - 2
src/SDrpManagement/sinvoiceapp/detail/detail.vue

@@ -40,10 +40,10 @@
         ></invoiceOrder>
       </div>
       <div slot="slot1">
-        <blueInvoice :status="mainData.status"></blueInvoice>
+        <blueInvoice :status="mainData.status" :data="mainData"></blueInvoice>
       </div>
       <div slot="slot2">
-        <redInvoice :status="mainData.status"></redInvoice>
+        <redInvoice :status="mainData.status" :data="mainData"></redInvoice>
       </div>
       <div slot="slot3">
         <detailInfo :more="true" :data="detailInfo"></detailInfo>

+ 21 - 2
src/SDrpManagement/sinvoiceapp/detail/tab/blueInvoice/components/invoiceTable.vue

@@ -38,6 +38,25 @@
         prop="status"
         :label="$t(`发票状态`)">
       </el-table-column>
+      <el-table-column
+          v-if="status == '审核'"
+          fixed="right"
+          :label="$t('操作')"
+          width="250">
+        <template slot-scope="scope">
+          <div class="inline-16" v-if="data.byhand == 0">
+            <a class="table_row_link inline-16" :href="scope.row.paperpdfurl" target="_Blank"
+               :style="{pointerEvents:scope.row.paperpdfurl == ''?'none':'',textDecoration:scope.row.paperpdfurl == ''?'none':'',color:scope.row.paperpdfurl == ''?'#cccccc':''}">{{$t(`纸票`)}}pdf</a>
+            <a class="table_row_link inline-16" :href="scope.row.pdfurl" target="_Blank"
+               :style="{pointerEvents:scope.row.pdfurl == ''?'none':'',textDecoration:scope.row.pdfurl == ''?'none':'',color:scope.row.pdfurl == ''?'#cccccc':''}">{{$t(`发票`)}}pdf</a>
+          </div>
+          <div class="inline-16" v-else>
+            <!-- <a class="table_row_link inline-16" :href="scope.row.paperpdfurl">上传发票</a> -->
+            <a class="table_row_link inline-16"
+               v-if="scope.row.attinfos.length > 0" :href="scope.row.attinfos[scope.row.attinfos.length - 1].url">{{$t(`下载发票`)}}</a>
+          </div>
+        </template>
+      </el-table-column>
     </el-table>
     <div class="container" style="text-align:right">
       <el-pagination
@@ -56,7 +75,7 @@
 
 <script>
 export default {
-  props:['status'],
+  props:['status','data'],
   data () {
     return {
       form:{},
@@ -108,4 +127,4 @@ export default {
 
 </script>
 <style>
-</style>
+</style>

+ 3 - 3
src/SDrpManagement/sinvoiceapp/detail/tab/blueInvoice/index.vue

@@ -6,7 +6,7 @@
       <el-button size="small" type="primary" :disabled="selectData.length === 0" @click="clickInvioceQuery">发票创建查询</el-button>
       <el-button size="small" type="primary" :disabled="selectData.length === 0" @click="blueInvioceToRed">红冲勾选行</el-button>
     </el-button-group> -->
-    <invoiceTable :status="status" ref="invoiceTable" @activeRow="activeRow"></invoiceTable>
+    <invoiceTable :status="status" ref="invoiceTable" @activeRow="activeRow" :data="data"></invoiceTable>
     <invoiceTablemx :status="status" ref="invoiceTablemx"></invoiceTablemx>
   </div>
 </template>
@@ -16,7 +16,7 @@ import invoiceTable from './components/invoiceTable'
 import invoiceTablemx from './components/invoiceTablemx'
 
 export default {
-  props:['status'],
+  props:['status','data'],
   components:{
     invoiceTable,
     invoiceTablemx
@@ -36,4 +36,4 @@ export default {
 
 </script>
 <style>
-</style>
+</style>

+ 17 - 1
src/SDrpManagement/sinvoiceapp/detail/tab/redInvoice/components/invoiceTable.vue

@@ -32,6 +32,22 @@
       <el-table-column prop="remarks" :label="$t(`反馈消息`)">
       </el-table-column>
       <el-table-column prop="status" :label="$t(`发票状态`)"> </el-table-column>
+      <el-table-column
+          v-if="status == '审核'"
+          fixed="right"
+          :label="$t('操作')"
+          width="260">
+        <template slot-scope="scope">
+          <div class="inline-16" v-if="scope.row.ishand == 0">
+            <a class="table_row_link inline-16" :href="scope.row.paperpdfurl" target="_Blank" :style="{pointerEvents:scope.row.paperpdfurl == ''?'none':'',textDecoration:scope.row.paperpdfurl == ''?'none':'',color:scope.row.paperpdfurl == ''?'#cccccc':''}">{{$t(`纸票`)}}pdf</a>
+            <a class="table_row_link inline-16" :href="scope.row.pdfurl" target="_Blank" :style="{pointerEvents:scope.row.pdfurl == ''?'none':'',textDecoration:scope.row.pdfurl == ''?'none':'',color:scope.row.pdfurl == ''?'#cccccc':''}">{{$t(`发票`)}}pdf</a>
+          </div>
+          <div class="inline-16" v-else>
+            <!-- <a class="table_row_link inline-16" :href="scope.row.paperpdfurl">上传发票</a> -->
+            <a class="table_row_link inline-16" v-if="scope.row.attinfos.length > 0" :href="scope.row.attinfos[scope.row.attinfos.length - 1].url">{{$t(`下载发票`)}}</a>
+          </div>
+        </template>
+      </el-table-column>
       <!-- <el-table-column
         fixed="right"
         :label="$t('操作')"
@@ -59,7 +75,7 @@
 
 <script>
 export default {
-  props: ["status"],
+  props: ["status",'data'],
   data() {
     return {
       param: {

+ 3 - 2
src/SDrpManagement/sinvoiceapp/detail/tab/redInvoice/index.vue

@@ -21,6 +21,7 @@
     </el-button-group>
     <invoiceTable
       :status="status"
+      :data="data"
       ref="invoiceTable"
       @activeRow="activeRow"
       @selection="selection"
@@ -34,7 +35,7 @@ import invoiceTable from "./components/invoiceTable";
 import invoiceTablemx from "./components/invoiceTablemx";
 
 export default {
-  props: ["status"],
+  props: ["status","data"],
   components: {
     invoiceTable,
     invoiceTablemx,
@@ -91,4 +92,4 @@ export default {
 };
 </script>
 <style>
-</style>
+</style>