chenhaozhe
2025-12-11 cb94238d77ce2bd7d78c5bd6b8baf49705c4af27
添加 仓位 打印库位码功能
其他出库单 添加辅助属性 选择
1个文件已添加
6个文件已修改
244 ■■■■ 已修改文件
public/static/grf/库位码.grf 93 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/KCGL/OtherOutBill/Kf_OtherOutBillEdit.vue 27 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basic/gyProperty/gyPropertyList.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basic/gyStockPlace/gyStockPlace.vue 69 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/component/printList/hBarPlanPrint.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/warehouse/barcodeMaster/Gy_BarCodeBill.vue 44 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/warehouse/transfer/Kf_MoveStockRequestBillEdit.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
public/static/grf/¿âλÂë.grf
New file
@@ -0,0 +1,93 @@
{
    "Version":"6.8.2.2",
    "Title":"1a.简单表格",
    "Author":"锐浪报表软件",
    "Description":"演示一个最基本的列表报表。",
    "Font":{
        "Name":"宋体",
        "Size":90000,
        "Weight":400,
        "Charset":134
    },
    "Printer":{
        "Size":256,
        "Width":9,
        "Height":6,
        "LeftMargin":0,
        "TopMargin":0,
        "RightMargin":0,
        "BottomMargin":0
    },
    "DetailGrid":{
        "CenterView":true,
        "PrintAdaptMethod":"ResizeToFit",
        "Recordset":{
            "ConnectionString":"xml",
            "QuerySQL":"销售出库单.txt",
            "Field":[
                {
                    "Name":"条码编号"
                }
            ]
        },
        "Column":[
            {
                "Name":"单据号",
                "Width":8.78417
            }
        ],
        "ColumnContent":{
            "Height":3.41313,
            "ColumnContentCell":[
                {
                    "Column":"单据号",
                    "FreeCell":true,
                    "Control":[
                        {
                            "Type":"StaticBox",
                            "Name":"StaticBox1",
                            "Left":0.396875,
                            "Top":0.211667,
                            "Width":8.20208,
                            "Height":2.98979
                        },
                        {
                            "Type":"Barcode",
                            "Name":"Barcode1",
                            "Left":0.211667,
                            "Top":0.396875,
                            "Width":4.39208,
                            "Height":2.59292,
                            "BarcodeType":"QRCode",
                            "Text":"[#条码编号#]"
                        }
                    ]
                }
            ]
        },
        "ColumnTitle":{
            "BackColor":"C0C0C0",
            "Height":0,
            "Font":{
                "Name":"宋体",
                "Size":90000,
                "Bold":true,
                "Charset":134
            },
            "RepeatStyle":"OnPage",
            "ColumnTitleCell":[
                {
                    "GroupTitle":false,
                    "Column":"单据号",
                    "BackColor":"FFFFFF",
                    "TextAlign":"MiddleCenter"
                }
            ]
        }
    },
    "ReportHeader":[
        {
            "Height":0
        }
    ]
}
src/views/KCGL/OtherOutBill/Kf_OtherOutBillEdit.vue
@@ -233,7 +233,8 @@
        </el-table-column>
        <el-table-column align="center" label="辅助属性" width="120">
          <template slot-scope="scope">
              <span>{{ scope.row.辅助属性 }}</span>
              <el-input v-model="scope.row.辅助属性" placeholder="请输入辅助属性" @keyup.native.f7="openDataDialog(5, scope.row)"
              @dblclick.native="openDataDialog(5, scope.row)" />
          </template>
        </el-table-column>
        <el-table-column align="center" label="HAuxPropID" width="120">
@@ -347,6 +348,12 @@
      <Warehouse @deptEmitDb="dbEmitData" @deptEmit="emitData" v-if="warehouseShow" />
      <!-- ç‰©æ–™ -->
      <Material @deptEmitDb="dbEmitData" @deptEmit="emitData" v-if="materialShow" />
       <GyProperty
        @deptEmitDb="dbEmitData"
        @deptEmit="emitData"
        :openPage="HModName"
        v-if="PropertyShow"
      />
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="deptClickSub">ç¡® å®š</el-button>
        <el-button @click="deptClose">取 æ¶ˆ</el-button>
@@ -365,10 +372,11 @@
import Dept from '@/views/component/dept'
import Warehouse from '@/views/component/warehouse'
import Material from '@/views/component/material'
import GyProperty from "@/views/basic/gyProperty/gyPropertyList.vue";
export default {
  name: 'OtherOutBillEdit',
  components: { Dept, Warehouse, Material, RowSettings },
  components: { Dept, Warehouse, Material, RowSettings,GyProperty, },
  props: {
    OperationType: { type: Number, },
    linterid: { type: Number, },
@@ -403,6 +411,7 @@
      warehouseShow: false,                                                      //仓库数据组件显示标记
      materialShow: false,                                                       //物料数据组件显示标记
      stockPlaceShow: false,                                                     //仓位数据组件显示标记
      PropertyShow: false,                                                       //辅助属性数据数组显示标记
      deptform: {},                                                              //弹窗选中数据
      
      temp: undefined,                                                           //临时变量
@@ -418,6 +427,8 @@
      zbIndex: null,
      zbSelForm: {},                                                             //子表选中数据,用于子表复制、上移、下移等操作
      zbRow: null,
      HModName: "Kf_OtherOutBillEdit",
    };
  },
  created() {
@@ -661,6 +672,10 @@
        this.dialogTitle = '仓位列表'
        this.stockPlaceShow = true
        this.openData = true
      }else if(num == 5) {
        this.dialogTitle = '辅助属性列表'
        this.PropertyShow = true
        this.openData = true
      }
    },
    //#region å°†æ•°æ®å¼¹çª—全部取消加载
@@ -674,6 +689,7 @@
    //#region å¼¹çª—数据双击返回表单赋值事件
    dbEmitData(deptRow, num) {
      console.log(num)
      if (num == 1) {
        this.form.HDeptName = deptRow.部门名称                                  //部门
        this.form.HDeptID = deptRow.HItemID
@@ -712,6 +728,13 @@
        this.editData[this.zbIndex].HTaxRate = deptRow.默认税率
        this.openData = false
      }
      else if (num == "gyProperty") {
         this.editData[this.zbIndex].HPropertyID = deptRow.HItemID;
         this.editData[this.zbIndex]["辅助属性"] = deptRow["辅助属性名称"];
         this.propertyShow = false;
         this.openData = false;
       }
    },
    //#endregion
src/views/basic/gyProperty/gyPropertyList.vue
@@ -1164,9 +1164,9 @@
      if (this.queryParams.HName) {
        this.sWhere += " and ä»“库名称 like '%" + this.queryParams.HName + "%'";
      }
      if (this.queryParams.HOrgID) {
        this.sWhere += " and HUSEORGID = '" + this.queryParams.HOrgID + "'";
      }
      // if (this.queryParams.HOrgID) {
      //   this.sWhere += " and HUSEORGID = '" + this.queryParams.HOrgID + "'";
      // }
      // this.sWhere += this.addSWhereByOpenType()
      // this.sWhere += this.getOrgIDByUser()
      this.searchOpen = false;
src/views/basic/gyStockPlace/gyStockPlace.vue
@@ -1,5 +1,5 @@
<template>
  <div style="padding: 10px;position: relative">
  <div style="padding: 10px; position: relative">
    <el-form
      :model="queryParams"
      ref="queryForm"
@@ -200,6 +200,16 @@
      </el-collapse>
    </el-form>
    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button
          type="primary"
          icon="el-icon-plus"
          size="mini"
          @click="get_PrintReport"
          id="btn-printer"
          >库位码打印</el-button
        >
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="primary"
@@ -411,6 +421,22 @@
        />
      </el-dialog>
    </div>
    <el-dialog
      title="打印模板选择"
      :visible.sync="openPrintList"
      width="800px"
      append-to-body
    >
      <PrintList
        :linterid="encodeURI(rowSel.toString())"
        :MyMsg="rowSel.toString()"
        Type="HGyStockPlaceBarCode"
        HModName="HGyStockPlaceBarCode"
        @rowEditClose="rowSetClose"
        v-if="printListShow"
      />
      <!-- <div>111</div> -->
    </el-dialog>
  </div>
</template>
@@ -419,18 +445,21 @@
import RowSettings from "@/views/component/rowSettings";
import Edit from "@/views/basic/gyStockPlace/gyStockPlaceEdit";
import GyStockPlace from "@/views/basic/gyStockPlace/gyStockPlace";
import PrintList from "@/views/component/printList";
export default {
  name: "GyStockPlace",
  components: { RowSettings, Edit, GyStockPlace },
  components: { RowSettings, Edit, GyStockPlace, PrintList },
  props: {
    openPage: { type: String },
  },
  data() {
    return {
      rowSel: [],
      danganSelList: [],
      editRef: null,
      activeSeach: "",
      HModName: "Gy_Warehouse",
      HModName: "Gy_StockPlace",
      editShow: false,
      openEdit: false,
      totalNameList: [],
@@ -596,6 +625,33 @@
        }
      } catch (err) {
        this.$modal.msgError(`接口请求失败: ${err}`);
      }
    },
    get_PrintReport() {
      if (this.danganSelList.length == 0) {
        this.$modal.msgError("请选择数据");
      } else {
        this.rowSel = [];
        for (var i = 0; i < this.danganSelList.length; i++) {
          this.rowSel.push(`'${this.danganSelList[i]['条码编号'].toString()}'`);
        }
        this.printListShow = true;
        this.openPrintList = true;
        // axios.get(this.baseURL + "/Kf_SellOutBill/CheckSellOutBill_IsExist", {
        //     params: { HInterID: this.rowForm.hmainid },
        // })
        //     .then((response) => {
        //         var result = response.data;
        //         if (result.count == 1) {
        //             this.printListShow = true;
        //             this.openPrintList = true;
        //         } else {
        //             this.$modal.msgError(result.code + result.Message);
        //         }
        //     })
        //     .catch((error) => {
        //         this.$modal.msgError("接口请求失败!");
        //     });
      }
    },
    getSummaries(param) {
@@ -979,7 +1035,7 @@
    },
    //选中行高亮样式
    rowStyle({ row, rowIndex }) {
      if (this.ids.includes(row.hmainid)) {
      if (this.ids.includes(row.HItemID)) {
        return { background: "#ecf5ff" };
      }
    },
@@ -994,6 +1050,9 @@
    },
    // å¤šé€‰æ¡†é€‰ä¸­æ•°æ®
    handleSelectionChange(selection) {
      console.log(selection)
      this.danganSelList = selection;
      // this.rowForm = {}
      if (this.openPage) {
        //列表单选
@@ -1189,7 +1248,7 @@
    },
    //打开修改组件弹窗
    handleEdit(row) {
      this.rowForm = row
      this.rowForm = row;
      this.$nextTick(() => {
        this.openEdit = true;
        this.editShow = true;
src/views/component/printList/hBarPlanPrint.vue
@@ -45,6 +45,10 @@
                sql = "select * from h_v_IF_BarCodeBillList where hmainid in(" + this.handleMessage.linterid.toString() + ") order by hmainid desc"
            }else if (this.$route.query.Type == 'HPOInStockBill') {
                sql = "select * from h_v_Sc_PrintMouldProdOutBillList where hmainid=" + this.handleMessage.linterid.toString()+ " order by hmainid"
            }else if(this.$route.query.Type == 'HGyStockPlaceBarCode') {
                let condition = decodeURI(this.handleMessage.linterid.toString())
                console.log(condition)
                sql = "select * from h_v_IF_StockPlaceList where æ¡ç ç¼–号 in (" + condition + ") order by HItemID"
            }
            axios.get(this.baseURL + '/CommonModel/searchMethod', {
                params: {
src/views/warehouse/barcodeMaster/Gy_BarCodeBill.vue
@@ -51,7 +51,7 @@
                <el-col :span="6">
                    <el-form-item label="选单号" prop="HSourceBillNo">
                        <el-input v-model="form.HSourceBillNo" placeholder="请输入选单号" disabled>
                            <el-button slot="append" icon="el-icon-search" @click="openDataDialog(openNum)"></el-button>
                            <el-button class="input-search-btn"  slot="append" icon="el-icon-search" @click="openDataDialog(openNum)"></el-button>
                        </el-input>
                    </el-form-item>
                </el-col>
@@ -93,6 +93,22 @@
                            show-overflow-tooltip>
                            <template slot-scope="scope">{{ scope.row.HMaterModel }}</template>
                        </el-table-column>
                        <el-table-column align="center" label="数量" prop="HQty" width="120" show-overflow-tooltip>
                            <template slot-scope="scope">
                                <el-input-number v-model="scope.row.HQty" :min="0" controls-position="right"
                                    style="width: 100%;" @change="editMainTable(scope.row)" />
                            </template>
                        </el-table-column>
                        <el-table-column align="center" label="最小包装数" prop="HMinQty" width="120" show-overflow-tooltip>
                            <template slot-scope="scope">
                                <el-input-number v-model="scope.row.HMinQty" :min="0" controls-position="right"
                                    style="width: 100%;" @change="editMainTable(scope.row)" />
                            </template>
                        </el-table-column>
                        <el-table-column align="center" label="箱数" prop="HBQty" width="120" show-overflow-tooltip>
                            <template slot-scope="scope">{{ scope.row.HBQty }}</template>
                        </el-table-column>
                        <el-table-column align="center" label="客户规格型号" prop="HCusModel" width="120"
                            show-overflow-tooltip>
                            <template slot-scope="scope"><el-input v-model="scope.row.HCusModel" /></template>
@@ -126,21 +142,7 @@
                        <el-table-column align="center" label="计划跟踪号" prop="HMTONo" width="120" show-overflow-tooltip>
                            <template slot-scope="scope"><el-input v-model="scope.row.HMTONo" /></template>
                        </el-table-column>
                        <el-table-column align="center" label="数量" prop="HQty" width="120" show-overflow-tooltip>
                            <template slot-scope="scope">
                                <el-input-number v-model="scope.row.HQty" :min="0" controls-position="right"
                                    style="width: 100%;" @change="editMainTable(scope.row)" />
                            </template>
                        </el-table-column>
                        <el-table-column align="center" label="最小包装数" prop="HMinQty" width="120" show-overflow-tooltip>
                            <template slot-scope="scope">
                                <el-input-number v-model="scope.row.HMinQty" :min="0" controls-position="right"
                                    style="width: 100%;" @change="editMainTable(scope.row)" />
                            </template>
                        </el-table-column>
                        <el-table-column align="center" label="箱数" prop="HBQty" width="120" show-overflow-tooltip>
                            <template slot-scope="scope">{{ scope.row.HBQty }}</template>
                        </el-table-column>
                        <el-table-column align="center" label="外箱数" prop="HPackQty" width="120" show-overflow-tooltip>
                            <template slot-scope="scope"><el-input v-model="scope.row.HPackQty" /></template>
                        </el-table-column>
@@ -260,7 +262,7 @@
            </div>
        </el-dialog>
        <el-dialog title="打印模板选择" :visible.sync="openPrintList" width="800px" append-to-body>
            <PrintList :linterid="rowSel.toString()" :MyMsg="rowSel.toString()" Type="HGy_BarCodeBill"
            <PrintList :linterid="rowSel.toString()" :MyMsg="rowSel.toString()" Type="HGy_BarCodeBill"
                HModName="HGy_BarCodeBill" @rowEditClose="rowSetClose" v-if="printListShow" />
            <!-- <div>111</div> -->
        </el-dialog>
@@ -1202,4 +1204,10 @@
        },
    }
};
</script>
</script>
<style>
    .input-search-btn {
        background-color: rgb(24, 144, 255) !important;
        color: #fff !important;
    }
</style>
src/views/warehouse/transfer/Kf_MoveStockRequestBillEdit.vue
@@ -300,7 +300,6 @@
              >下移</el-button
            >
          </div>
          <!-- TODO: æ˜Žç»†åˆ—表添加辅助属性选择 -->
          <el-table
            :data="editData"
            style="width: 100%"