Browse Source

代码上传

zhangqi 1 year ago
parent
commit
fd4b070cfe

+ 111 - 0
src/DRP/HDrpManagement/orderManage/detail/tabs/income copy.vue

@@ -0,0 +1,111 @@
+// 单据中使用商品表
+<template>
+  <div>
+    <a-table
+      class="ant-table-striped"
+      rowKey="itemid"
+      :columns="columns"
+      :data-source="data"
+      :scroll="{x:'max-content'}"
+      :pagination="{showSizeChanger:true,defaultPageSize:20,total:total}"
+      @change="onChange"
+      size="small"
+      :row-class-name="(_record, index) => (index % 2 === 1 ? 'table-striped' : null)">
+      <template #bodyCell="{ column, record }">
+        <template v-if="column.dataIndex === 'amount'">
+          <a-tag>{{utils.formatAmount(record.amount)}}</a-tag>
+        </template>
+      </template>
+    </a-table>
+  </div>
+</template>
+
+<script setup>
+  import {defineProps,ref,onMounted } from 'vue';
+  import utils from '@/utils/utils'
+  import Api  from '@/api/api'
+  import { useRouter } from "vue-router";
+
+  const router = useRouter()
+  const props = defineProps({
+    id:Number
+  })
+
+  const param = ref({
+    "id": 20230221193203,
+    "content": {
+      "sa_orderid": router.currentRoute.value.query.id,
+      "pageNumber": 1,
+      "pageSize": 17,
+      "where": {
+          "condition": ""
+      }
+    }
+  })
+  const data = ref([])
+  const total = ref(0)
+  const columns = [
+    {
+      title:'状态',
+      dataIndex:'status',
+      width:90,
+      ellipsis:true,
+    },
+    {
+      title:'单据编号',
+      dataIndex:'billno',
+      width:180,
+      ellipsis:true,
+    },
+    {
+      title:'创建日期',
+      dataIndex:'createdate',
+      width:150,
+      ellipsis:true,
+    },
+    {
+      title:'来源',
+      dataIndex:'source',
+      width:90,
+      ellipsis:true,
+    },
+    {
+      title:'收支金额',
+      dataIndex:'amount',
+      width:90,
+      ellipsis:true,
+    },
+    
+    {
+      title:'备注',
+      dataIndex:'remarks',
+      width:250,
+      ellipsis:true,
+    },
+  ]
+  const onChange = (pagination, filters, sorter, { currentDataSource })=>{
+    props.param.content.pageNumber = pagination.current
+    props.param.content.pageSize = pagination.pageSize
+    listData()
+  }
+  const listData = async ()=> {
+    const res = await Api.requested(param.value)
+    data.value = res.data
+    total.value = res.total
+  }
+  
+  onMounted(()=>{
+    listData()
+  })
+</script>
+<style>
+
+</style>
+<style scoped>
+.ant-table-striped :deep td{
+  font-size: 12px;
+}
+.ant-table-striped :deep(.table-striped) td {
+  background-color: #fafafa;
+}
+</style>

+ 6 - 102
src/DRP/HDrpManagement/orderManage/detail/tabs/income.vue

@@ -1,111 +1,15 @@
-// 单据中使用商品表
 <template>
   <div>
-    <a-table
-      class="ant-table-striped"
-      rowKey="itemid"
-      :columns="columns"
-      :data-source="data"
-      :scroll="{x:'max-content'}"
-      :pagination="{showSizeChanger:true,defaultPageSize:20,total:total}"
-      @change="onChange"
-      size="small"
-      :row-class-name="(_record, index) => (index % 2 === 1 ? 'table-striped' : null)">
-      <template #bodyCell="{ column, record }">
-        <template v-if="column.dataIndex === 'amount'">
-          <a-tag>{{utils.formatAmount(record.amount)}}</a-tag>
-        </template>
-      </template>
-    </a-table>
+    <normalTable size="small" :columns="utils.TBLayout('incomeTable')" :param="{id:20230221193203,content:{sa_orderid:router.currentRoute.value.query.id,where:{}}}"></normalTable>
   </div>
 </template>
 
 <script setup>
-  import {defineProps,ref,onMounted } from 'vue';
-  import utils from '@/utils/utils'
-  import Api  from '@/api/api'
-  import { useRouter } from "vue-router";
-
-  const router = useRouter()
-  const props = defineProps({
-    id:Number
-  })
-
-  const param = ref({
-    "id": 20230221193203,
-    "content": {
-      "sa_orderid": router.currentRoute.value.query.id,
-      "pageNumber": 1,
-      "pageSize": 17,
-      "where": {
-          "condition": ""
-      }
-    }
-  })
-  const data = ref([])
-  const total = ref(0)
-  const columns = [
-    {
-      title:'状态',
-      dataIndex:'status',
-      width:90,
-      ellipsis:true,
-    },
-    {
-      title:'单据编号',
-      dataIndex:'billno',
-      width:180,
-      ellipsis:true,
-    },
-    {
-      title:'创建日期',
-      dataIndex:'createdate',
-      width:150,
-      ellipsis:true,
-    },
-    {
-      title:'来源',
-      dataIndex:'source',
-      width:90,
-      ellipsis:true,
-    },
-    {
-      title:'收支金额',
-      dataIndex:'amount',
-      width:90,
-      ellipsis:true,
-    },
-    
-    {
-      title:'备注',
-      dataIndex:'remarks',
-      width:250,
-      ellipsis:true,
-    },
-  ]
-  const onChange = (pagination, filters, sorter, { currentDataSource })=>{
-    props.param.content.pageNumber = pagination.current
-    props.param.content.pageSize = pagination.pageSize
-    listData()
-  }
-  const listData = async ()=> {
-    const res = await Api.requested(param.value)
-    data.value = res.data
-    total.value = res.total
-  }
-  
-  onMounted(()=>{
-    listData()
-  })
+import {ref} from 'vue'
+import utils from '@/utils/utils'
+import normalTable from '@/template/normalTable/index.vue'
+import { useRouter } from "vue-router"
+const router = useRouter()
 </script>
 <style>
-
-</style>
-<style scoped>
-.ant-table-striped :deep td{
-  font-size: 12px;
-}
-.ant-table-striped :deep(.table-striped) td {
-  background-color: #fafafa;
-}
 </style>

+ 1 - 7
src/DRP/SDrpManagement/order/detail/tabs/income.vue

@@ -1,12 +1,6 @@
 <template>
   <div>
-    <normalTable size="small" :columns="utils.TBLayout('incomeTable')" :param="{id:20230221193203,content:{sa_orderid:router.currentRoute.value.query.id,where:{}}}">
-      <template #tb_cell="{data}">
-        <template v-if="data.column.dataIndex === 'billno'">
-          <router-link :to="{path:'/logisticsOrderDetail',query:{id:data.record.sa_logisticsid}}">{{data.record.billno}}</router-link>
-        </template>
-      </template>
-    </normalTable>
+    <normalTable size="small" :columns="utils.TBLayout('incomeTable')" :param="{id:20230221193203,content:{sa_orderid:router.currentRoute.value.query.id,where:{}}}"></normalTable>
   </div>
 </template>
 

+ 0 - 3
src/api/upload.js

@@ -3,12 +3,9 @@ import axios from 'axios';
 
 const service = axios.create({
     timeout: 3600 * 1000,
-    withCredentials: false, 
     validateStatus: function(status){
         return status >= 200;
     },
-    maxRedirects : 0,
-    responseType : 'text',
     onUploadProgress: function (e) {
     },
 });

+ 1 - 1
src/customized/cucu/orderManage/detail/tabs/dispatch.vue

@@ -14,7 +14,7 @@
       :row-class-name="(_record, index) => (index % 2 === 1 ? 'table-striped' : null)">
       <template #bodyCell="{ column, record }">
         <template v-if="column.dataIndex === 'billno'">
-          <router-link :to="{path:'/dispatchdetail_agent',query:{id:record.sa_dispatchid}}">{{record.billno}}</router-link>
+          <router-link :to="{path:'/dispatchDetail',query:{id:record.sa_dispatchid}}">{{record.billno}}</router-link>
         </template>
       </template>
     </a-table>

+ 6 - 102
src/customized/cucu/orderManage/detail/tabs/income.vue

@@ -1,111 +1,15 @@
-// 单据中使用商品表
 <template>
   <div>
-    <a-table
-      class="ant-table-striped"
-      rowKey="itemid"
-      :columns="columns"
-      :data-source="data"
-      :scroll="{x:'max-content'}"
-      :pagination="{showSizeChanger:true,defaultPageSize:20,total:total}"
-      @change="onChange"
-      size="small"
-      :row-class-name="(_record, index) => (index % 2 === 1 ? 'table-striped' : null)">
-      <template #bodyCell="{ column, record }">
-        <template v-if="column.dataIndex === 'amount'">
-          <a-tag>{{utils.formatAmount(record.amount)}}</a-tag>
-        </template>
-      </template>
-    </a-table>
+    <normalTable size="small" :columns="utils.TBLayout('incomeTable')" :param="{id:20230221193203,content:{sa_orderid:router.currentRoute.value.query.id,where:{}}}"></normalTable>
   </div>
 </template>
 
 <script setup>
-  import {defineProps,ref,onMounted } from 'vue';
-  import utils from '@/utils/utils'
-  import Api  from '@/api/api'
-  import { useRouter } from "vue-router";
-
-  const router = useRouter()
-  const props = defineProps({
-    id:Number
-  })
-
-  const param = ref({
-    "id": 20230221193203,
-    "content": {
-      "sa_orderid": router.currentRoute.value.query.id,
-      "pageNumber": 1,
-      "pageSize": 17,
-      "where": {
-          "condition": ""
-      }
-    }
-  })
-  const data = ref([])
-  const total = ref(0)
-  const columns = [
-    {
-      title:'状态',
-      dataIndex:'status',
-      width:90,
-      ellipsis:true,
-    },
-    {
-      title:'单据编号',
-      dataIndex:'billno',
-      width:180,
-      ellipsis:true,
-    },
-    {
-      title:'创建日期',
-      dataIndex:'createdate',
-      width:150,
-      ellipsis:true,
-    },
-    {
-      title:'来源',
-      dataIndex:'source',
-      width:90,
-      ellipsis:true,
-    },
-    {
-      title:'收支金额',
-      dataIndex:'amount',
-      width:90,
-      ellipsis:true,
-    },
-    
-    {
-      title:'备注',
-      dataIndex:'remarks',
-      width:250,
-      ellipsis:true,
-    },
-  ]
-  const onChange = (pagination, filters, sorter, { currentDataSource })=>{
-    props.param.content.pageNumber = pagination.current
-    props.param.content.pageSize = pagination.pageSize
-    listData()
-  }
-  const listData = async ()=> {
-    const res = await Api.requested(param.value)
-    data.value = res.data
-    total.value = res.total
-  }
-  
-  onMounted(()=>{
-    listData()
-  })
+import {ref} from 'vue'
+import utils from '@/utils/utils'
+import normalTable from '@/template/normalTable/index.vue'
+import { useRouter } from "vue-router"
+const router = useRouter()
 </script>
 <style>
-
-</style>
-<style scoped>
-.ant-table-striped :deep td{
-  font-size: 12px;
-}
-.ant-table-striped :deep(.table-striped) td {
-  background-color: #fafafa;
-}
 </style>