Browse Source

装箱单-列表-增加发票推送状态

jbb 1 year ago
parent
commit
b18e735288
2 changed files with 35 additions and 0 deletions
  1. 18 0
      src/views/packing-list/clothes-list.vue
  2. 17 0
      src/views/packing-list/fabric-list.vue

+ 18 - 0
src/views/packing-list/clothes-list.vue

@@ -210,6 +210,15 @@
           <!-- <a-tag color="#87d068" v-else>已提交</a-tag> -->
         </span>
 
+        <!-- 发票推送状态 -->
+        <span slot="timeStuta" slot-scope="text, record">
+          <a-tag color="#f50" v-if="record.timeStuta == '0'">未推送</a-tag>
+          <a-tag color="blue" v-if="record.timeStuta == '1'">待推送</a-tag>
+          <a-tag color="red" v-if="record.timeStuta == '2'">推送失败</a-tag>
+          <a-tag color="green" v-if="record.timeStuta == '3'">推送成功</a-tag>
+          <a-tag color="blue" v-if="record.timeStuta == '4'">推送中</a-tag>
+        </span>
+
         <!-- 推送状态 -->
         <span slot="whetherCloudFactoryPush" slot-scope="text, record" :title ="record.cause">
            <span v-if="record.whetherCloudFactoryPush == '0'">否</span>
@@ -515,6 +524,7 @@ export default {
           ellipsis: true,
           className: 'replacecolor'
         },
+        
         {
           title: '单据号',
           dataIndex: 'documentNo',
@@ -522,6 +532,14 @@ export default {
           ellipsis: true,
           className: 'replacecolor'
         },
+        {
+          title: '发票推送状态',
+          dataIndex: 'timeStuta',
+          width: 120,
+          scopedSlots: { customRender: 'timeStuta' },
+          fixed: 'right',
+          className: 'replacecolor'
+        },
         {
           title: '推送状态',
           dataIndex: 'pushState',

+ 17 - 0
src/views/packing-list/fabric-list.vue

@@ -156,6 +156,15 @@
           <a-tag color="#B7B7B7" v-if="record.pushState == '4'">不再推送</a-tag>
         </span>
 
+        <!-- 发票推送状态 -->
+        <span slot="timeStuta" slot-scope="text, record">
+          <a-tag color="#f50" v-if="record.timeStuta == '0'">未推送</a-tag>
+          <a-tag color="blue" v-if="record.timeStuta == '1'">待推送</a-tag>
+          <a-tag color="red" v-if="record.timeStuta == '2'">推送失败</a-tag>
+          <a-tag color="green" v-if="record.timeStuta == '3'">推送成功</a-tag>
+          <a-tag color="blue" v-if="record.timeStuta == '4'">推送中</a-tag>
+        </span>
+
         <span slot="whetherCloudFactoryPush" slot-scope="text, record" :title ="record.cause">
            <span v-if="record.whetherCloudFactoryPush == '0'">否</span>
            <span v-if="record.whetherCloudFactoryPush == '1'">是</span>
@@ -327,6 +336,14 @@ export default {
           ellipsis: true,
           className: 'replacecolor'
         },
+        {
+          title: '发票推送状态',
+          dataIndex: 'timeStuta',
+          width: 120,
+          scopedSlots: { customRender: 'timeStuta' },
+          fixed: 'right',
+          className: 'replacecolor'
+        },
         {
           title: '推送状态',
           dataIndex: 'pushState',