Purpose 9 months ago
parent
commit
73449f1045

+ 9 - 0
src/api/TagCodeApi.js

@@ -0,0 +1,9 @@
+import BaseCurdApi from './BaseCurdApi'
+
+class TagCodeApi extends BaseCurdApi {
+  constructor () {
+    super('/tag/code')
+  }
+}
+
+export default new TagCodeApi()

BIN
src/assets/imgs/logo.png


+ 1 - 1
src/components/DialogTagApplyOrderExport.vue

@@ -5,7 +5,7 @@
     width="297mm"
   >
     <pdf-exporter ref="pdfExporter" class="flex column layout-gap" style="min-height:100%;height:600px;margin:0 calc(var(--layout-gap) * -1);padding:var(--layout-gap);color:#000000;">
-      <LogoImageView></LogoImageView>
+      <LogoImageView width="150"></LogoImageView>
       <div class="text-center" style="font-size:16px;font-weight:600;">标签需求订单</div>
       <div class="flex valign-center">
         <div>订单编号:</div>

+ 1 - 1
src/components/DialogTagPurchaseOrderExport.vue

@@ -5,7 +5,7 @@
     width="297mm"
   >
     <pdf-exporter ref="pdfExporter" id="tag-purchase-order-export-pdf" class="flex column layout-gap" style="min-height:100%;height:600px;margin:0 calc(var(--layout-gap) * -1);padding:var(--layout-gap);color:#000000;">
-      <LogoImageView></LogoImageView>
+      <LogoImageView width="150"></LogoImageView>
       <div class="text-center" style="font-size:16px;font-weight:600;">标签采购订单</div>
       <div class="flex valign-center">
         <div>采购单编号:</div>

+ 1 - 1
src/components/LogoImageView.vue

@@ -1,5 +1,5 @@
 <template>
-  <div></div>
+  <img src="@/assets/imgs/logo.png" />
 </template>
 
 <script>

+ 40 - 0
src/entries/TagCode.js

@@ -0,0 +1,40 @@
+import BaseCurdEntry from './BaseCurdEntry'
+
+import tagCodeApi from '@@/api/TagCodeApi'
+
+export default class TagCode extends BaseCurdEntry {
+  orderNo
+
+  serialNumber
+  get formatSerialNumber () {
+    const { serialNumber } = this
+    return serialNumber ? serialNumber.join('-') : ''
+  }
+
+  dataTime
+  get formatDataTime () {
+    return new Date(this.dataTime).format('YYYY-MM-DD')
+  }
+
+  receiveDate
+  get formatReceiveDate () {
+    const { receiveDate } = this
+    return receiveDate ? new Date(receiveDate).format('YYYY-MM-DD') : ''
+  }
+
+  providerName
+
+  tagTypeName
+
+  number
+
+  amount
+
+  tagApplyStateName
+
+  operatorName
+
+  static get $$api () {
+    return tagCodeApi
+  }
+}

+ 24 - 0
src/router/index.js

@@ -27,6 +27,30 @@ export default new Router({
           permission: 'isAuthenticated'
         },
         component: () => import('@@/views/TagPurchase.vue')
+      }, {
+        path: '/page-in-src/tag-code',
+        name: 'TagCode',
+        meta: {
+          title: '赋码打印',
+          permission: 'isAuthenticated'
+        },
+        component: () => import('@@/views/TagCode.vue')
+      }, {
+        path: '/page-in-src/tag-buy-sell',
+        name: 'TagCode',
+        meta: {
+          title: '标签购销',
+          permission: 'isAuthenticated'
+        },
+        component: () => import('@@/views/TagBuySell.vue')
+      }, {
+        path: '/page-in-src/tag-inventory',
+        name: 'TagInventory',
+        meta: {
+          title: '标签库存',
+          permission: 'isAuthenticated'
+        },
+        component: () => import('@@/views/TagInventory.vue')
       }]
     }
   ]

+ 11 - 0
src/views/TagBuySell.vue

@@ -0,0 +1,11 @@
+<template>
+  <div></div>
+</template>
+
+<script>
+export default {
+  name: 'TagBuySell'
+}
+</script>
+
+<style lang="scss" scoped></style>

+ 16 - 0
src/views/TagCode.vue

@@ -0,0 +1,16 @@
+<template>
+  <div></div>
+</template>
+
+<script>
+import BaseCurdList from '@@/utils/BaseCurdList'
+import TagCode from '@@/entries/TagCode'
+
+export default {
+  name: 'TagCode',
+  extends: BaseCurdList(TagCode),
+  methods: {}
+}
+</script>
+
+<style lang="scss" scoped></style>

+ 11 - 0
src/views/TagInventory.vue

@@ -0,0 +1,11 @@
+<template>
+  <div></div>
+</template>
+
+<script>
+export default {
+  name: 'TagInventory'
+}
+</script>
+
+<style lang="scss" scoped></style>