From 12230ad91f07a9afbe72b68ebf0933830b145a95 Mon Sep 17 00:00:00 2001 From: jishenghua <752718920@qq.com> Date: Fri, 27 Sep 2024 00:44:18 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=99=E5=95=86=E5=93=81=E8=A1=A8=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=93=81=E7=89=8C=E3=80=81=E5=8A=A9=E8=AE=B0=E7=A0=81?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../docs/数据库更新记录-首次安装请勿使用.txt | 10 +- .../jsh/erp/datasource/entities/Material.java | 20 + .../datasource/entities/MaterialExample.java | 140 +++ .../resources/mapper_xml/MaterialMapper.xml | 990 +++++++++--------- .../views/material/modules/MaterialModal.vue | 44 +- 5 files changed, 712 insertions(+), 492 deletions(-) diff --git a/jshERP-boot/docs/数据库更新记录-首次安装请勿使用.txt b/jshERP-boot/docs/数据库更新记录-首次安装请勿使用.txt index 98580f9fb..60c1c8a10 100644 --- a/jshERP-boot/docs/数据库更新记录-首次安装请勿使用.txt +++ b/jshERP-boot/docs/数据库更新记录-首次安装请勿使用.txt @@ -1602,4 +1602,12 @@ alter table jsh_material_current_stock add current_unit_price decimal(24,6) DEFA -- by jishenghua -- 给系统参数表增加先审核后打印启用标记,启用后,零售、采购、销售等单据,都需要先审核之后才能进行打印 -- -------------------------------------------------------- -alter table jsh_system_config add audit_print_flag varchar(1) DEFAULT '0' COMMENT '先审核后打印启用标记,0未启用,1启用' after move_avg_price_flag; \ No newline at end of file +alter table jsh_system_config add audit_print_flag varchar(1) DEFAULT '0' COMMENT '先审核后打印启用标记,0未启用,1启用' after move_avg_price_flag; + +-- -------------------------------------------------------- +-- 时间 2024年9月27日 +-- by jishenghua +-- 给商品表增加品牌、助记码字段 +-- -------------------------------------------------------- +alter table jsh_material add brand varchar(100) DEFAULT NULL COMMENT '品牌' after standard; +alter table jsh_material add mnemonic varchar(100) DEFAULT NULL COMMENT '助记码' after brand; \ No newline at end of file diff --git a/jshERP-boot/src/main/java/com/jsh/erp/datasource/entities/Material.java b/jshERP-boot/src/main/java/com/jsh/erp/datasource/entities/Material.java index 7ed299a6d..18d488f75 100644 --- a/jshERP-boot/src/main/java/com/jsh/erp/datasource/entities/Material.java +++ b/jshERP-boot/src/main/java/com/jsh/erp/datasource/entities/Material.java @@ -15,6 +15,10 @@ public class Material { private String standard; + private String brand; + + private String mnemonic; + private String color; private String unit; @@ -95,6 +99,22 @@ public class Material { this.standard = standard == null ? null : standard.trim(); } + public String getBrand() { + return brand; + } + + public void setBrand(String brand) { + this.brand = brand == null ? null : brand.trim(); + } + + public String getMnemonic() { + return mnemonic; + } + + public void setMnemonic(String mnemonic) { + this.mnemonic = mnemonic == null ? null : mnemonic.trim(); + } + public String getColor() { return color; } diff --git a/jshERP-boot/src/main/java/com/jsh/erp/datasource/entities/MaterialExample.java b/jshERP-boot/src/main/java/com/jsh/erp/datasource/entities/MaterialExample.java index 899d91b3a..902ad7ff0 100644 --- a/jshERP-boot/src/main/java/com/jsh/erp/datasource/entities/MaterialExample.java +++ b/jshERP-boot/src/main/java/com/jsh/erp/datasource/entities/MaterialExample.java @@ -505,6 +505,146 @@ public class MaterialExample { return (Criteria) this; } + public Criteria andBrandIsNull() { + addCriterion("brand is null"); + return (Criteria) this; + } + + public Criteria andBrandIsNotNull() { + addCriterion("brand is not null"); + return (Criteria) this; + } + + public Criteria andBrandEqualTo(String value) { + addCriterion("brand =", value, "brand"); + return (Criteria) this; + } + + public Criteria andBrandNotEqualTo(String value) { + addCriterion("brand <>", value, "brand"); + return (Criteria) this; + } + + public Criteria andBrandGreaterThan(String value) { + addCriterion("brand >", value, "brand"); + return (Criteria) this; + } + + public Criteria andBrandGreaterThanOrEqualTo(String value) { + addCriterion("brand >=", value, "brand"); + return (Criteria) this; + } + + public Criteria andBrandLessThan(String value) { + addCriterion("brand <", value, "brand"); + return (Criteria) this; + } + + public Criteria andBrandLessThanOrEqualTo(String value) { + addCriterion("brand <=", value, "brand"); + return (Criteria) this; + } + + public Criteria andBrandLike(String value) { + addCriterion("brand like", value, "brand"); + return (Criteria) this; + } + + public Criteria andBrandNotLike(String value) { + addCriterion("brand not like", value, "brand"); + return (Criteria) this; + } + + public Criteria andBrandIn(List values) { + addCriterion("brand in", values, "brand"); + return (Criteria) this; + } + + public Criteria andBrandNotIn(List values) { + addCriterion("brand not in", values, "brand"); + return (Criteria) this; + } + + public Criteria andBrandBetween(String value1, String value2) { + addCriterion("brand between", value1, value2, "brand"); + return (Criteria) this; + } + + public Criteria andBrandNotBetween(String value1, String value2) { + addCriterion("brand not between", value1, value2, "brand"); + return (Criteria) this; + } + + public Criteria andMnemonicIsNull() { + addCriterion("mnemonic is null"); + return (Criteria) this; + } + + public Criteria andMnemonicIsNotNull() { + addCriterion("mnemonic is not null"); + return (Criteria) this; + } + + public Criteria andMnemonicEqualTo(String value) { + addCriterion("mnemonic =", value, "mnemonic"); + return (Criteria) this; + } + + public Criteria andMnemonicNotEqualTo(String value) { + addCriterion("mnemonic <>", value, "mnemonic"); + return (Criteria) this; + } + + public Criteria andMnemonicGreaterThan(String value) { + addCriterion("mnemonic >", value, "mnemonic"); + return (Criteria) this; + } + + public Criteria andMnemonicGreaterThanOrEqualTo(String value) { + addCriterion("mnemonic >=", value, "mnemonic"); + return (Criteria) this; + } + + public Criteria andMnemonicLessThan(String value) { + addCriterion("mnemonic <", value, "mnemonic"); + return (Criteria) this; + } + + public Criteria andMnemonicLessThanOrEqualTo(String value) { + addCriterion("mnemonic <=", value, "mnemonic"); + return (Criteria) this; + } + + public Criteria andMnemonicLike(String value) { + addCriterion("mnemonic like", value, "mnemonic"); + return (Criteria) this; + } + + public Criteria andMnemonicNotLike(String value) { + addCriterion("mnemonic not like", value, "mnemonic"); + return (Criteria) this; + } + + public Criteria andMnemonicIn(List values) { + addCriterion("mnemonic in", values, "mnemonic"); + return (Criteria) this; + } + + public Criteria andMnemonicNotIn(List values) { + addCriterion("mnemonic not in", values, "mnemonic"); + return (Criteria) this; + } + + public Criteria andMnemonicBetween(String value1, String value2) { + addCriterion("mnemonic between", value1, value2, "mnemonic"); + return (Criteria) this; + } + + public Criteria andMnemonicNotBetween(String value1, String value2) { + addCriterion("mnemonic not between", value1, value2, "mnemonic"); + return (Criteria) this; + } + public Criteria andColorIsNull() { addCriterion("color is null"); return (Criteria) this; diff --git a/jshERP-boot/src/main/resources/mapper_xml/MaterialMapper.xml b/jshERP-boot/src/main/resources/mapper_xml/MaterialMapper.xml index 63a8a13ab..7befbf0c7 100644 --- a/jshERP-boot/src/main/resources/mapper_xml/MaterialMapper.xml +++ b/jshERP-boot/src/main/resources/mapper_xml/MaterialMapper.xml @@ -1,480 +1,512 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - id, category_id, name, mfrs, model, standard, color, unit, remark, img_name, unit_id, - expiry_num, weight, enabled, other_field1, other_field2, other_field3, enable_serial_number, - enable_batch_number, position, tenant_id, delete_flag - - - - - delete from jsh_material - where id = #{id,jdbcType=BIGINT} - - - delete from jsh_material - - - - - - insert into jsh_material (id, category_id, name, - mfrs, model, standard, - color, unit, remark, - img_name, unit_id, expiry_num, - weight, enabled, other_field1, - other_field2, other_field3, enable_serial_number, - enable_batch_number, position, tenant_id, - delete_flag) - values (#{id,jdbcType=BIGINT}, #{categoryId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, - #{mfrs,jdbcType=VARCHAR}, #{model,jdbcType=VARCHAR}, #{standard,jdbcType=VARCHAR}, - #{color,jdbcType=VARCHAR}, #{unit,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, - #{imgName,jdbcType=VARCHAR}, #{unitId,jdbcType=BIGINT}, #{expiryNum,jdbcType=INTEGER}, - #{weight,jdbcType=DECIMAL}, #{enabled,jdbcType=BIT}, #{otherField1,jdbcType=VARCHAR}, - #{otherField2,jdbcType=VARCHAR}, #{otherField3,jdbcType=VARCHAR}, #{enableSerialNumber,jdbcType=VARCHAR}, - #{enableBatchNumber,jdbcType=VARCHAR}, #{position,jdbcType=VARCHAR}, #{tenantId,jdbcType=BIGINT}, - #{deleteFlag,jdbcType=VARCHAR}) - - - insert into jsh_material - - - id, - - - category_id, - - - name, - - - mfrs, - - - model, - - - standard, - - - color, - - - unit, - - - remark, - - - img_name, - - - unit_id, - - - expiry_num, - - - weight, - - - enabled, - - - other_field1, - - - other_field2, - - - other_field3, - - - enable_serial_number, - - - enable_batch_number, - - - position, - - - tenant_id, - - - delete_flag, - - - - - #{id,jdbcType=BIGINT}, - - - #{categoryId,jdbcType=BIGINT}, - - - #{name,jdbcType=VARCHAR}, - - - #{mfrs,jdbcType=VARCHAR}, - - - #{model,jdbcType=VARCHAR}, - - - #{standard,jdbcType=VARCHAR}, - - - #{color,jdbcType=VARCHAR}, - - - #{unit,jdbcType=VARCHAR}, - - - #{remark,jdbcType=VARCHAR}, - - - #{imgName,jdbcType=VARCHAR}, - - - #{unitId,jdbcType=BIGINT}, - - - #{expiryNum,jdbcType=INTEGER}, - - - #{weight,jdbcType=DECIMAL}, - - - #{enabled,jdbcType=BIT}, - - - #{otherField1,jdbcType=VARCHAR}, - - - #{otherField2,jdbcType=VARCHAR}, - - - #{otherField3,jdbcType=VARCHAR}, - - - #{enableSerialNumber,jdbcType=VARCHAR}, - - - #{enableBatchNumber,jdbcType=VARCHAR}, - - - #{position,jdbcType=VARCHAR}, - - - #{tenantId,jdbcType=BIGINT}, - - - #{deleteFlag,jdbcType=VARCHAR}, - - - - - - update jsh_material - - - id = #{record.id,jdbcType=BIGINT}, - - - category_id = #{record.categoryId,jdbcType=BIGINT}, - - - name = #{record.name,jdbcType=VARCHAR}, - - - mfrs = #{record.mfrs,jdbcType=VARCHAR}, - - - model = #{record.model,jdbcType=VARCHAR}, - - - standard = #{record.standard,jdbcType=VARCHAR}, - - - color = #{record.color,jdbcType=VARCHAR}, - - - unit = #{record.unit,jdbcType=VARCHAR}, - - - remark = #{record.remark,jdbcType=VARCHAR}, - - - img_name = #{record.imgName,jdbcType=VARCHAR}, - - - unit_id = #{record.unitId,jdbcType=BIGINT}, - - - expiry_num = #{record.expiryNum,jdbcType=INTEGER}, - - - weight = #{record.weight,jdbcType=DECIMAL}, - - - enabled = #{record.enabled,jdbcType=BIT}, - - - other_field1 = #{record.otherField1,jdbcType=VARCHAR}, - - - other_field2 = #{record.otherField2,jdbcType=VARCHAR}, - - - other_field3 = #{record.otherField3,jdbcType=VARCHAR}, - - - enable_serial_number = #{record.enableSerialNumber,jdbcType=VARCHAR}, - - - enable_batch_number = #{record.enableBatchNumber,jdbcType=VARCHAR}, - - - position = #{record.position,jdbcType=VARCHAR}, - - - tenant_id = #{record.tenantId,jdbcType=BIGINT}, - - - delete_flag = #{record.deleteFlag,jdbcType=VARCHAR}, - - - - - - - - update jsh_material - set id = #{record.id,jdbcType=BIGINT}, - category_id = #{record.categoryId,jdbcType=BIGINT}, - name = #{record.name,jdbcType=VARCHAR}, - mfrs = #{record.mfrs,jdbcType=VARCHAR}, - model = #{record.model,jdbcType=VARCHAR}, - standard = #{record.standard,jdbcType=VARCHAR}, - color = #{record.color,jdbcType=VARCHAR}, - unit = #{record.unit,jdbcType=VARCHAR}, - remark = #{record.remark,jdbcType=VARCHAR}, - img_name = #{record.imgName,jdbcType=VARCHAR}, - unit_id = #{record.unitId,jdbcType=BIGINT}, - expiry_num = #{record.expiryNum,jdbcType=INTEGER}, - weight = #{record.weight,jdbcType=DECIMAL}, - enabled = #{record.enabled,jdbcType=BIT}, - other_field1 = #{record.otherField1,jdbcType=VARCHAR}, - other_field2 = #{record.otherField2,jdbcType=VARCHAR}, - other_field3 = #{record.otherField3,jdbcType=VARCHAR}, - enable_serial_number = #{record.enableSerialNumber,jdbcType=VARCHAR}, - enable_batch_number = #{record.enableBatchNumber,jdbcType=VARCHAR}, - position = #{record.position,jdbcType=VARCHAR}, - tenant_id = #{record.tenantId,jdbcType=BIGINT}, - delete_flag = #{record.deleteFlag,jdbcType=VARCHAR} - - - - - - update jsh_material - - - category_id = #{categoryId,jdbcType=BIGINT}, - - - name = #{name,jdbcType=VARCHAR}, - - - mfrs = #{mfrs,jdbcType=VARCHAR}, - - - model = #{model,jdbcType=VARCHAR}, - - - standard = #{standard,jdbcType=VARCHAR}, - - - color = #{color,jdbcType=VARCHAR}, - - - unit = #{unit,jdbcType=VARCHAR}, - - - remark = #{remark,jdbcType=VARCHAR}, - - - img_name = #{imgName,jdbcType=VARCHAR}, - - - unit_id = #{unitId,jdbcType=BIGINT}, - - - expiry_num = #{expiryNum,jdbcType=INTEGER}, - - - weight = #{weight,jdbcType=DECIMAL}, - - - enabled = #{enabled,jdbcType=BIT}, - - - other_field1 = #{otherField1,jdbcType=VARCHAR}, - - - other_field2 = #{otherField2,jdbcType=VARCHAR}, - - - other_field3 = #{otherField3,jdbcType=VARCHAR}, - - - enable_serial_number = #{enableSerialNumber,jdbcType=VARCHAR}, - - - enable_batch_number = #{enableBatchNumber,jdbcType=VARCHAR}, - - - position = #{position,jdbcType=VARCHAR}, - - - tenant_id = #{tenantId,jdbcType=BIGINT}, - - - delete_flag = #{deleteFlag,jdbcType=VARCHAR}, - - - where id = #{id,jdbcType=BIGINT} - - - update jsh_material - set category_id = #{categoryId,jdbcType=BIGINT}, - name = #{name,jdbcType=VARCHAR}, - mfrs = #{mfrs,jdbcType=VARCHAR}, - model = #{model,jdbcType=VARCHAR}, - standard = #{standard,jdbcType=VARCHAR}, - color = #{color,jdbcType=VARCHAR}, - unit = #{unit,jdbcType=VARCHAR}, - remark = #{remark,jdbcType=VARCHAR}, - img_name = #{imgName,jdbcType=VARCHAR}, - unit_id = #{unitId,jdbcType=BIGINT}, - expiry_num = #{expiryNum,jdbcType=INTEGER}, - weight = #{weight,jdbcType=DECIMAL}, - enabled = #{enabled,jdbcType=BIT}, - other_field1 = #{otherField1,jdbcType=VARCHAR}, - other_field2 = #{otherField2,jdbcType=VARCHAR}, - other_field3 = #{otherField3,jdbcType=VARCHAR}, - enable_serial_number = #{enableSerialNumber,jdbcType=VARCHAR}, - enable_batch_number = #{enableBatchNumber,jdbcType=VARCHAR}, - position = #{position,jdbcType=VARCHAR}, - tenant_id = #{tenantId,jdbcType=BIGINT}, - delete_flag = #{deleteFlag,jdbcType=VARCHAR} - where id = #{id,jdbcType=BIGINT} - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, category_id, name, mfrs, model, standard, brand, mnemonic, color, unit, remark, + img_name, unit_id, expiry_num, weight, enabled, other_field1, other_field2, other_field3, + enable_serial_number, enable_batch_number, position, tenant_id, delete_flag + + + + + delete from jsh_material + where id = #{id,jdbcType=BIGINT} + + + delete from jsh_material + + + + + + insert into jsh_material (id, category_id, name, + mfrs, model, standard, + brand, mnemonic, color, + unit, remark, img_name, + unit_id, expiry_num, weight, + enabled, other_field1, other_field2, + other_field3, enable_serial_number, enable_batch_number, + position, tenant_id, delete_flag + ) + values (#{id,jdbcType=BIGINT}, #{categoryId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, + #{mfrs,jdbcType=VARCHAR}, #{model,jdbcType=VARCHAR}, #{standard,jdbcType=VARCHAR}, + #{brand,jdbcType=VARCHAR}, #{mnemonic,jdbcType=VARCHAR}, #{color,jdbcType=VARCHAR}, + #{unit,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{imgName,jdbcType=VARCHAR}, + #{unitId,jdbcType=BIGINT}, #{expiryNum,jdbcType=INTEGER}, #{weight,jdbcType=DECIMAL}, + #{enabled,jdbcType=BIT}, #{otherField1,jdbcType=VARCHAR}, #{otherField2,jdbcType=VARCHAR}, + #{otherField3,jdbcType=VARCHAR}, #{enableSerialNumber,jdbcType=VARCHAR}, #{enableBatchNumber,jdbcType=VARCHAR}, + #{position,jdbcType=VARCHAR}, #{tenantId,jdbcType=BIGINT}, #{deleteFlag,jdbcType=VARCHAR} + ) + + + insert into jsh_material + + + id, + + + category_id, + + + name, + + + mfrs, + + + model, + + + standard, + + + brand, + + + mnemonic, + + + color, + + + unit, + + + remark, + + + img_name, + + + unit_id, + + + expiry_num, + + + weight, + + + enabled, + + + other_field1, + + + other_field2, + + + other_field3, + + + enable_serial_number, + + + enable_batch_number, + + + position, + + + tenant_id, + + + delete_flag, + + + + + #{id,jdbcType=BIGINT}, + + + #{categoryId,jdbcType=BIGINT}, + + + #{name,jdbcType=VARCHAR}, + + + #{mfrs,jdbcType=VARCHAR}, + + + #{model,jdbcType=VARCHAR}, + + + #{standard,jdbcType=VARCHAR}, + + + #{brand,jdbcType=VARCHAR}, + + + #{mnemonic,jdbcType=VARCHAR}, + + + #{color,jdbcType=VARCHAR}, + + + #{unit,jdbcType=VARCHAR}, + + + #{remark,jdbcType=VARCHAR}, + + + #{imgName,jdbcType=VARCHAR}, + + + #{unitId,jdbcType=BIGINT}, + + + #{expiryNum,jdbcType=INTEGER}, + + + #{weight,jdbcType=DECIMAL}, + + + #{enabled,jdbcType=BIT}, + + + #{otherField1,jdbcType=VARCHAR}, + + + #{otherField2,jdbcType=VARCHAR}, + + + #{otherField3,jdbcType=VARCHAR}, + + + #{enableSerialNumber,jdbcType=VARCHAR}, + + + #{enableBatchNumber,jdbcType=VARCHAR}, + + + #{position,jdbcType=VARCHAR}, + + + #{tenantId,jdbcType=BIGINT}, + + + #{deleteFlag,jdbcType=VARCHAR}, + + + + + + update jsh_material + + + id = #{record.id,jdbcType=BIGINT}, + + + category_id = #{record.categoryId,jdbcType=BIGINT}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + mfrs = #{record.mfrs,jdbcType=VARCHAR}, + + + model = #{record.model,jdbcType=VARCHAR}, + + + standard = #{record.standard,jdbcType=VARCHAR}, + + + brand = #{record.brand,jdbcType=VARCHAR}, + + + mnemonic = #{record.mnemonic,jdbcType=VARCHAR}, + + + color = #{record.color,jdbcType=VARCHAR}, + + + unit = #{record.unit,jdbcType=VARCHAR}, + + + remark = #{record.remark,jdbcType=VARCHAR}, + + + img_name = #{record.imgName,jdbcType=VARCHAR}, + + + unit_id = #{record.unitId,jdbcType=BIGINT}, + + + expiry_num = #{record.expiryNum,jdbcType=INTEGER}, + + + weight = #{record.weight,jdbcType=DECIMAL}, + + + enabled = #{record.enabled,jdbcType=BIT}, + + + other_field1 = #{record.otherField1,jdbcType=VARCHAR}, + + + other_field2 = #{record.otherField2,jdbcType=VARCHAR}, + + + other_field3 = #{record.otherField3,jdbcType=VARCHAR}, + + + enable_serial_number = #{record.enableSerialNumber,jdbcType=VARCHAR}, + + + enable_batch_number = #{record.enableBatchNumber,jdbcType=VARCHAR}, + + + position = #{record.position,jdbcType=VARCHAR}, + + + tenant_id = #{record.tenantId,jdbcType=BIGINT}, + + + delete_flag = #{record.deleteFlag,jdbcType=VARCHAR}, + + + + + + + + update jsh_material + set id = #{record.id,jdbcType=BIGINT}, + category_id = #{record.categoryId,jdbcType=BIGINT}, + name = #{record.name,jdbcType=VARCHAR}, + mfrs = #{record.mfrs,jdbcType=VARCHAR}, + model = #{record.model,jdbcType=VARCHAR}, + standard = #{record.standard,jdbcType=VARCHAR}, + brand = #{record.brand,jdbcType=VARCHAR}, + mnemonic = #{record.mnemonic,jdbcType=VARCHAR}, + color = #{record.color,jdbcType=VARCHAR}, + unit = #{record.unit,jdbcType=VARCHAR}, + remark = #{record.remark,jdbcType=VARCHAR}, + img_name = #{record.imgName,jdbcType=VARCHAR}, + unit_id = #{record.unitId,jdbcType=BIGINT}, + expiry_num = #{record.expiryNum,jdbcType=INTEGER}, + weight = #{record.weight,jdbcType=DECIMAL}, + enabled = #{record.enabled,jdbcType=BIT}, + other_field1 = #{record.otherField1,jdbcType=VARCHAR}, + other_field2 = #{record.otherField2,jdbcType=VARCHAR}, + other_field3 = #{record.otherField3,jdbcType=VARCHAR}, + enable_serial_number = #{record.enableSerialNumber,jdbcType=VARCHAR}, + enable_batch_number = #{record.enableBatchNumber,jdbcType=VARCHAR}, + position = #{record.position,jdbcType=VARCHAR}, + tenant_id = #{record.tenantId,jdbcType=BIGINT}, + delete_flag = #{record.deleteFlag,jdbcType=VARCHAR} + + + + + + update jsh_material + + + category_id = #{categoryId,jdbcType=BIGINT}, + + + name = #{name,jdbcType=VARCHAR}, + + + mfrs = #{mfrs,jdbcType=VARCHAR}, + + + model = #{model,jdbcType=VARCHAR}, + + + standard = #{standard,jdbcType=VARCHAR}, + + + brand = #{brand,jdbcType=VARCHAR}, + + + mnemonic = #{mnemonic,jdbcType=VARCHAR}, + + + color = #{color,jdbcType=VARCHAR}, + + + unit = #{unit,jdbcType=VARCHAR}, + + + remark = #{remark,jdbcType=VARCHAR}, + + + img_name = #{imgName,jdbcType=VARCHAR}, + + + unit_id = #{unitId,jdbcType=BIGINT}, + + + expiry_num = #{expiryNum,jdbcType=INTEGER}, + + + weight = #{weight,jdbcType=DECIMAL}, + + + enabled = #{enabled,jdbcType=BIT}, + + + other_field1 = #{otherField1,jdbcType=VARCHAR}, + + + other_field2 = #{otherField2,jdbcType=VARCHAR}, + + + other_field3 = #{otherField3,jdbcType=VARCHAR}, + + + enable_serial_number = #{enableSerialNumber,jdbcType=VARCHAR}, + + + enable_batch_number = #{enableBatchNumber,jdbcType=VARCHAR}, + + + position = #{position,jdbcType=VARCHAR}, + + + tenant_id = #{tenantId,jdbcType=BIGINT}, + + + delete_flag = #{deleteFlag,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update jsh_material + set category_id = #{categoryId,jdbcType=BIGINT}, + name = #{name,jdbcType=VARCHAR}, + mfrs = #{mfrs,jdbcType=VARCHAR}, + model = #{model,jdbcType=VARCHAR}, + standard = #{standard,jdbcType=VARCHAR}, + brand = #{brand,jdbcType=VARCHAR}, + mnemonic = #{mnemonic,jdbcType=VARCHAR}, + color = #{color,jdbcType=VARCHAR}, + unit = #{unit,jdbcType=VARCHAR}, + remark = #{remark,jdbcType=VARCHAR}, + img_name = #{imgName,jdbcType=VARCHAR}, + unit_id = #{unitId,jdbcType=BIGINT}, + expiry_num = #{expiryNum,jdbcType=INTEGER}, + weight = #{weight,jdbcType=DECIMAL}, + enabled = #{enabled,jdbcType=BIT}, + other_field1 = #{otherField1,jdbcType=VARCHAR}, + other_field2 = #{otherField2,jdbcType=VARCHAR}, + other_field3 = #{otherField3,jdbcType=VARCHAR}, + enable_serial_number = #{enableSerialNumber,jdbcType=VARCHAR}, + enable_batch_number = #{enableBatchNumber,jdbcType=VARCHAR}, + position = #{position,jdbcType=VARCHAR}, + tenant_id = #{tenantId,jdbcType=BIGINT}, + delete_flag = #{deleteFlag,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} + \ No newline at end of file diff --git a/jshERP-web/src/views/material/modules/MaterialModal.vue b/jshERP-web/src/views/material/modules/MaterialModal.vue index 457af289a..3a85963e0 100644 --- a/jshERP-web/src/views/material/modules/MaterialModal.vue +++ b/jshERP-web/src/views/material/modules/MaterialModal.vue @@ -69,6 +69,28 @@ + + + + + + + + + + + + + + + + + + @@ -82,11 +104,15 @@ - - - + + + + + + + @@ -113,14 +139,8 @@ - - - - - - 需要先录入单位才能激活