Ver Fonte

【报表】+【单证】所有菜单中各自的接口.js文件 准备

liangyan0105 há 3 anos atrás
pai
commit
6fe2b22b9d

+ 20 - 1
README.md

@@ -132,4 +132,23 @@ Docker 镜像使用
   
 # 6.访问前台项目
   http://localhost:80
-``` 
+``` 
+
+--------------------------------------------------------------------------------
+#### 项目接口文档说明
+
+- src
+    - api
+        - document [所有-单证-接口]
+
+        - reportForms [所有-报表-接口]
+
+        - api.js [框架自带--含:角色管理、用户管理、权限管理、部门(及二级部门)管理、日志 管理、数据字典、系统通告、中转HTTP请求]
+
+        - GroupRequest.js [分组请求]
+
+        - index.js [登录、登出、忘记密码、注册等api]
+
+        - manage.js [post、get、put、delete、下载文件(excel导出)、上传(图片)]
+
+--------------------------------------------------------------------------------

+ 1 - 0
src/api/document/advance-packingList.js

@@ -0,0 +1 @@
+/** 单证 -- 预装箱单 预装箱单 - 成衣 **/

+ 1 - 0
src/api/document/book.js

@@ -0,0 +1 @@
+/** 单证 -- 托书 **/

+ 1 - 0
src/api/document/cost-allocation-total.js

@@ -0,0 +1 @@
+/** 单证 -- 成本分配汇总 **/

+ 1 - 0
src/api/document/declare-elements.js

@@ -0,0 +1 @@
+/** 单证 -- 申报要素 **/

+ 1 - 0
src/api/document/order.js

@@ -0,0 +1 @@
+/** 单证 -- 订单数据 **/

+ 1 - 0
src/api/document/packing-list/packinglist-clothes.js

@@ -0,0 +1 @@
+/** 单证 -- 装箱单-成衣 **/

+ 1 - 0
src/api/document/packing-list/packinglist-fabrics.js

@@ -0,0 +1 @@
+/** 单证 -- 装箱单-面料 **/

+ 1 - 0
src/api/document/pre-book.js

@@ -0,0 +1 @@
+/** 单证 -- 预托书列表 **/

+ 1 - 0
src/api/document/push-fail-total.js

@@ -0,0 +1 @@
+/** 单证 -- 推送失败汇总 **/

+ 1 - 1
src/api/document/shipmentList.js

@@ -1,6 +1,6 @@
 import { getAction, postAction } from '@/api/manage'
 
-/** 发运明细 **/
+/** 单证 -- 发运明细 **/
 
 // 分页列表查询
 const shipmentList = params => getAction('/shippingDetails/syShippingDetails/list', params)

+ 1 - 0
src/api/reportForms/bookTotal-details-table.js

@@ -0,0 +1 @@
+/** 报表 -- 托书汇总明细报表 **/

+ 1 - 0
src/api/reportForms/cost-allocation-table.js

@@ -0,0 +1 @@
+/** 报表 -- 成本分配表 **/

+ 1 - 0
src/api/reportForms/dye-loss-table.js

@@ -0,0 +1 @@
+/** 报表 -- 染损报表 **/

+ 1 - 0
src/api/reportForms/fabric-loss-table.js

@@ -0,0 +1 @@
+/** 报表 -- 面料损耗表 **/

+ 1 - 0
src/api/reportForms/full-rate-table.js

@@ -0,0 +1 @@
+/** 报表 -- 齐套率报表 **/

+ 1 - 0
src/api/reportForms/order-statistics/external-statistics.js

@@ -0,0 +1 @@
+/** 报表 -- 订单外部统计表 **/

+ 1 - 0
src/api/reportForms/order-statistics/interior-statistics.js

@@ -0,0 +1 @@
+/** 报表 -- 订单内部统计表 **/

+ 1 - 0
src/api/reportForms/packingList-overissue-table.js

@@ -0,0 +1 @@
+/** 报表 -- 装箱单超发报表 **/

+ 1 - 0
src/api/reportForms/pro-progress-report.js

@@ -0,0 +1 @@
+/** 报表 -- 生产进度报表 **/

+ 1 - 0
src/api/reportForms/supply-capacity-table.js

@@ -0,0 +1 @@
+/** 报表 -- 供应商产能报表 **/

+ 1 - 1
src/views/cost-allocation-total/list.vue

@@ -1,5 +1,5 @@
 <template>
-  <!-- 成本分配汇总  单证-->
+  <!-- 【单证】 成本分配汇总 -->
   <div id="CostAllocationTotal">
     <!-- 查询区域 -->
     <a-card :bordered="false">

+ 1 - 1
src/views/order/orderList.vue

@@ -1,5 +1,5 @@
 <template>
-  <!-- 订单数据 -->
+  <!-- 【单证】 订单数据 -->
   <div id="orderList">
     <a-card :bordered="false">
       <!-- 查询区域 -->

+ 39 - 39
src/views/reportForms/cost-allocation-add.vue → src/views/reportForms/cost-allocation-table.vue

@@ -1,18 +1,18 @@
 <template>
-  <!-- 成本分配 (保存后数据到单证的成本分配汇总内)-->
-  <div id="costAllocationAdd">
+  <!-- 成本分配 (保存后数据到单证的成本分配汇总内)-->
+  <div id="costAllocationTable">
     <a-card :bordered="false">
       <!-- 主表信息 点击搜索后 全部回显--->
       <div class="table-page-search-wrapper">
-        <a-form-model layout="inline" ref="form" :model="costAllocationAdd" :rules="validatorRules">
+        <a-form-model layout="inline" ref="form" :model="costAllocationTable" :rules="validatorRules">
           <a-row :gutter="24">
             <a-col :md="6" :sm="8">
               <a-form-model-item label="计划单号" prop="planNum">
-                <!-- <a-input placeholder="请输入计划单号" v-model="costAllocationAdd.planNum"></a-input> -->
+                <!-- <a-input placeholder="请输入计划单号" v-model="costAllocationTable.planNum"></a-input> -->
                 <a-input-search
                   placeholder="请输入计划单号"
                   enter-button
-                  v-model="costAllocationAdd.planNum"
+                  v-model="costAllocationTable.planNum"
                   @search="onSearch"
                 />
               </a-form-model-item>
@@ -21,37 +21,37 @@
             <a-col :md="6" :sm="8">
               <a-form-model-item label="产品款号" prop="poStyleNum">
                 产品款号AZ2445
-                <!-- <a-input v-model="costAllocationAdd.poStyleNum" disabled></a-input> -->
+                <!-- <a-input v-model="costAllocationTable.poStyleNum" disabled></a-input> -->
               </a-form-model-item>
             </a-col>
 
             <a-col :md="6" :sm="8">
               <a-form-model-item label="外销员" prop="exportSales">
-                <a-input v-model="costAllocationAdd.exportSales" ></a-input>
+                <a-input v-model="costAllocationTable.exportSales" ></a-input>
               </a-form-model-item>
             </a-col>
 
             <a-col :md="6" :sm="8">
               <a-form-model-item label="成衣合同号" prop="garmentContractNo">
-                <a-input v-model="costAllocationAdd.garmentContractNo"></a-input>
+                <a-input v-model="costAllocationTable.garmentContractNo"></a-input>
               </a-form-model-item>
             </a-col>
 
             <a-col :md="6" :sm="8">
               <a-form-model-item label="部门" prop="department">
-                <a-input v-model="costAllocationAdd.department"></a-input>
+                <a-input v-model="costAllocationTable.department"></a-input>
               </a-form-model-item>
             </a-col>
 
             <a-col :md="6" :sm="8">
               <a-form-model-item label="客户简称" prop="customerShortName">
-                <a-input v-model="costAllocationAdd.customerShortName"></a-input>
+                <a-input v-model="costAllocationTable.customerShortName"></a-input>
               </a-form-model-item>
             </a-col>
 
             <a-col :md="6" :sm="8">
               <a-form-model-item label="加工单位" prop="processUnit">
-                <a-input v-model="costAllocationAdd.processUnit"></a-input>
+                <a-input v-model="costAllocationTable.processUnit"></a-input>
               </a-form-model-item>
             </a-col>
 
@@ -60,27 +60,27 @@
                 <a-date-picker
                   style="width: 100%"
                   :format="dateFormat"
-                  v-model="costAllocationAdd.outData"
+                  v-model="costAllocationTable.outData"
                 ></a-date-picker>
               </a-form-model-item>
             </a-col>
 
             <a-col :md="6" :sm="8">
               <a-form-model-item label="计划数量" prop="planQuantity">
-                <a-input v-model="costAllocationAdd.planQuantity"></a-input>
+                <a-input v-model="costAllocationTable.planQuantity"></a-input>
               </a-form-model-item>
             </a-col>
 
             <a-col :md="6" :sm="8">
               <a-form-model-item label="美元外销总价" prop="USDTotalExportPrice">
-                <a-input v-model="costAllocationAdd.USDTotalExportPrice"></a-input>
+                <a-input v-model="costAllocationTable.USDTotalExportPrice"></a-input>
               </a-form-model-item>
             </a-col>
 
             <a-col :md="6" :sm="8">
               <a-form-model-item label="人民币费用支出" prop="RMBExpense">
                 <a-input
-                  v-model="costAllocationAdd.RMBExpense"
+                  v-model="costAllocationTable.RMBExpense"
                   style="color:#027db4;"
                   @click="mainTableExpenseCNY"
                 ></a-input>
@@ -89,26 +89,26 @@
 
             <a-col :md="6" :sm="8">
               <a-form-model-item label="税率%" prop="taxRate">
-                <a-input v-model="costAllocationAdd.taxRate"></a-input>
+                <a-input v-model="costAllocationTable.taxRate"></a-input>
               </a-form-model-item>
             </a-col>
 
             <a-col :md="6" :sm="8">
               <a-form-model-item label="实际出货数量" prop="actualShipQuantity">
-                <a-input v-model="costAllocationAdd.actualShipQuantity"></a-input>
+                <a-input v-model="costAllocationTable.actualShipQuantity"></a-input>
               </a-form-model-item>
             </a-col>
 
             <a-col :md="6" :sm="8">
               <a-form-model-item label="人民币外销金额" prop="RMBExportAmount">
-                <a-input v-model="costAllocationAdd.RMBExportAmount"></a-input>
+                <a-input v-model="costAllocationTable.RMBExportAmount"></a-input>
               </a-form-model-item>
             </a-col>
 
             <a-col :md="6" :sm="8">
               <a-form-model-item label="美元费用支出" prop="USDExpense">
                 <a-input
-                  v-model="costAllocationAdd.USDExpense"
+                  v-model="costAllocationTable.USDExpense"
                   style="color:#027db4;"
                   @click="mainTableExpenseUSD"
                 ></a-input>
@@ -117,79 +117,79 @@
 
             <a-col :md="6" :sm="8">
               <a-form-model-item label="加工费" prop="processCost">
-                <a-input v-model="costAllocationAdd.processCost"></a-input>
+                <a-input v-model="costAllocationTable.processCost"></a-input>
               </a-form-model-item>
             </a-col>
 
             <a-col :md="6" :sm="8">
               <a-form-model-item label="短出数" prop="shortSeveral">
-                <a-input v-model="costAllocationAdd.shortSeveral"></a-input>
+                <a-input v-model="costAllocationTable.shortSeveral"></a-input>
               </a-form-model-item>
             </a-col>
 
             <a-col :md="6" :sm="8">
               <a-form-model-item label="短出货值" prop="shortValue">
-                <a-input v-model="costAllocationAdd.shortValue"></a-input>
+                <a-input v-model="costAllocationTable.shortValue"></a-input>
               </a-form-model-item>
             </a-col>
 
             <a-col :md="6" :sm="8">
               <a-form-model-item label="短出面料成本" prop="fabricShortCost">
-                <a-input v-model="costAllocationAdd.fabricShortCost"></a-input>
+                <a-input v-model="costAllocationTable.fabricShortCost"></a-input>
               </a-form-model-item>
             </a-col>
 
             <a-col :md="6" :sm="8">
               <a-form-model-item label="事故单美金金额" prop="accidentUSDAmount">
-                <a-input v-model="costAllocationAdd.accidentUSDAmount"></a-input>
+                <a-input v-model="costAllocationTable.accidentUSDAmount"></a-input>
               </a-form-model-item>
             </a-col>
 
             <a-col :md="6" :sm="8">
               <a-form-model-item label="面料含税成本" prop="fabricCostIncludesTax">
-                <a-input v-model="costAllocationAdd.fabricCostIncludesTax"></a-input>
+                <a-input v-model="costAllocationTable.fabricCostIncludesTax"></a-input>
               </a-form-model-item>
             </a-col>
 
             <a-col :md="6" :sm="8">
               <a-form-model-item label="辅料含税成本" prop="excipienCostIncludesTax">
-                <a-input v-model="costAllocationAdd.excipienCostIncludesTax"></a-input>
+                <a-input v-model="costAllocationTable.excipienCostIncludesTax"></a-input>
               </a-form-model-item>
             </a-col>
 
             <a-col :md="6" :sm="8">
               <a-form-model-item label="销售订单本币总额" prop="salesOrdersLocalTotal">
-                <a-input v-model="costAllocationAdd.salesOrdersLocalTotal"></a-input>
+                <a-input v-model="costAllocationTable.salesOrdersLocalTotal"></a-input>
               </a-form-model-item>
             </a-col>
 
             <a-col :md="6" :sm="8">
               <a-form-model-item label="事故单人民币金额" prop="accidentCNYAmount">
-                <a-input v-model="costAllocationAdd.accidentCNYAmount"></a-input>
+                <a-input v-model="costAllocationTable.accidentCNYAmount"></a-input>
               </a-form-model-item>
             </a-col>
 
             <a-col :md="6" :sm="8">
               <a-form-model-item label="面料不含税成本" prop="fabricCostNotIncludesTax">
-                <a-input v-model="costAllocationAdd.fabricCostNotIncludesTax"></a-input>
+                <a-input v-model="costAllocationTable.fabricCostNotIncludesTax"></a-input>
               </a-form-model-item>
             </a-col>
 
             <a-col :md="6" :sm="8">
               <a-form-model-item label="辅料不含税成本" prop="excipienCostNotIncludesTax">
-                <a-input v-model="costAllocationAdd.excipienCostNotIncludesTax"></a-input>
+                <a-input v-model="costAllocationTable.excipienCostNotIncludesTax"></a-input>
               </a-form-model-item>
             </a-col>
 
             <a-col :md="6" :sm="8">
               <a-form-model-item label="销售订单原币总额" prop="salesOrdersOriginalTotal">
-                <a-input v-model="costAllocationAdd.salesOrdersOriginalTotal"></a-input>
+                <a-input v-model="costAllocationTable.salesOrdersOriginalTotal"></a-input>
               </a-form-model-item>
             </a-col>
 
             <a-col :md="6" :sm="8">
               <a-form-model-item label="制单人" prop="preparedBy">
-                <a-input v-model="costAllocationAdd.preparedBy"></a-input>
+                <a-input v-model="costAllocationTable.preparedBy"></a-input>
               </a-form-model-item>
             </a-col>
 
@@ -242,11 +242,11 @@
       <div class="note-one" style="marginTop:40px;">
         <h6 class="table-title">备注信息 1</h6>
         <div class="noteDetail">
-          <a-form-model ref="form" :model="costAllocationAdd" :rues="validatorRules">
+          <a-form-model ref="form" :model="costAllocationTable" :rues="validatorRules">
             <a-form-model-item prop="noteOne">
               <a-input
                 type="textarea"
-                v-model="costAllocationAdd.noteOne"
+                v-model="costAllocationTable.noteOne"
                 placeholder="请输入备注"
                 style="minHeight:100px;"
               />
@@ -259,11 +259,11 @@
       <!-- <div class="note-one" style="marginTop:40px;">
         <h6 class="table-title">备注信息 2</h6>
         <div class="noteDetail">
-          <a-form-model ref="form" :model="costAllocationAdd" :rues="validatorRules">
+          <a-form-model ref="form" :model="costAllocationTable" :rues="validatorRules">
             <a-form-model-item prop="noteOne">
               <a-input
                 type="textarea"
-                v-model="costAllocationAdd.noteTwo"
+                v-model="costAllocationTable.noteTwo"
                 placeholder="请输入备注"
                 style="minHeight:100px;"
               />
@@ -304,14 +304,14 @@ import mainTableExpenseUSDModal from '@views/reportForms/cost-allocation-table/m
 import accidentListModal from '@views/reportForms/fabric-loss-table/accidentListModal.vue' // 事故单
 
 export default {
-  name: 'CostAllocationAdd', // 成本分配 (新增)
+  name: 'CostAllocationTable', // 成本分配 (新增)
   mixins: [JeecgListMixin],
   components: { JEllipsis, moment, tabs, mainTableExpenseCNYModal, mainTableExpenseUSDModal, accidentListModal },
 
   data() {
     return {
       loading: false, // 表格加载
-      costAllocationAdd: {}, // 成本分配统计
+      costAllocationTable: {}, // 成本分配统计
       dateFormat: 'YYYY-MM-DD',
       noteOne: '', // 备注 1
       noteTwo: '', // 备注 2
@@ -387,7 +387,7 @@ export default {
       this.$refs.form.validate(valid => {
         if (valid) {
           //  alert('保存!')
-          console.log('备注信息:', this.costAllocationAdd.noteOne, '计划单号:', this.costAllocationAdd.planNum)
+          console.log('备注信息:', this.costAllocationTable.noteOne, '计划单号:', this.costAllocationTable.planNum)
           // that.$message.success(res.message)
           that.$message.success('保存成功,数据添加到成本分配汇总')
         } else {

+ 1 - 1
src/views/reportForms/dye-loss-table.vue

@@ -1,5 +1,5 @@
 <template>
-  <!-- 染损报 -->
+  <!-- 染损报 -->
   <div id="dyeLossTable">
     <a-card :bordered="false">
       <!-- 查询区域 -->

+ 2 - 2
src/views/reportForms/full-rate-table.vue

@@ -1,5 +1,5 @@
 <template>
-  <!-- 齐套率统计表 -->
+  <!-- 齐套率表 -->
   <div id="fullratetable">
     <!-- 查询 -->
     <a-card :bordered="false">
@@ -143,7 +143,7 @@ import moment from 'moment'
 import emailMsgModal from '@views/reportForms/full-rate-table/emailMsgModal.vue'
 
 export default {
-  name: 'Fullratetable', // 齐套率统计
+  name: 'Fullratetable', // 齐套率
   mixins: [JeecgListMixin],
   components: { JEllipsis, moment, emailMsgModal },
 

+ 1 - 1
src/views/shipment-details/referOrderDataModal.vue

@@ -295,7 +295,7 @@ export default {
           className: 'replacecolor'
         }
       ],
-      referOerderData: [],
+      referOerderData: [{}, {}],
       // orderDataform: this.$form.createForm(this),
       confirmLoading: false,
       referOrderDataModVis: false,

+ 2 - 15
src/views/shipment-details/shipmentList.vue

@@ -495,36 +495,23 @@ export default {
           if (res.success) {
             this.shipmentListData = res.result.records
             console.log('发运明细列表', this.shipmentListData)
+            // 分页信息赋值
             this.pagination = {
-              // 分页信息赋值
               total: res.result.total,
               current: res.result.current,
               pageSize: res.result.size
             }
-            // console.log(this.pagination.total, this.pagination.pageSize, this.pagination.current)
           }
         })
       })
     },
-    // 分页、排序、筛选变化时触发
-    // handleTableChange(pagination, filters, sorter) {
-    //   console.log('当前页信息>>>>', pagination)
-    //   // this.queryParam.pageNo = pagination.current
-    //   if (Object.keys(sorter).length > 0) {
-    //     this.isorter.column = sorter.field
-    //     this.isorter.order = sorter.order == 'ascend' ? 'asc' : 'desc'
-    //   }
-    //   console.log('sorter:', sorter)
-    //   this.ipagination = pagination
-    //   this.getShipmentList()
-    // },
+
     // 查询按钮
     searchQuery() {
       this.getShipmentList() // 渲染 发运明细列表
     },
     // 重置
     searchReset() {
-      // console.log('>>>>重置')
       this.queryParam.documentNo = ''
       this.queryParam.startTime = ''
       this.queryParam.endTime = ''