Просмотр исходного кода

Merge branch 'master' of http://git.dongkesoft.com:9001/iBOSS-2.0-Mini/iboss-mini-web

changhaoning 2 лет назад
Родитель
Сommit
7d9dd4d7da

+ 1 - 1
src/api/pages/ivt/out-handle.js

@@ -11,7 +11,7 @@ export default {
     //其他出库新建
     outboundInsert: 'outbound_insert',
     //其他出库办理
-    handleInbound:'outbound_handle',
+    handleOutbound:'outbound_handle',
     //其他出库根据总单id查询总单和明细  出库办理用
     selectByUpdate: 'select_by_update',
     //出库撤回

+ 0 - 1
src/api/pages/mst/goods.js

@@ -6,7 +6,6 @@
 export default {
   goodsService:{
     prefix: '/mdm-server/mst/goodsSku/',
-
   }
 }
 

+ 21 - 0
src/api/pages/report/detail-report.js

@@ -0,0 +1,21 @@
+/**
+ * @desc   : 服务
+ * @author : 周兴
+ * @date   : 2022年12月13日14:59:59
+ */
+export default {
+  detailReportService: {
+    // 前缀
+    prefix: '/mdm-server/mst/report/',
+  }
+}
+
+/**
+ * @desc   : 路由
+ * @author : 周兴
+ * @date   : 2023/3/4 18:28
+ */
+export const routeUrl = {
+  detailReport: {
+  }
+}

+ 3 - 3
src/components/business/select-magnifier/setting.js

@@ -60,7 +60,7 @@ const data = {
       {itemCode: 'staffName'},
     ],
     // 查询条件一行个数
-    colCount: 4,
+    colCount: 2,
     // 弹窗的宽度
     modalWidth: 600,
     // 列表主键Id
@@ -69,8 +69,8 @@ const data = {
     selectLabel: 'staffName',
     // 列表列
     columns: [
-      {field: 'staffCodeName', width: '200', title: $t('staff')},
-      {field: 'orgName', title: $t('orgId')},
+      {field: 'staffCodeName', title: $t('staff'), width: 'auto'},
+      {field: 'orgName', title: $t('orgId'), width: 'auto'},
     ],
   },
   // 责任员工

+ 18 - 0
src/libs/tools/tools.js

@@ -15,6 +15,24 @@ Number.prototype.toThousandth = function (digits) {
 }
 
 /**
+ * @desc   : 判断实体是否为空
+ * @author : 周兴
+ * @date   : 2024/4/9 10:25
+ */
+Vue.prototype.isEmpty = function (obj){
+  let flag = true;
+  console.log('d',obj)
+  let keys = Object.keys(obj);
+  for (let key of keys){
+    if(obj[key]){
+      flag = false;
+      break;
+    }
+  }
+  return flag;
+}
+
+/**
  * @desc   : 给列表的行设置行错误信息
  * @author : 周兴
  * @param  : row:行 msg:错误信息

+ 19 - 0
src/libs/update-columns/index.js

@@ -174,4 +174,23 @@ export default {
     {updateField: 'WhId', valueFiled: 'whId'},
   ],
 
+  /**
+   *   @desc   : 其他出库
+   *   @date   : 2024/4/8 14:09
+   *   @author : 寇珊珊
+   */
+  outChooseIvt:[
+    {updateField: 'skuModel', valueFiled: 'skuModel'},
+    {updateField: 'skuName', valueFiled: 'skuName'},
+    {updateField: 'invId', valueFiled: 'invId'},
+    {updateField: 'skuId', valueFiled: 'skuId'},
+    {updateField: 'skuCode', valueFiled: 'skuCode'},
+    {updateField: 'whName', valueFiled: 'whName'},
+    {updateField: 'invQty', valueFiled: 'invQty'},
+    {updateField: 'usableQty', valueFiled: 'usableQty'},
+    {updateField: 'priceInto', valueFiled: 'priceInto'},
+    {updateField: 'brandName', valueFiled: 'brandName'},
+    {updateField: 'skuSpec', valueFiled: 'skuSpec'},
+  ],
+
 }

+ 11 - 2
src/locale/lang/zh-CN.js

@@ -105,8 +105,6 @@ export const button = {
   addNsc:'新建批号调整',
   intoEnter:'转入库',
   purchaseReturn:'采购退货',
-  transferPrice:'调整单价',
-  transferAmt:'调整金额',
 }
 
 /**
@@ -536,6 +534,12 @@ export const columns = {
   trfInMacName:'转入账户',
   trfOutMacName:'转出账户',
   amtTrf:'转账金额',
+  outReason:'出库原因',
+  autoOutFlag:'自动办理出库',
+  objOutId:'出库对象',
+  outboundObjectName:'出库对象',
+  outQuantity:'出库数量',
+  outAmount:'出库金额',
   macTransfer:'资金转账',
   trfTypeName:'转账类型',
   series:'商品系列',
@@ -548,6 +552,10 @@ export const columns = {
   priceItem:'价格信息',
   priceWholesale:'批发价',
   priceLimited:'销售限价',
+  transferPrice:'调整单价',
+  transferAmt:'调整金额',
+  invInto:'存货信息',
+  skuImages:'商品图片',
   intention: '客户意向',
   stayTimeLen: '留店时长',
   followData: '跟进内容',
@@ -658,6 +666,7 @@ export const messages = {
   W_116: '已出库数据不允许进行出库办理',
   W_117: '出库中数据不允许进行出库撤回',
   W_118: '作废单据不允许进行此操作',
+  W_119: '出库数量不能大于库存量',
   E_001: '系统出现异常,请联系管理员。',
   Q_001: '当前页面的数据有过更改,请确认需要保存吗?',
   Q_002: '确定要进行{param}操作吗?',

+ 3 - 3
src/view/ivt/entry-handle/form.vue

@@ -273,9 +273,9 @@
         }
       },
       /**
-       * @desc   : 自动入库标识变更
-       * @author : 夏常明
-       * @date   : 2023/9/1 16:34
+       *   @desc   : 自动入库标识变更
+       *   @date   : 2024/4/8 15:32
+       *   @author : 寇珊珊
        */
       changeIntoStatus() {
         if (this.type === this.$config.formMode.add) {

+ 8 - 0
src/view/ivt/entry-handle/index.vue

@@ -84,6 +84,8 @@
           <DkTableColumn field="cusFrom" :title="$t('takeOverAddress')"></DkTableColumn>
           <!--制单人-->
           <DkTableColumn field="makeStaffName" :filter="false"></DkTableColumn>
+          <!-- 有效标识-->
+          <DkTableColumn field="flgValid" type="switch"/>
           <!--入库办理人-->
           <!--          <DkTableColumn field="doneUserName" :title="$t('entryHandleUser')"></DkTableColumn>-->
           <!-- 备注-->
@@ -140,6 +142,8 @@
           <DkTableColumn field="cusFrom" :title="$t('takeOverAddress')"></DkTableColumn>
           <!--制单人-->
           <DkTableColumn field="makeStaffName" :filter="false"></DkTableColumn>
+          <!-- 有效标识-->
+          <DkTableColumn field="flgValid" type="switch"/>
           <!--入库办理人-->
           <!--          <DkTableColumn field="doneUserName" :title="$t('entryHandleUser')"></DkTableColumn>-->
           <!-- 备注-->
@@ -598,6 +602,7 @@
           //作废单据不允许进行此操作
           if(!rows[0].flgValid){
             this.$Message.error(this.$t('W_007', {'param': this.$t('W_118')}))
+            return false;
           }
           //已入库不允许进行入库办理
           if (this.tableModel == 'ingIn') {
@@ -610,6 +615,7 @@
           //作废单据不允许进行此操作
           if(!rows[0].flgValid){
             this.$Message.error(this.$t('W_007', {'param': this.$t('W_118')}))
+            return false;
           }
           //入库中不允许进行入库撤回
           if (this.tableModel == 'waitIn') {
@@ -622,6 +628,7 @@
           //作废单据不允许进行此操作
           if(!rows[0].flgValid){
             this.$Message.error(this.$t('W_007', {'param': this.$t('W_118')}))
+            return false;
           }
         }
         //作废
@@ -629,6 +636,7 @@
           //作废单据不允许进行此操作
           if(!rows[0].flgValid){
             this.$Message.error(this.$t('W_007', {'param': this.$t('W_118')}))
+            return false;
           }
         }
         return true;

+ 0 - 1
src/view/ivt/ivt-check/form.vue

@@ -307,7 +307,6 @@ export default {
       {
         return false;
       }
-
     },
 
     /**

+ 119 - 134
src/view/ivt/out-handle/form.vue

@@ -1,4 +1,4 @@
-<!-- @desc:其它库新建 @auth:常皓宁 @time : 2024/2/19 9:38 -->
+<!-- @desc:其它库新建 @auth:常皓宁 @time : 2024/2/19 9:38 -->
 <template>
   <div class="main-div">
     <!--加载中-->
@@ -8,27 +8,27 @@
       <DkPanel prop="essentialInformation">
         <div id="search-cond-div" ref="search-cond-div" slot="content" class="form-content-class">
           <DkForm slot="content" ref="formInline" v-model="formData" style="width:100%" :label-max-words="6">
-            <!--库单号-->
-            <DkFormItem prop="intoNo">
-              <InputPop ref="intoNo" v-model="formData.intoNo"
+            <!--库单号-->
+            <DkFormItem prop="outNo">
+              <InputPop ref="outNo" v-model="formData.outNo"
                         :readonly="true"/>
             </DkFormItem>
-            <!-- 库对象 -->
-            <DkFormItem prop="objId" >
+            <!-- 库对象 -->
+            <DkFormItem prop="objId"  :label="$t('objOutId')" >
               <SelectMagnifier v-model="formData.objId"
                                ref="objId"
                                primary-key="objId"
-                               :display-text="formData.inboundObjectName"
+                               :display-text="formData.outboundObjectName"
                                :multiple=false
                                :disabled="canEditFlag"
                                @ok="inboundObjectChange"
                                :type="this.$config.MagnifierType.supplierAndCustomer">
               </SelectMagnifier>
             </DkFormItem>
-            <!-- 库原因 -->
-            <DkFormItem prop="intoReason" :required="true" >
-              <SelectPop v-model="formData.intoReason" :multiple="false" :options="inboundReasonList"
-                         ref="intoReason"
+            <!-- 库原因 -->
+            <DkFormItem prop="outReason" :required="true" >
+              <SelectPop v-model="formData.outReason" :multiple="false" :options="inboundReasonList"
+                         ref="outReason"
                          :labelInValue="true"
                          :disabled="canEditFlag"
                          labelKey="dataValue"
@@ -60,8 +60,8 @@
                                ref="orgId"
                                :type="this.$config.MagnifierType.organization"></SelectMagnifier>
             </DkFormItem>
-            <!--自动库标识-->
-            <DkFormItem prop="autoFlag" v-show="showAutoFlag">
+            <!--自动库标识-->
+            <DkFormItem prop="autoOutFlag" v-show="showAutoFlag">
               <template>
                 <i-switch v-model="formData.flgAutoHandle" @on-change="changeIntoStatus"
                           :disabled="type === $config.formMode.handle">
@@ -70,10 +70,10 @@
                 </i-switch>
               </template>
             </DkFormItem>
-            <!--库日期-->
-            <DkFormItem prop="intoDate"  v-show="showIntoDate">
-              <DatePickerPop v-model="formData.intoDate"
-                             :placeholder="$t('inputWords',{'search-name':$t('intoDate')})"
+            <!--库日期-->
+            <DkFormItem prop="outDate"  v-show="showoutDate">
+              <DatePickerPop v-model="formData.outDate"
+                             :placeholder="$t('inputWords',{'search-name':$t('outDate')})"
                              type="date" :short-cut-flag="true" :readonly="true"/>
             </DkFormItem>
             <!--备注-->
@@ -94,7 +94,7 @@
                      controlId="skuId"
                      @on-choose="getTotals"
                      @changeValue="changeValue"
-                     @onBatchChoose="batchChoose"
+                     @cell-click="handleClickTable"
                      :add-flag="this.addFlag"
                      :delete-flag="this.deleteFlag"
           ></EditTable>
@@ -136,20 +136,20 @@
       return {
         //画面模式选项角标
         bottomList: ['1', '2', '3', '5'],
-        //库原因
+        //库原因
         inboundReasonList: [],
-        //是否显示自动办理库标识
+        //是否显示自动办理库标识
         showAutoFlag: true,
-        //库日期是否显示
-        showIntoDate: false,
+        //库日期是否显示
+        showoutDate: false,
         // 画面表单数据
         formData: {
-          intoId: null,//入库单Id
-          objId: null,//库对象id
-          intoNo: null,//入库单号
-          intoDate:null,//入库日期
-          intoReason: null,//入库原因
-          flgAutoHandle: false,//自动库标识
+          outId: null,//出库单Id
+          objId: null,//库对象id
+          outNo: null,//出库单号
+          outDate:null,//出库日期
+          outReason: null,//出库原因
+          flgAutoHandle: false,//自动库标识
           cusId: null,//客户id
           cusName: null,//客户名称
           cusPhone: null,//客户电话
@@ -158,7 +158,6 @@
           makeTime:new Date().format(),//制单日期
           supId: null,//供应商id
           remarks: null,//备注
-          defWhId: null,//部门默认仓库ID
           // 附件
           annexPaths: [],
           staffId:null,
@@ -175,8 +174,8 @@
             controlId: 'skuId',
             type: 'tableSelect',
             width: 200,
-            dataType: self.$config.tableSelectType.goodsForOrder,
-            fieldUpdate: self.$updateColumns.orderChooseGoods,
+            dataType: self.$config.tableSelectType.inventory,
+            fieldUpdate: self.$updateColumns.outChooseIvt,
             searchDetailFlag: true
           },
           // 商品名称
@@ -185,55 +184,68 @@
             controlId: 'skuId',
             type: 'tableSelect',
             width: 200,
-            dataType: self.$config.tableSelectType.goods,
-            fieldUpdate: self.$updateColumns.orderChooseGoods,
+            dataType: self.$config.tableSelectType.inventory,
+            fieldUpdate: self.$updateColumns.outChooseIvt,
             searchDetailFlag: true
           },
-          // 入库数量
+          //库存数量
+          {
+            field: 'invQty',
+            type: 'disabled',
+          },
+          // 出库数量
           {
             field: 'outingQty',
-            title: self.$t('entryQty'),
+            title: self.$t('outQuantity'),
             type: 'number',
             digits: 0,
             sum: true,
             formula: {
-              outingAmt: ['priceOut*outingQty', 'priceOut', 'outingQty'],
+              outingAmt: ['priceInto*outingQty', 'priceInto', 'outingQty'],
             },
           },
-          //库单价
+          //库单价
           {
-            field: 'priceOut',
-            type: 'number',
+            field: 'priceInto',
+            title: self.$t('priceOut'),
+            type: 'disabled',
             digits: 2,
-            flgUserSensitive: true,
             formula: {
-              outingAmt: ['priceOut*outingQty', 'priceOut', 'outingQty'],
+              outingAmt: ['priceInto*outingQty', 'priceInto', 'outingQty'],
             },
           },
-          //库金额
+          //库金额
           {
             field: 'outingAmt',
-            title: self.$t('entryAmt'),
+            title: self.$t('outAmount'),
             type: 'disabled',
             digits: 2,
             sum: true,
             formula: {
-              priceOut: ['outingAmt/outingQty', 'outingAmt', 'outingQty'],
+              priceInto: ['outingAmt/outingQty', 'outingAmt', 'outingQty'],
             },
           },
           //仓库名称
           {
-            field: 'whId',
-            type: 'select',
-            options: () => self.warehouseList,
-            labelKey: 'whName',
-            valueKey: 'whId',
-            dataType: self.$config.tableSelectType.warehouse,
+            field: 'whName',
+            type: 'tableSelect',
+            multiple: false,
+            sortBoolean: false,
+            dataType: self.$config.tableSelectType.inventory,
+            otherSearchParam: () => {
+              return {
+                skuId: self.currentRow?.skuId,
+                nonStdCode: self.currentRow?.nonStdCode,
+              }
+            },
             fieldUpdate: [
-              {updateField: 'whName', valueFiled: 'whName'},
+              {updateField: 'invQty', valueFiled: 'invQty'},
+              {updateField: 'usableQty', valueFiled: 'usableQty'},
+              {updateField: 'invId', valueFiled: 'invId'},
               {updateField: 'whId', valueFiled: 'whId'},
+              {updateField: 'whName', valueFiled: 'whName'},
             ],
-            searchDataFlag: false,
+            searchDetailFlag: true
           },
           {field: 'brandName', type: 'disabled'},//商品品牌
           {field: 'skuSpec', type: 'disabled'}, //规格
@@ -243,10 +255,6 @@
         goodsFootFormData: {
           sumGoodsAmount: 0,
         },
-        //仓库
-        warehouseList: [],
-        whId:null,
-        whName:null,
         //可以编辑标识
         canEditFlag:false,
         addFlag: true ,//商品信息新增
@@ -256,7 +264,7 @@
 
     methods: {
       /**
-       *   @desc   : 库对象改变事件
+       *   @desc   : 库对象改变事件
        *   @date   : 2024/3/13 10:55
        *   @author : 寇珊珊
        */
@@ -273,21 +281,31 @@
         }
       },
       /**
-       * @desc   : 自动入库标识变更
-       * @author : 夏常明
-       * @date   : 2023/9/1 16:34
+       *   @desc   : 自动出库标识变更
+       *   @date   : 2024/4/8 15:31
+       *   @author : 寇珊珊
        */
       changeIntoStatus() {
         if (this.type === this.$config.formMode.add) {
           if (this.formData.flgAutoHandle) {
-            this.formData.intoDate = new Date().format("yyyy-MM-dd")
-            this.showIntoDate = true
+            this.formData.outDate = new Date().format("yyyy-MM-dd")
+            this.showoutDate = true
           }else{
-            this.formData.intoDate = null
-            this.showIntoDate = false
+            this.formData.outDate = null
+            this.showoutDate = false
           }
         }else {
-          this.formData.intoDate = new Date().format("yyyy-MM-dd")
+          this.formData.outDate = new Date().format("yyyy-MM-dd")
+        }
+      },
+      /**
+       *   @desc   : 表格点击事件
+       *   @date   : 2024/4/8 14:35
+       *   @author : 寇珊珊
+       */
+      handleClickTable(e) {
+        if (e) {
+          this.currentRow = e.row
         }
       },
       /**
@@ -326,45 +344,6 @@
         this.goodsFootFormData.sumGoodsAmount = itemAmount;
         this.formData.outingAmt = outingAmt;
         this.formData.outingQty = outingQty;
-        //选择数据带出默认仓库
-        if (!row.whId || row.whId === 0 || row.whId === null) {
-          this.$set(row, 'whId', this.whId);
-          this.$set(row, 'whId_Name', this.whName);
-        }
-      },
-      /**
-       *   @desc   : 批量选择
-       *   @date   : 2024/3/14 10:04
-       *   @author : 寇珊珊
-       */
-      batchChoose(batchRows,rowIndex){
-        console.log("batchRows",batchRows)
-        batchRows.forEach(it=> {
-          if(!it.whId || it.whId === 0 || it.whId === null){
-            this.$set(it,'whId',this.whId);
-            this.$set(it,'whId_Name',this.whName);
-          }
-        })
-      },
-      /**
-       *   @desc   : 查询仓库
-       *   @date   : 2024/3/14 8:45
-       *   @author : 寇珊珊
-       */
-      getWarehouse() {
-        let params = {
-          'cpId': this.$store.state.user.cpId,
-          'flgValid': true
-        }
-        this.excute(this.$service.commonService, this.$service.commonService.getWarehouse, params, false).then(res => {
-          if (res.code === this.$config.SUCCESS_CODE) {
-            this.warehouseList = res.data
-            //赋值默认仓库 组件需要
-            let newList = res.data.filter(it=>it.flgDefault)
-            this.whId = newList[0].whId
-            this.whName = newList[0].whName
-          }
-        })
       },
       /**
        *   @desc   : 获取数据字典
@@ -374,7 +353,7 @@
       getDictionaryData() {
         let params = {
           'cpId': this.$store.state.user.cpId,
-          'dictCode': this.$config.kindCode.basicEnter,
+          'dictCode': this.$config.kindCode.basicOut,
           'flgValid': true
         }
         this.excute(this.$service.commonService, this.$service.commonService.getDictionaryData, params, false).then(res => {
@@ -389,8 +368,6 @@
        *   @author : 寇珊珊
        */
       initData() {
-        //获取仓库
-        this.getWarehouse()
         //获取数据字典
         this.getDictionaryData()
       },
@@ -410,10 +387,15 @@
             this.$message.warning(this.$t('W_041', {'param': this.$t('sequence') + (i + 1) + this.$t('rowNo') + this.$t('outingQty')}))
             return false;
           }
-          if (!itemTable[i].priceOut || itemTable[i].priceOut === '') {
+          if (!itemTable[i].priceInto || itemTable[i].priceInto === '') {
             this.$message.warning(this.$t('W_041', {'param': this.$t('sequence') + (i + 1) + this.$t('rowNo') + this.$t('priceOut')}))
             return false;
           }
+          if (itemTable[i].outingQty > itemTable[i].usableQty) {
+            this.$message.warning(this.$t('sequence') + (i + 1) + this.$t('rowNo') + this.$t('W_119'))
+            // this.$Message.warning(this.$t('W_007', {'param': '本次出库数量不能大于库存量'}))
+            return false;
+          }
         }
         return true;
       },
@@ -430,14 +412,15 @@
           this.formData.outingQty =null
           this.formData.outingAmt = null
         }
-        //库时间
-        if(this.formData.intoDate){
-          this.formData.intoDate  = new Date(this.formData.intoDate).format('yyyy-MM-dd')
+        //库时间
+        if(this.formData.outDate){
+          this.formData.outDate  = new Date(this.formData.outDate).format('yyyy-MM-dd')
         }
         // 修改新增的表数据
         let itemTable = this.$refs['goodsTable'].getTableDataFilter();
-        if(itemTable.filter(it=>it.whId).length==itemTable.length){
-          this.params.whId =itemTable[0].whId
+        //出库价赋值
+        for(let i=0;i<itemTable.length;i++){
+          itemTable[i].priceOut = itemTable[i].priceInto
         }
         this.formData.staffId = this.formData.makeStaff
         this.formData.itemList = itemTable;
@@ -452,15 +435,15 @@
       saveData() {
         //新建
         if (this.type === this.$config.formMode.add) {
-          return this.excute(this.$service.otherInboundService, this.$service.otherInboundService.inboundInsert, this.params)
+          return this.excute(this.$service.otherOutboundService, this.$service.otherOutboundService.outboundInsert, this.params)
         }
-        //库办理
+        //库办理
         else if(this.type === this.$config.formMode.handle) {
-          return this.excute(this.$service.otherInboundService, this.$service.otherInboundService.handleInbound, this.params)
+          return this.excute(this.$service.otherOutboundService, this.$service.otherOutboundService.handleOutbound, this.params)
         }
         //编辑
         else if(this.type === this.$config.formMode.edit){
-          return this.excute(this.$service.otherInboundService, this.$service.otherInboundService.inboundUpdate, this.params)
+          return this.excute(this.$service.otherOutboundService, this.$service.otherOutboundService.outboundUpdate, this.params)
         }
       },
       /**
@@ -470,12 +453,12 @@
        */
       clear() {
         this.formData = {
-          intoId: null,//入库单Id
-          inboundObject: null,//库对象id
-          intoNo: null,//入库单号
-          intoDate: null,//入库日期
-          intoReason: null,//入库原因
-          flgAutoHandle: false,//自动库标识
+          outId: null,//出库单Id
+          inboundObject: null,//库对象id
+          outNo: null,//出库单号
+          outDate: null,//出库日期
+          outReason: null,//出库原因
+          flgAutoHandle: false,//自动库标识
           cusId: null,//客户id
           cusName: null,//客户名称
           cusPhone: null,//客户电话
@@ -484,7 +467,6 @@
           makeTime:new Date().format(),//制单日期
           supId: null,//供应商id
           remarks: null,//备注
-          defWhId: null,//部门默认仓库ID
           // 附件
           annexPaths: [],
           staffId:null,
@@ -498,7 +480,7 @@
        *   @author : 寇珊珊
        */
       detail(id) {
-        return this.excuteNoParam(this.$service.otherInboundService, this.$service.otherInboundService.selectByUpdate, [id]);
+        return this.excuteNoParam(this.$service.otherOutboundService, this.$service.otherOutboundService.selectByUpdate, [id]);
       },
       /**
        *   @desc   : 编辑页面赋值
@@ -510,16 +492,19 @@
         if (data) {
           this.formData = data["data"];
           this.formData.limitEdit= true
-          this.formData.intoDate = new Date().format("yyyy-MM-dd")
-          //库对象赋值
+          this.formData.outDate = new Date().format("yyyy-MM-dd")
+          //库对象赋值
           if(data['data'].supId && data["data"].supId!=null){
             this.formData.objId = data["data"].supId
-            this.formData.inboundObjectName = data["data"].supplierName
+            this.formData.outboundObjectName = data["data"].supplierName
           }else if(data['data'].cusId && data["data"].cusId!=null){
             this.formData.objId = data["data"].cusId
-            this.formData.inboundObjectName = data["data"].cusName
+            this.formData.outboundObjectName = data["data"].cusName
           }
           //明细赋值
+          for(let i=0;i<data["dataItem"].length;i++){
+            data["dataItem"][i].priceInto = data["dataItem"][i].priceOut
+          }
           this.formData.itemList = data["dataItem"];
           this.goodsFootFormData.sumGoodsAmount = this.formData.outingAmt;
           //办理
@@ -546,7 +531,7 @@
             dataItem.map(row => {
               let item = row
               // 不可查询
-              this.$set(item, 'readOnly', ['skuModel','skuName','outingQty','outingAmt','priceOut','whId'])
+              this.$set(item, 'readOnly', ['skuModel','skuName','outingQty','whId'])
               return item
             })
             this.formData.itemList = dataItem;
@@ -555,14 +540,14 @@
       },
     },
     created() {
-      this.focusItem = 'intoId';    // 给第一个组件赋值,可以在混入中自动去聚焦
-      this.primaryKey = 'intoId'  // 设置主键Id
+      this.focusItem = 'outId';    // 给第一个组件赋值,可以在混入中自动去聚焦
+      this.primaryKey = 'outId'  // 设置主键Id
       //设置默认值
       if (this.$route.params.id){
-        // 库办理
+        // 库办理
         if (this.type === this.$config.formMode.handle) {
           this.showAutoFlag = false;
-          this.showIntoDate = true;
+          this.showoutDate = true;
         }
       }
     }

+ 16 - 8
src/view/ivt/out-handle/index.vue

@@ -83,6 +83,8 @@
           <DkTableColumn field="cusFrom" :title="$t('takeOverAddress')"></DkTableColumn>
           <!--制单人-->
           <DkTableColumn field="makeStaffName" :filter="false"></DkTableColumn>
+          <!-- 有效标识-->
+          <DkTableColumn field="flgValid" type="switch"/>
           <!--出库办理人-->
           <!--          <DkTableColumn field="doneUserName" :title="$t('entryHandleUser')"></DkTableColumn>-->
           <!-- 备注-->
@@ -137,6 +139,8 @@
           <DkTableColumn field="cusFrom" :title="$t('takeOverAddress')"></DkTableColumn>
           <!--制单人-->
           <DkTableColumn field="makeStaffName" :filter="false"></DkTableColumn>
+          <!-- 有效标识-->
+          <DkTableColumn field="flgValid" type="switch"/>
           <!--出库办理人-->
           <!--          <DkTableColumn field="doneUserName" :title="$t('entryHandleUser')"></DkTableColumn>-->
           <!-- 备注-->
@@ -496,12 +500,12 @@ export default {
                 let method = null
                 let service = null
                 //其他出库
-                if (row[0].intoType === this.$config.outTypeBySql.other) {
+                if (row[0].outType === this.$config.outTypeBySql.other) {
                   method = 'inboundCancel'
                   service = 'otherOutboundService'
                 }
                 //销售出库
-                else if (row[0].intoType === this.$config.outTypeBySql.order) {
+                else if (row[0].outType === this.$config.outTypeBySql.order) {
                   //todo
                   method = 'purchaseInboundCancel'
                   service = 'orderOutService'
@@ -553,12 +557,12 @@ export default {
                 let method = null
                 let service = null
                 //其他出库
-                if (row[0].intoType === this.$config.outTypeBySql.other) {
+                if (row[0].outType === this.$config.outTypeBySql.other) {
                   method = 'outboundRepeal'
                   service = 'otherOutboundService'
                 }
                 //销售出库
-                else if (row[0].intoType === this.$config.outTypeBySql.order) {
+                else if (row[0].outType === this.$config.outTypeBySql.order) {
                   method = 'purchaseInboundRepeal'
                   service = 'orderOutService'
                 }
@@ -595,6 +599,7 @@ export default {
         //作废单据不允许进行此操作
         if(!rows[0].flgValid){
           this.$Message.error(this.$t('W_007', {'param': this.$t('W_118')}))
+          return false;
         }
         //已出库不允许进行出库办理
         if (this.tableModel == 'ingIn') {
@@ -607,6 +612,7 @@ export default {
         //作废单据不允许进行此操作
         if(!rows[0].flgValid){
           this.$Message.error(this.$t('W_007', {'param': this.$t('W_118')}))
+          return false;
         }
         //出库中不允许进行出库撤回
         if (this.tableModel == 'waitIn') {
@@ -619,6 +625,7 @@ export default {
         //作废单据不允许进行此操作
         if(!rows[0].flgValid){
           this.$Message.error(this.$t('W_007', {'param': this.$t('W_118')}))
+          return false;
         }
       }
       //作废
@@ -626,6 +633,7 @@ export default {
         //作废单据不允许进行此操作
         if(!rows[0].flgValid){
           this.$Message.error(this.$t('W_007', {'param': this.$t('W_118')}))
+          return false;
         }
       }
       return true;
@@ -638,11 +646,11 @@ export default {
     outHandle(row) {
       let name = ''
       //其他出库
-      if (row[0].intoType === this.$config.outTypeBySql.other) {
+      if (row[0].outType === this.$config.outTypeBySql.other) {
         name = 'outHandleOther'
       }
       //销售出库
-      else if (row[0].intoType === this.$config.outTypeBySql.purchaseReturn) {
+      else if (row[0].outType === this.$config.outTypeBySql.purchaseReturn) {
         name = 'outHandleOrder'
       }
       //销售退货出库
@@ -660,11 +668,11 @@ export default {
     edit(row) {
       let name = ''
       //其他出库
-      if (row[0].intoType === this.$config.outTypeBySql.other) {
+      if (row[0].outType === this.$config.outTypeBySql.other) {
         name = 'updateOther'
       }
       //销售出库
-      else if (row[0].intoType === this.$config.outTypeBySql.order) {
+      else if (row[0].outType === this.$config.outTypeBySql.order) {
         name = 'updateOrder'
       }
       //采购退货出库

+ 86 - 58
src/view/mst/goods/form.vue

@@ -8,58 +8,58 @@
                   @pageChange="editPageChange"></DkPageButton>
     <DkCollapse @on-change="changeCollapse" ref="collapse">
       <DkPanel prop="baseAttribute">
-        <!--  下拉区域  -->
-        <DkForm slot="content" ref="formInline" v-model="formData"  :labelMaxWords=5>
-          <!--唯一编码-->
+        <!--  基础属性  -->
+        <DkForm slot="content" ref="formInline" v-model="formData" :labelMaxWords=5>
+          <!--商品编码-->
           <DkFormItem prop="skuCode">
             <InputPop ref="skuCode" v-model="formData.skuCode" :readonly="true"/>
           </DkFormItem>
           <!--商品型号-->
-          <DkFormItem prop="skuModel">
+          <DkFormItem prop="skuModel" :required="true">
             <InputPop ref="skuModel" v-model="formData.skuModel" />
           </DkFormItem>
           <!--商品名称-->
-          <DkFormItem prop="skuName">
+          <DkFormItem prop="skuName" :required="true">
             <InputPop ref="skuName" v-model="formData.skuName"/>
           </DkFormItem>
         </DkForm>
       </DkPanel>
       <DkPanel prop="goodsAttribute">
-        <!--  下拉区域  -->
+        <!--  商品属性  -->
         <DkForm slot="content" ref="formInline" v-model="formData" :labelMaxWords=5>
           <!--  品牌  -->
-          <DkFormItem prop="brandIds">
+          <DkFormItem prop="brandId" :label="$t('brandIds')" :required="true">
             <SelectMagnifier v-model="formData.brandId" :display-text="formData.brandName"
                              :type="this.$config.MagnifierType.brand"
                              :multiple="false"></SelectMagnifier>
           </DkFormItem>
           <!--商品种类-->
-          <DkFormItem prop="category">
-            <SelectPop v-model="formData.category" :multiple="false"
-                       :options="categoryList" ref="category"
+          <DkFormItem prop="categoryId" :label="$t('category')" :required="true">
+            <SelectPop v-model="formData.categoryId" :multiple="false"
+                       :options="categoryList"
                        labelKey="catName"
                        valueKey=catId>
             </SelectPop>
           </DkFormItem>
           <!--商品系列-->
-          <DkFormItem prop="series" >
-            <SelectPop v-model="formData.seriesId" :multiple="false" :options="seriesList" ref="category"
+          <DkFormItem prop="seriesId" :label="$t('series')" :required="true">
+            <SelectPop v-model="formData.seriesId" :multiple="false" :options="seriesList"
                        labelKey="seriesName"
                        valueKey=seriesId>
             </SelectPop>
           </DkFormItem>
           <!--计量单位-->
-          <DkFormItem prop="unit">
-            <SelectPop v-model="formData.unitId" :multiple="false" :options="unitList" ref="unit"
+          <DkFormItem prop="unitId" :label="$t('unit')" :required="true">
+            <SelectPop v-model="formData.unitId" :multiple="false" :options="unitList"
                        labelKey="unitName"
-                       valueKey=unitId>
+                       valueKey="unitId">
             </SelectPop>
           </DkFormItem>
-          <!--辅助计量单位-->
-          <DkFormItem prop="subUnit">
-            <SelectPop v-model="formData.subUnitId" :multiple="false" :options="unitList" ref="subUnit"
-                       labelKey="subUnitName"
-                       valueKey=subUnitId>
+          <!--辅助单位-->
+          <DkFormItem prop="subUnitId" :label="$t('subUnit')">
+            <SelectPop v-model="formData.subUnitId" :multiple="false" :options="subUnitList"
+                       labelKey="unitName"
+                       valueKey="unitId">
             </SelectPop>
           </DkFormItem>
           <!--商品规格-->
@@ -68,34 +68,34 @@
           </DkFormItem>
           <!--单位换算-->
           <DkFormItem prop="conversionFactor">
-            <InputPop ref="conversionFactor" v-model="formData.conversionFactor"/>
+            <InputNumberPop ref="conversionFactor" v-model="formData.conversionFactor"/>
           </DkFormItem>
         </DkForm>
       </DkPanel>
       <DkPanel prop="priceItem">
-        <DkForm slot="content" ref="formInline" v-model="formData" :labelMaxWords=5>
+        <DkForm slot="content" ref="formInline" v-model="formData">
           <!--采购价-->
           <DkFormItem prop="pricePurchase">
-            <InputPop ref="pricePurchase" v-model="formData.pricePurchase"/>
+            <InputNumberPop ref="pricePurchase" v-model="formData.pricePurchase" />
           </DkFormItem>
           <!--零售价-->
           <DkFormItem prop="priceStandard">
-            <InputPop ref="priceStandard" v-model="formData.priceStandard"/>
+            <InputNumberPop ref="priceStandard" v-model="formData.priceStandard" />
           </DkFormItem>
           <!--批发价-->
           <DkFormItem prop="priceWholesale">
-            <InputPop ref="priceWholesale" v-model="formData.priceWholesale"/>
+            <InputNumberPop ref="priceWholesale" v-model="formData.priceWholesale"/>
           </DkFormItem>
           <!--销售售价-->
           <DkFormItem prop="priceLimited">
-            <InputPop ref="priceLimited" v-model="formData.priceLimited"/>
+            <InputNumberPop ref="priceLimited" v-model="formData.priceLimited"/>
           </DkFormItem>
         </DkForm>
       </DkPanel>
-      <DkPanel prop="库存信息">
-        <DkForm slot="content" ref="formInline" v-model="formData" :labelMaxWords=6>
+      <DkPanel prop="invInto">
+        <DkForm slot="content" ref="formInline" v-model="formData">
         <!--  仓库名称  -->
-        <DkFormItem prop="whName">
+        <DkFormItem prop="whId">
           <SelectMagnifier v-model="formData.whId" :display-text="formData.whName"
                            :type="this.$config.MagnifierType.warehouse"
                            :multiple="false"></SelectMagnifier>
@@ -106,15 +106,15 @@
         </DkFormItem>
         </DkForm>
       </DkPanel>
-      <DkPanel prop="备注信息">
-        <DkForm slot="content" ref="formInline" v-model="formData" :labelMaxWords=5>
+      <DkPanel prop="remarks">
+        <DkForm slot="content" ref="formInline" v-model="formData">
           <DkFormItem prop="remarks" :span="12">
             <InputPop ref="remarks" v-model="formData.remarks"
                       maxlength=500 textareaFlag/>
           </DkFormItem>
         </DkForm>
       </DkPanel>
-      <DkPanel prop="商品图片">
+      <DkPanel prop="skuImages">
         <div id="search-cond-div-files-info" ref="search-cond-div-files-info" slot="content">
           <DkPicWall v-model="formData.skuImages"
                      :table="$config.tables.sku" :accept="$config.uploadFileConfig.acceptPicType"></DkPicWall>
@@ -131,6 +131,7 @@
 
 <script>
 import {formMixin} from "@/mixins/form";
+import {button, columns, formTitle, loginTitle, messages, others} from "@/locale/lang/zh-CN";
 
 export default {
   components: {},
@@ -141,26 +142,26 @@ export default {
       seriesList:[],
       unitList:[],
       subUnitList:[],
-     formData: {
-       skuCode: null,
-       skuModel: null,
-       skuName: null,
-       brandId: null,//商品品牌
-       categoryId: null,//商品种类
-       seriesId: null,//商品系列
-       unitId: null,//计量单位
-       skuSpec: null,//商品规格
-       subUnitId: null,//辅助计量单位
-       conversionFactor: null, //单位换算
-       pricePurchase : null, //采购价
-       priceStandard : null, //零售价
-       priceWholesale : null,//批发价
-       priceLimited : null, //销售售价
-       nonStdCode:null,
-       whId:null,
-       whName:null,
-       skuImages:null,
-       remarks: null,
+      formData:{
+        skuCode: null,
+        skuModel: null,
+        skuName: null,
+        brandId: null,//商品品牌
+        brandName:null,
+        categoryId: null,//商品种类
+        seriesId: null,//商品系列
+        unitId: null,//计量单位
+        skuSpec: null,//商品规格
+        subUnitId: null,//辅助计量单位
+        conversionFactor: null, //单位换算
+        nonStdCode:null,
+        whId:null,
+        whName:null,
+        pricePurchase : null, //采购价
+        priceStandard : null, //零售价
+        priceWholesale : null,//批发价
+        priceLimited : null, //销售售价
+        remarks: null,
       },
     }
   },
@@ -215,7 +216,7 @@ export default {
       this.excute(this.$service.unitService, this.$service.unitService.selectByCond, {}).then(res => {
         if (res.code === this.$config.SUCCESS_CODE) {
           this.unitList = res.data.list;
-          this.subUnitList= res.data.list;
+          this.subUnitList=this.unitList.copy();
         }
       })
     },
@@ -230,6 +231,26 @@ export default {
     },
 
     /**
+     * @desc   : desc
+     * @author : 宋扬
+     * @date   : 2024/4/9 15:29
+     */
+    setValuesByEdit(data) {
+      if (data) {
+        this.formData = data;
+      }
+    },
+
+    /**
+     * @desc   : 通过id查询
+     * @author : 宋扬
+     * @date   : 2024/4/9 15:31
+     */
+    detail(id) {
+      return this.excuteNoParam(this.$service.goodsService, this.$service.goodsService.selectById, [id], false);
+    },
+
+    /**
      * @desc   : 保存数据
      * @author : 宋扬
      * @date   : 2024/4/8 16:30
@@ -238,14 +259,21 @@ export default {
       if (this.type === this.$config.formMode.add) {
         return this.excute(this.$service.goodsService, this.$service.goodsService.insert, this.params);
       } else if (this.type === this.$config.formMode.edit) {
-        return this.excute(this.$service.goodsService, this.$service.goodsService.edit, this.params);
+        console.log('22222',this.params)
+        return this.excute(this.$service.goodsService, this.$service.goodsService.update, this.params);
       }
     },
 
   },
+
+  /**
+   * @desc   : 在实例创建完成后被立即同步调用
+   * @author : 宋扬
+   * @date   : 2024/4/9 15:30
+   */
+  created() {
+    this.focusItem = 'skuId';    // 给第一个组件赋值,可以在混入中自动去聚焦
+    this.primaryKey = 'skuId'  // 设置主键Id
+  },
 }
 </script>
-
-<style scoped>
-
-</style>

+ 24 - 23
src/view/mst/goods/index.vue

@@ -46,6 +46,13 @@
           <DkTableColumn field="skuName"></DkTableColumn>
           <DkTableColumn field="skuModel"></DkTableColumn>
           <DkTableColumn field="skuSpec"></DkTableColumn>
+          <DkTableColumn field="seriesName"></DkTableColumn>
+          <DkTableColumn field="brandName"></DkTableColumn>
+          <DkTableColumn field="shortName"></DkTableColumn>
+          <DkTableColumn field="pricePurchase"></DkTableColumn>
+          <DkTableColumn field="priceStandard"></DkTableColumn>
+          <DkTableColumn field="priceWholesale"></DkTableColumn>
+          <DkTableColumn field="priceLimited"></DkTableColumn>
           <DkTableColumn field="remarks"></DkTableColumn>
           <DkTableColumn field="flgValid" type="switch" ></DkTableColumn>
         </DkTable>
@@ -65,6 +72,7 @@ export default {
     return{
       leftData: [],
       tableData: [],
+      brandList: [],
       seriesId:null,
       split: 0.15,
       minSplit: 0.15,
@@ -105,7 +113,7 @@ export default {
     },
 
     /**
-     * @desc   : desc
+     * @desc   : 品牌
      * @author : 宋扬
      * @date   : 2024/4/8 13:23
      */
@@ -114,6 +122,7 @@ export default {
         if (res.code === this.$config.SUCCESS_CODE) {
           let list = this.searchContent.filter(it => it.valueFormat.code == 'goodsBrandList')
           if (list.length > 0) {
+            this.brandList = res.data.list
             list[0].valueFormat.data = res.data.list
           }
         }
@@ -126,16 +135,18 @@ export default {
      * @date   : 2024/4/7 14:30
      */
     getData(params){
-      if (this.seriesId) {
-        let data = {
-          seriesId: this.seriesId,
-          skuModel: this.searchCond._value['skuModel'],
-          skuName: this.searchCond._value['skuName'],
-        }
-        this.currentChangeEvent({row: data})
-      }
+      return this.excute(this.$service.goodsService,this.$service.goodsService.selectByCond,params)
     },
 
+    /**
+     * @desc   : 查询参数重新赋值
+     * @author : 宋扬
+     * @date   : 2024/4/9 9:10
+     */
+    setSearchParams(params){
+      params.seriesId = this.seriesId;
+      return params;
+    },
 
     /**
      * @desc   : 获取系列数据
@@ -143,7 +154,7 @@ export default {
      * @date   : 2024/4/7 15:10
      */
     getSeriesData(){
-      this.excute(this.$service.goodsSeriesService, this.$service.goodsSeriesService.getGoodsSeriesList, {}).then(res => {
+      return this.excute(this.$service.goodsSeriesService, this.$service.goodsSeriesService.getGoodsSeriesList, {}).then(res => {
         if (res.code === this.$config.SUCCESS_CODE) {
           this.leftData = res.data;
         }
@@ -156,20 +167,11 @@ export default {
      * @date   : 2024/4/7 15:03
      */
     currentChangeEvent({row}){
-      this.loading = true;
       if (row != null){
-        let params={
-          seriesId : row.seriesId,
-          skuModel : row.skuModel,
-          skuName : row.skuName,
-        }
-        this.excute(this.$service.goodsService,this.$service.goodsService.selectByCond,params).then(res => {
-          if (res.code === this.$config.SUCCESS_CODE) {
-            this.tableData = res.data.list
-          }
-        })
+        this.seriesId =  row.seriesId;
+        //调用查询事件
+        this.searchData();
       }
-      this.loading = false;
     }
 
   },
@@ -178,7 +180,6 @@ export default {
     this.routeObjName = 'goods'  // 设置路由名称
     this.comHandleEnableFlag = true; // 开启启用停用功能
   },
-
 }
 </script>
 

+ 1 - 1
src/view/mst/org/index.vue

@@ -102,7 +102,7 @@
 import {indexMixin} from "@/mixins";
 
 export default {
-  name: "organization",
+  name: "org",
   mixins: [indexMixin],
   data() {
     let self = this

+ 152 - 0
src/view/report/detail-report/index.vue

@@ -0,0 +1,152 @@
+<!-- @desc:明细报表  @auth:付斌  @time:2024/02/20 15:15 -->
+<template>
+  <div class="main-div">
+    <BaseIndexButtonGroup id="BaseIndexButtonGroup">
+      <template #left>
+        <BaseIndexButton ref="search" name="search"></BaseIndexButton>
+        <BaseIndexButton ref="clear" name="clear"></BaseIndexButton>
+      </template>
+    </BaseIndexButtonGroup>
+
+    <!--  查询条件区域  -->
+    <div id="search-cond-div" ref="search-cond-div" style="margin-top: 1px;padding: 0">
+      <SearchCond ref="searchCond" v-model="searchCond"
+                  @collapse-change="collapseChange" :setFlag="false"
+                  :searchContent="searchContent"
+                  @on-switch-change="handleSwitchChange"></SearchCond>
+    </div>
+
+    <!--  表格部分  -->
+    <DkTable slot="top" :id="'table-'+$options.name"
+             ref="table-select" name="table" :data="tableData"
+             @pageChange="pageSizeChange"
+             :page-total="pageInfo.total"
+             :page-size="pageInfo.pageSize"
+             :page-size-opts="pageSizeOpts"
+             :current-page="pageInfo.currentPage"
+             :choose-flag="false"
+             :height="tableHeight" :showFooter="showFooter">
+      <div v-for="(item, index) in columns" :key="item.field">
+        <DkTableColumn
+          :type="item.type"
+          :field="item.field"
+          :title="item.title"
+          :digits="item.digits"
+          :sum="item.sum"
+          :dataType="item.dataType"
+          :align="item.align"
+          @on-link="handleLink"
+        >
+        </DkTableColumn>
+      </div>
+    </DkTable>
+
+  </div>
+</template>
+
+<script>
+
+import {indexMixin} from '@/mixins'
+import setting from "./setting";
+
+export default {
+  name: 'detail-report',
+  mixins: [indexMixin],
+  data() {
+    return {
+      service: {},
+      methodsName: null,
+      showFooter: true,
+      columns: [],
+      columns_socail: [],// 记录原始列
+      detailColumns: [],
+      searchContent: [],
+    }
+  },
+
+  methods: {
+    /**
+     * @desc   : desc
+     * @author : 周兴
+     * @date   : 2024/4/9 13:21
+     */
+    handleSwitchChange(e) {
+      let code = e.code
+      let checked = e.e;
+      // 查看明细
+      if (code == 'flgViewItem') {
+        // 勾选,把明细列显示出来
+        if (checked && this.detailColumns && this.detailColumns.length > 0) {
+          this.columns = this.columns.union(this.detailColumns);
+        }
+        // 还原列
+        if (!checked) {
+          this.columns = this.columns_socail.copy();
+        }
+      }
+    },
+    /**
+     * @desc   : 查询数据
+     * @author : 周兴
+     * @date   : 2024-02-20 15:53
+     */
+    getData(params) {
+      return this.excute(this.service, this.service[this.methodsName], params)
+    },
+    /**
+     * @desc   : 根据类型给属性赋值
+     * @author : 周兴
+     * @date   : 2022/3/16 18:12
+     */
+    setProperty() {
+      let self = this
+      // 设置接口相关信息
+      let set = setting.setSetting(this.$service, self.formType);
+      self = this.objectMerge(self, set)
+      if (self.pageSize) {
+        self.pageInfo.pageSize = self.pageSize;
+      }
+      // 对下拉查询条件查询数据源
+      this.getSelectDataSource();
+      this.columns_socail = this.columns.copy();
+    },
+    /**
+     * @desc   : 获取下拉的数据源
+     * @author : 周兴
+     * @date   : 2024/4/9 13:56
+     */
+    getSelectDataSource() {
+      let filters = this.searchContent.filter(it => it.valueKind == 'M-CHOICE' || it.valueKind == 'S-CHOICE');
+      if (filters && filters.length > 0) {
+        filters.forEach(it => {
+          if (it.valueFormat && it.valueFormat.service && it.valueFormat.method) {
+            this.excute(this.$service[it.valueFormat.service],
+              this.$service[it.valueFormat.service][it.valueFormat.method], {}).then(res => {
+              if (res.code === this.$config.SUCCESS_CODE) {
+                it.valueFormat.data = res.data
+              }
+            })
+          }
+        })
+      }
+    },
+    /**
+     * @desc   : 同一页面的初始化方法
+     * @author : 周兴
+     * @date   : 2024/4/9 12:54
+     */
+    createdInit() {
+      this.setProperty();
+      this.routeObjName = 'detailReport'
+    },
+  },
+  /**
+   * @desc   : 在实例创建完成后被立即同步调用
+   * @author : 周兴
+   * @date   : 2022/3/3 10:32
+   */
+  created() {
+  },
+}
+</script>
+

+ 65 - 0
src/view/report/detail-report/setting.js

@@ -0,0 +1,65 @@
+import i18n from '../../../locale/index';
+import Config from '../../../config/index';
+
+const $t = (name) => {
+  let text = i18n.vm.messages['zh-CN'][name];
+  if (!text) {
+    text = name
+  }
+  return text;
+}
+
+const data = {
+  // 销售明细表
+  'order-detail-report': {
+    // 是否显示合计行
+    showFooter: true,
+    // 接口文件
+    serviceStr: 'commonService',
+    // 查询方法
+    methodsName: 'getOrg',
+    // 查询条件
+    searchContent: [
+      {itemCode: 'orgCode'},
+      {itemCode: 'orgName'},
+      {
+        itemCode: 'staffId',
+        itemName: '业务员',
+        valueFormat: {
+          code: 'staffIdList',
+          service:'commonService',
+          method:'getStaff',
+          data: [],
+          valueKey: 'staffId',
+          labelKey: 'staffCodeName',
+        },
+        valueKind: 'M-CHOICE'
+      },
+      {itemCode: 'flgViewItem',valueKind:'SWITCH',itemName:'查看明细'},
+    ],
+    // 列表列
+    columns: [
+      {field: 'orgCode'},
+      {field: 'orgName'},
+      {field: 'remarks', width: 'auto'}
+    ],
+    detailColumns:[
+      {field: 'orgCode1'},
+      {field: 'orgName2'},
+    ]
+  },
+}
+
+
+export const setSetting = (services, type) => {
+  let setting = data[type];
+  if (services && setting) {
+    setting.service = services[setting.serviceStr]
+  }
+  return setting;
+}
+
+
+export default {
+  setSetting: setSetting,
+}