zhangqiOMG 2 years ago
parent
commit
4158b5c206

+ 1 - 1
src/HDrpManagement/invoiceapp/detail/tab/redInvoice/components/invoiceTablemx.vue

@@ -44,7 +44,7 @@
       </el-table-column>
       <el-table-column label="操作" width="150" fixed="right">
         <template slot-scope="scope">
-          <edit class="inline-16" :sa_invoicebillid="param.content.sa_invoicebillid" :data="scope.row" @onSuccess="listData(param.content.sa_invoicebillid)"></edit>
+          <edit class="inline-16" :sa_invoicebillid="param.content.sa_invoicebillid" :data="scope.row" @onSuccess="onSuccess"></edit>
           <el-button v-if="tool.checkAuth($route.name,'editRedInvioce')" size="small" type="text" @click="deleteRow(scope.row)">删 除</el-button>
         </template>
       </el-table-column>

+ 5 - 3
src/HDrpManagement/invoiceapp/detail/tab/redInvoice/index.vue

@@ -5,12 +5,12 @@
       <el-button size="small" type="primary" :disabled="selectData.length === 0" @click="clickInvioceQuery">发票创建查询</el-button>
     </el-button-group>
     <invoiceTable class="normal-margin" :status="status" ref="invoiceTable" @activeRow="activeRow" @selection="selection"></invoiceTable>
-    <invoiceTablemx :data="data" :status="status" ref="invoiceTablemx"></invoiceTablemx>
+    <invoiceTablemx :data="data" :status="status" ref="invoiceTablemx" @onSuccess="queryinvoiceTable"></invoiceTablemx>
   </div>
 </template>
 
 <script>
-import invoiceTable from './components/invoiceTable'
+import invoiceTable from './components/invoiceTable.vue'
 import invoiceTablemx from './components/invoiceTablemx.vue'
 
 export default {
@@ -26,7 +26,9 @@ export default {
     }
   },
   methods:{
-
+    queryinvoiceTable () {
+      this.$refs['invoiceTable'].listData()
+    },
     activeRow (row){
       this.$refs['invoiceTablemx'].listData(row.sa_invoicebillid)
     },

+ 1 - 1
src/HDrpManagement/invoiceapp/modules/add.vue

@@ -19,7 +19,7 @@
                   placement="bottom"
                   trigger="click"
                   v-model="visible">
-                  <invoiceCanUseAgent :qiyi="true" ref="UseAgent" @selectRow="selectRow"></invoiceCanUseAgent>
+                  <invoiceCanUseAgent id="20221216145803" :qiyi="true" ref="UseAgent" @selectRow="selectRow"></invoiceCanUseAgent>
                   <el-input readonly slot="reference" v-model="form.enterprisename" @focus="queryAgent" suffix-icon="el-icon-arrow-down" placeholder="企业"></el-input>
                 </el-popover>
               </el-form-item>

+ 1 - 1
src/HDrpManagement/invoiceapp/modules/edit.vue

@@ -19,7 +19,7 @@
                   trigger="click"
                   disabled
                   v-model="visible">
-                  <invoiceCanUseAgent :qiyi="true" ref="UseAgent" @selectRow="selectRow"></invoiceCanUseAgent>
+                  <invoiceCanUseAgent id="20221216145803" :qiyi="true" ref="UseAgent" @selectRow="selectRow"></invoiceCanUseAgent>
                   <el-input readonly slot="reference" v-model="form.enterprisename" @focus="queryAgent"  suffix-icon="el-icon-arrow-down" placeholder="企业"></el-input>
                 </el-popover>
               </el-form-item>

+ 4 - 4
src/SDrpManagement/invoiceapp_saler/modules/add.vue

@@ -19,7 +19,7 @@
                   placement="bottom"
                   trigger="click"
                   v-model="visible">
-                  <invoiceCanUseAgent :qiyi="true" ref="UseAgent" @selectRow="selectRow"></invoiceCanUseAgent>
+                  <invoiceCanUseAgent id="20230228103104" :qiyi="true" ref="UseAgent" @selectRow="selectRow"></invoiceCanUseAgent>
                   <el-input readonly slot="reference" v-model="form.enterprisename" @focus="queryAgent" suffix-icon="el-icon-arrow-down" placeholder="企业"></el-input>
                 </el-popover>
               </el-form-item>
@@ -127,9 +127,9 @@ export default {
         "invoiceline":"s",
         "remarks":"",
         "quota":1000000,
-        "invoicepayee":"",
-        "invoiceclerk":"",
-        "invoicechecker":"",
+        "invoicepayee":"孙惠吉",
+        "invoiceclerk":"冯云霞",
+        "invoicechecker":"王蒋雯",
 
         "enterprisename":"",
         "taxno":"",

+ 1 - 1
src/SDrpManagement/invoiceapp_saler/modules/edit.vue

@@ -19,7 +19,7 @@
                   trigger="click"
                   disabled
                   v-model="visible">
-                  <invoiceCanUseAgent :qiyi="true" ref="UseAgent" @selectRow="selectRow"></invoiceCanUseAgent>
+                  <invoiceCanUseAgent id="20230228103104" :qiyi="true" ref="UseAgent" @selectRow="selectRow"></invoiceCanUseAgent>
                   <el-input readonly slot="reference" v-model="form.enterprisename" @focus="queryAgent"  suffix-icon="el-icon-arrow-down" placeholder="企业"></el-input>
                 </el-popover>
               </el-form-item>

+ 22 - 0
src/router/SDrpManagement.js

@@ -168,6 +168,28 @@ const SDrpManagement = [
       },
     ]
   },
+  {
+    path: '/sinvoiceapp_saler',
+    name:'sinvoiceapp_saler',
+    meta: {
+      title: '开票申请(业务)',
+      ast_nav: true,
+      keeproute: true,
+    },
+    component: () => import(/* webpackChunkName: "about" */ '@/SDrpManagement/invoiceapp_saler/index'),
+    children: [
+      {
+        path: '/sinvoiceDetail_saler',
+        name:'sinvoiceapp_saler',
+        meta: {
+          title: '开票申请单详情',
+          ast_nav: true,
+          keeproute: true,
+        },
+        component: () => import(/* webpackChunkName: "about" */ '@/SDrpManagement/invoiceapp_saler/detail/detail')
+      },
+    ]
+  },
   {
     path: '/toolBorrowing',
     name:'toolBorrowing',

+ 3 - 1
src/template/invoiceCanUseAgent/index.vue

@@ -59,10 +59,11 @@
 
 <script>
 export default {
+  props:['id'],
   data () {
     return {
       param:{
-        "id": "20221216145803",
+        "id": "",
         "content": {
           "pageNumber":1,
           "pageSize":20,
@@ -84,6 +85,7 @@ export default {
   },
   methods:{
     async listData () {
+      this.param.id = this.id
       const res = await this.$api.requested(this.param)
       this.tableData = res.data
       this.total = res.total