Browse Source

Merge branch 'dev_web'

集成Redis
陈薪名 2 years ago
parent
commit
feded83604
  1. 7
      fe/PC/src/components/currenDescriptions/index.vue
  2. 22
      fe/PC/src/components/currenForm/index.vue
  3. 4
      fe/PC/src/components/currenTable/index.vue
  4. 1
      fe/PC/src/components/filterSelect/index.vue
  5. 7
      fe/PC/src/components/umyTable/index.vue
  6. 39
      fe/PC/src/utils/tableColumns/index.js
  7. 16
      fe/PC/src/utils/tabsDesTions/index.js
  8. 70
      fe/PC/src/views/basicData/ItemsManage/AQL.vue
  9. 2
      fe/PC/src/views/basicData/ItemsManage/ItemBasic.vue
  10. 8
      fe/PC/src/views/basicData/ItemsManage/ItemPack.vue
  11. 4
      fe/PC/src/views/basicData/WarehouseManage/Location.vue
  12. 3
      fe/PC/src/views/basicData/WorkshopManage/ProdLineItem.vue
  13. 51
      fe/PC/src/views/basicData/WorkshopManage/ProductionLine.vue

7
fe/PC/src/components/currenDescriptions/index.vue

@ -66,7 +66,7 @@
</template> </template>
<script> <script>
import { parseTime } from "@/utils/index" import { parseTime } from "@/utils/index"
import { formatDateTime } from "@/utils/formatTime" import { formatTimeStrToStr } from "@/utils/formatTime"
import { fileStorage } from "@/api/wms-api" import { fileStorage } from "@/api/wms-api"
let that let that
@ -84,7 +84,10 @@ export default {
}, },
filters: { filters: {
formatDate (time) { formatDate (time) {
return formatDateTime(time) if (time == null) {
return '-'
}
return formatTimeStrToStr(time)
}, },
formatOnlyDate (time) { formatOnlyDate (time) {
var date = new Date(time); var date = new Date(time);

22
fe/PC/src/components/currenForm/index.vue

@ -51,6 +51,8 @@
@clear="clearInput(item.prop,$event)" @clear="clearInput(item.prop,$event)"
:min="item.min" :min="item.min"
:max="item.max" :max="item.max"
:precision="item.precision"
class="inputNameberClass"
@blur=" @blur="
inputPlaceholder($event, item, 'blur',searchData) inputPlaceholder($event, item, 'blur',searchData)
" "
@ -817,6 +819,23 @@ export default {
this.$emit("changeSelect", prop, val) this.$emit("changeSelect", prop, val)
}, },
restrictionRule(item, prop) {
if(prop) {
console.log('item',item)
console.log('prop', prop)
console.log('this.searchData', this.searchData)
console.log(this.searchData[prop])
if (this.searchData[prop]) {
return false
} else {
return true
}
} else {
return true
}
}
// //
// handleExceed (val) { // handleExceed (val) {
// this.$warningMsg('1') // this.$warningMsg('1')
@ -836,6 +855,9 @@ export default {
// .formButton { // .formButton {
// text-align: right; // text-align: right;
// } // }
.inputNameberClass {
width: 100%;
}
.el-row { .el-row {
::v-deep .el-form-item__content { ::v-deep .el-form-item__content {
position: relative; position: relative;

4
fe/PC/src/components/currenTable/index.vue

@ -307,7 +307,7 @@
</template> </template>
<script> <script>
import Sortable from "sortablejs"; import Sortable from "sortablejs";
import { formatDateTime } from "@/utils/formatTime"; import { formatTimeStrToStr } from "@/utils/formatTime";
import { getMatchRegConformValue } from "@/utils/index" import { getMatchRegConformValue } from "@/utils/index"
import _ from "lodash"; import _ from "lodash";
export default { export default {
@ -317,7 +317,7 @@ export default {
if (time == null) { if (time == null) {
return '-' return '-'
} }
return formatDateTime(time) return formatTimeStrToStr(time)
}, },
}, },
props: { props: {

1
fe/PC/src/components/filterSelect/index.vue

@ -36,6 +36,7 @@
<!-- 搜索按钮 --> <!-- 搜索按钮 -->
<div class="filterSelectButton"> <div class="filterSelectButton">
<el-button <el-button
:disabled=selectItem.disabled
slot="append" slot="append"
icon="el-icon-search" icon="el-icon-search"
v-if="selectItem.searchButton" v-if="selectItem.searchButton"

7
fe/PC/src/components/umyTable/index.vue

@ -320,14 +320,17 @@
</u-table> </u-table>
</template> </template>
<script> <script>
import { formatDateTime } from "@/utils/formatTime"; import { formatTimeStrToStr } from "@/utils/formatTime";
import _ from "lodash"; import _ from "lodash";
import { getMatchRegConformValue } from "@/utils/index" import { getMatchRegConformValue } from "@/utils/index"
export default { export default {
name: "currenTable", name: "currenTable",
filters: { filters: {
formatDate(time) { formatDate(time) {
return formatDateTime(time) if (time == null) {
return '-'
}
return formatTimeStrToStr(time)
}, },
}, },
props: { props: {

39
fe/PC/src/utils/tableColumns/index.js

@ -23,7 +23,7 @@ export const ItemBasic = [
{ label: "是否虚拟物料", prop: "isPhantom", type: "filter", filters: "whetherOrNot" }, { label: "是否虚拟物料", prop: "isPhantom", type: "filter", filters: "whetherOrNot" },
{ label: "产品类", prop: 'productLine' }, { label: "产品类", prop: 'productLine' },
{ label: "E-LEVEL等级", prop: 'elevel' }, { label: "E-LEVEL等级", prop: 'elevel' },
{ label: "物料分类", prop: "itemCategoryDictionary", type: "object", showProp: "ItemCategory" }, // { label: "物料分类", prop: "itemCategoryDictionary", type: "object", showProp: "ItemCategory" },
{ label: "颜色", prop: "color" }, { label: "颜色", prop: "color" },
// --------------------------------------- // ---------------------------------------
{ label: "创建时间", prop: "creationTime", type: "dateTime" }, { label: "创建时间", prop: "creationTime", type: "dateTime" },
@ -185,7 +185,7 @@ export const Bom = [
// fixed: "right" // fixed: "right"
// }, // },
] ]
// 物料清单信息 - 详情【父物料信息、子物料信息】 // 物料清单信息 - 详情【父物料信息、子物料信息】 20230331
export const BomInner = [ export const BomInner = [
{ {
label: "父物料号", label: "父物料号",
@ -194,16 +194,28 @@ export const BomInner = [
type: "name" type: "name"
}, },
{ label: "子物料号", prop: "component" }, { label: "子物料号", prop: "component" },
{ label: "子物料用量", prop: 'perQty', type:"object",showProp: 'qty' }, { label: "子物料用量", prop: 'componentQty' },
{ label: "子物料用量单位", prop: 'perQty', type:"object",showProp: 'uom' }, { label: "子物料用量单位", prop: 'componentUom' },
// { label: "子物料用量", prop: 'perQty', type:"object",showProp: 'qty' },
// { label: "子物料用量单位", prop: 'perQty', type:"object",showProp: 'uom' },
{ label: "ERP工序", prop: "erpOp" }, { label: "ERP工序", prop: "erpOp" },
{ label: "制造工序", prop: "mfgOp" }, { label: "制造工序", prop: "mfgOp" },
{ label: "配送方式", prop: "distributionType", type: "filter", filters: "distributionType" }, { label: "配送方式", prop: "distributionType", type: "filter", filters: "distributionType" },
{ label: "取整方式", prop: "truncType", type: "filter", filters: "truncType" }, { label: "取整方式", prop: "truncType", type: "filter", filters: "truncType" },
{ label: "计划拆分规则", prop: "plannedSplitRule", type: "filter", filters: "plannedSplitRule" }, { label: "计划拆分规则", prop: "plannedSplitRule", type: "filter", filters: "plannedSplitRule" },
{ label: "开始时间", prop: "timeRange", type: "objectDateTime", showProp: 'beginTime' }, // { label: "开始时间", prop: "timeRange", type: "objectDateTime", showProp: 'beginTime' },
{ label: "结束时间", prop: "timeRange", type: "objectDateTime", showProp: 'endTime' }, // { label: "结束时间", prop: "timeRange", type: "objectDateTime", showProp: 'endTime' },
{ label: "开始时间", prop: "beginTime", type:'dateTime' },
{ label: "结束时间", prop: "endTime", type:'dateTime' },
{ label: "备注", prop: 'remark' }, { label: "备注", prop: 'remark' },
// -------------------------------------
{ label: "层级", prop: "layer" },
{ label: "事务代码", prop: "tenantId" },
{ label: "创建时间", prop: "creationTime", type:'dateTime' },
{ label: "创建者Id", prop: "creatorId" },
{ label: "上次修改时间", prop: "lastModificationTime", type:'dateTime' },
{ label: "上次修改者Id", prop: "lastModifierId" },
{ label: "id", prop: 'id' },
// { // {
// label: "操作", // label: "操作",
// type:"buttonOperation", // type:"buttonOperation",
@ -226,7 +238,6 @@ export const Customer = [
{ label: "电话", prop: "phone" }, { label: "电话", prop: "phone" },
{ label: "传真", prop: "fax" }, { label: "传真", prop: "fax" },
{ label: "邮编", prop: "postID" }, { label: "邮编", prop: "postID" },
// ------------------------------------- // -------------------------------------
{ label: "创建时间", prop: "creationTime", type: "dateTime" }, { label: "创建时间", prop: "creationTime", type: "dateTime" },
{ label: "上次修改时间", prop: "lastModificationTime", type: "dateTime" }, { label: "上次修改时间", prop: "lastModificationTime", type: "dateTime" },
@ -583,7 +594,7 @@ export const Location = [
// fixed: "right" // fixed: "right"
// }, // },
] ]
// 库位零件关系 // 库位零件关系 20230331
export const ItemStoreRelation = [ export const ItemStoreRelation = [
{ {
label: "物料代码", label: "物料代码",
@ -601,6 +612,13 @@ export const ItemStoreRelation = [
{ label: "次要存储单位", prop: "altUm" }, { label: "次要存储单位", prop: "altUm" },
{ label: "存储单位", prop: "pramaryUM", type: "filter", filters: "pramaryUm" }, { label: "存储单位", prop: "pramaryUM", type: "filter", filters: "pramaryUm" },
{ label: "是否定制位置", prop: "isFixed", type: "filter", filters: "whetherOrNot" }, { label: "是否定制位置", prop: "isFixed", type: "filter", filters: "whetherOrNot" },
// -----------------------------------------------------------------------
{ label: "是否占用多库位", prop: "multiLoc", type: "filter", filters: "whetherOrNot" },
{ label: "库位代码", prop: "locationCode" },
{ label: "备注", prop: "remark" },
{ label: "创建时间", prop: "creationTime", type: "dateTime" },
{ label: "上次修改时间", prop: 'lastModificationTime', type: "dateTime" },
// { // {
// label: "操作", // label: "操作",
// type:"buttonOperation", // type:"buttonOperation",
@ -609,7 +627,7 @@ export const ItemStoreRelation = [
// fixed: "right" // fixed: "right"
// }, // },
] ]
// 库位可用容量信息 20230328 暂无接口 // 库位可用容量信息 20230331
export const InventoryLocationCapacity = [ export const InventoryLocationCapacity = [
{ {
label: "库位代码", label: "库位代码",
@ -622,6 +640,9 @@ export const InventoryLocationCapacity = [
{ label: "创建时间", prop: "creationTime", type: "dateTime" }, { label: "创建时间", prop: "creationTime", type: "dateTime" },
{ label: "备注", prop: "remark" }, { label: "备注", prop: "remark" },
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
{ label: "已用容量", prop: "usedCapacity" },
{ label: "可承受过载容量", prop: "bearableOverloadCapacity" },
{ label: "上次修改时间", prop: "lastModificationTime", type:'dateTime' },
// { // {
// label: "操作", // label: "操作",

16
fe/PC/src/utils/tabsDesTions/index.js

@ -1,6 +1,6 @@
// 基础信息数据管理 // 基础信息数据管理
/**/ /**/
// 物品基础信息 20221212 // 物品基础信息 20230328
export const ItemBasic = [ export const ItemBasic = [
{ label: "物料代码", prop: 'code' }, { label: "物料代码", prop: 'code' },
{ label: "物料名称", prop: "name" }, { label: "物料名称", prop: "name" },
@ -13,7 +13,7 @@ export const ItemBasic = [
{ label: "采购件", prop: "canBuy", type: "filter", filters: "whetherOrNot" }, { label: "采购件", prop: "canBuy", type: "filter", filters: "whetherOrNot" },
{ label: "外包件", prop: 'canOutsourcing', type: "filter", filters: "whetherOrNot" }, { label: "外包件", prop: 'canOutsourcing', type: "filter", filters: "whetherOrNot" },
{ label: "回收件", prop: 'isRecycled', type: "filter", filters: "whetherOrNot" }, { label: "回收件", prop: 'isRecycled', type: "filter", filters: "whetherOrNot" },
{ label: "产品类", prop: 'productLine' }, // { label: "产品类", prop: 'productLine' },
{ label: "有效值", prop: "validity" }, { label: "有效值", prop: "validity" },
{ label: "有效期", prop: "validityUnit", type: "filter", filters: "validityUnit" }, { label: "有效期", prop: "validityUnit", type: "filter", filters: "validityUnit" },
{ label: "管理类型", prop: "manageType", type: "filter", filters: "manageType" }, { label: "管理类型", prop: "manageType", type: "filter", filters: "manageType" },
@ -29,6 +29,7 @@ export const ItemBasic = [
{ label: "是否虚拟物料", prop: "isPhantom", type: "filter", filters: "whetherOrNot" }, { label: "是否虚拟物料", prop: "isPhantom", type: "filter", filters: "whetherOrNot" },
{ label: "备注", prop: 'remark' }, { label: "备注", prop: 'remark' },
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
{ label: "标包数", prop: "stdPackQty" },
{ label: "事务代码", prop: "tenantId" }, { label: "事务代码", prop: "tenantId" },
{ label: "创建时间", prop: "creationTime", type:'dateTime' }, { label: "创建时间", prop: "creationTime", type:'dateTime' },
{ label: "创建者Id", prop: "creatorId" }, { label: "创建者Id", prop: "creatorId" },
@ -36,9 +37,6 @@ export const ItemBasic = [
{ label: "上次修改者Id", prop: "lastModifierId" }, { label: "上次修改者Id", prop: "lastModifierId" },
{ label: "id", prop: 'id' }, { label: "id", prop: 'id' },
// { label: "公司", prop: 'company' }, // { label: "公司", prop: 'company' },
// ---------------------------------------
{ label: "标包数", prop: "stdPackQty" },
// -----------------------------------------------------------------------
] ]
// 物品质量信息 20230328 // 物品质量信息 20230328
export const ItemQuality = [ export const ItemQuality = [
@ -465,7 +463,7 @@ export const Location = [
// { label: "公司", prop: 'company' }, // { label: "公司", prop: 'company' },
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
] ]
// 库位零件关系 20221212 // 库位零件关系 20230331
export const ItemStoreRelation = [ export const ItemStoreRelation = [
{ label: "物料代码", prop: "itemCode" }, { label: "物料代码", prop: "itemCode" },
{ label: "储存关系类型", prop: "storeRelationType", type: "filter", filters: "storeRelationType" }, { label: "储存关系类型", prop: "storeRelationType", type: "filter", filters: "storeRelationType" },
@ -480,7 +478,7 @@ export const ItemStoreRelation = [
{ label: "备注", prop: 'remark' }, { label: "备注", prop: 'remark' },
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
{ label: "是否占用多库位", prop: "multiLoc", type: "filter", filters: "whetherOrNot" }, { label: "是否占用多库位", prop: "multiLoc", type: "filter", filters: "whetherOrNot" },
{ label: "库位", prop: "locationCode" }, { label: "库位代码", prop: "locationCode" },
{ label: "事务代码", prop: "tenantId" }, { label: "事务代码", prop: "tenantId" },
{ label: "创建时间", prop: "creationTime", type:'dateTime' }, { label: "创建时间", prop: "creationTime", type:'dateTime' },
{ label: "创建者Id", prop: "creatorId" }, { label: "创建者Id", prop: "creatorId" },
@ -491,7 +489,7 @@ export const ItemStoreRelation = [
{ label: "公司", prop: 'company' }, { label: "公司", prop: 'company' },
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
] ]
// 库位可用容量信息 20230328 暂无接口 // 库位可用容量信息 20230331
export const InventoryLocationCapacity = [ export const InventoryLocationCapacity = [
{ label: "可用容量(%)", prop: "availableCapacity" }, { label: "可用容量(%)", prop: "availableCapacity" },
{ label: "是否无穷大", prop: "isInfinity", type: "filter", filters: "whetherOrNot" }, { label: "是否无穷大", prop: "isInfinity", type: "filter", filters: "whetherOrNot" },
@ -506,7 +504,7 @@ export const InventoryLocationCapacity = [
{ label: "上次修改时间", prop: "lastModificationTime", type:'dateTime' }, { label: "上次修改时间", prop: "lastModificationTime", type:'dateTime' },
{ label: "上次修改者Id", prop: "lastModifierId" }, { label: "上次修改者Id", prop: "lastModifierId" },
{ label: "id", prop: 'id' }, { label: "id", prop: 'id' },
{ label: "公司", prop: 'company' }, // { label: "公司", prop: 'company' },
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
] ]
// 物品安全库存信息 20230328 // 物品安全库存信息 20230328

70
fe/PC/src/views/basicData/ItemsManage/AQL.vue

@ -107,6 +107,33 @@ export default {
filterSelectMixins, filterSelectMixins,
newAndEdiDialogMixins newAndEdiDialogMixins
], ],
watch: {
'CreateFormData.isUsePercent': {
handler (val) {
if(val) {
this.CreateForm.find(item => item.prop == 'samplePercent').min = 1
this.CreateFormData.samplePercent = 1
} else {
this.CreateForm.find(item => item.prop == 'samplePercent').min = 0
this.CreateFormData.samplePercent = 0
}
},
immediate: true
},
'editFormData.isUsePercent': {
handler (val) {
if(val) {
this.editForm.find(item => item.prop == 'samplePercent').min = 1
this.editFormData.samplePercent = 1
} else {
this.editForm.find(item => item.prop == 'samplePercent').min = 0
this.editFormData.samplePercent = 0
}
},
immediate: false
},
},
computed: { computed: {
editDialog: { editDialog: {
get: function () { get: function () {
@ -167,11 +194,11 @@ export default {
searchButton: (val) => { this.showSerarchPage(val, 'basedata/Supplier', 'Supplier', '供应商选择', this.CreateFormData) }, colSpan: 12 }, searchButton: (val) => { this.showSerarchPage(val, 'basedata/Supplier', 'Supplier', '供应商选择', this.CreateFormData) }, colSpan: 12 },
{ type: "input", label: "数量下限", prop: "floorQty", validType:'number', colSpan: 12 }, { type: "input", label: "数量下限", prop: "floorQty", validType:'number', colSpan: 12 },
{ type: "input", label: "数量上限", prop: "ceilingQty", validType:'number', colSpan: 12 }, { type: "input", label: "数量上限", prop: "ceilingQty", validType:'number', colSpan: 12 },
{ type: "input", label: "抽检百分比%", prop: "samplePercent", validType:'number', colSpan: 12 }, { type: "select", label: "ABC类", prop: "abcClass", options: "abcClass", clearable: true, filterable: true, allowCreate: true, colSpan: 12 },
{ type: "input", label: "抽检数量", prop: "sampleQty", validType:'number', colSpan: 12 }, { type: "input", label: "抽检数量", prop: "sampleQty", validType:'number', colSpan: 12 },
{ type: "select", label: "使用百分比", prop: "isUsePercent", options: "whetherOrNot", colSpan: 12 }, { type: "select", label: "使用百分比", prop: "isUsePercent", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "ABC类", prop: "abcClass", options: "abcClass", clearable: true, filterable: true, allowCreate: true, colSpan: 12 }, { type: "number", label: "抽检百分比%", prop: "samplePercent", validType:'number', colSpan: 12, precision:0, min: 0 ,max:100 },
{ type: "input", label: "备注", prop: "remark", colSpan: 24 }, { type: "input", label: "备注", prop: "remark", colSpan: 12 },
], ],
editForm: [ editForm: [
{ type: "filterSelect", label: "物料代码", prop: "itemCode", optionsLabel: "name", optionsValue: "code", { type: "filterSelect", label: "物料代码", prop: "itemCode", optionsLabel: "name", optionsValue: "code",
@ -182,35 +209,35 @@ export default {
searchButton: (val) => { this.showSerarchPage(val, 'basedata/Supplier', 'SupplierBasic', '供应商选择', this.editFormData) }, colSpan: 12 }, searchButton: (val) => { this.showSerarchPage(val, 'basedata/Supplier', 'SupplierBasic', '供应商选择', this.editFormData) }, colSpan: 12 },
{ type: "input", label: "数量下限", prop: "floorQty", validType:'number', colSpan: 12 }, { type: "input", label: "数量下限", prop: "floorQty", validType:'number', colSpan: 12 },
{ type: "input", label: "数量上限", prop: "ceilingQty", validType:'number', colSpan: 12 }, { type: "input", label: "数量上限", prop: "ceilingQty", validType:'number', colSpan: 12 },
{ type: "input", label: "抽检百分比%", prop: "samplePercent", validType:'number', colSpan: 12 }, { type: "select", label: "ABC类", prop: "abcClass", options: "abcClass", clearable: true, filterable: true, allowCreate: true, colSpan: 12 },
{ type: "input", label: "抽检数量", prop: "sampleQty", validType:'number', colSpan: 12 }, { type: "input", label: "抽检数量", prop: "sampleQty", validType:'number', colSpan: 12 },
{ type: "select", label: "使用百分比", prop: "isUsePercent", options: "whetherOrNot", colSpan: 12 }, { type: "select", label: "使用百分比", prop: "isUsePercent", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "ABC类", prop: "abcClass", options: "abcClass", clearable: true, filterable: true, allowCreate: true, colSpan: 12 }, { type: "number", label: "抽检百分比%", prop: "samplePercent", validType:'number', colSpan: 12, precision:0, min: 0 ,max:100 },
{ type: "input", label: "备注", prop: "remark", colSpan: 12 }, { type: "input", label: "备注", prop: "remark", colSpan: 12 },
], ],
editRules: { editRules: {
cerateRule: { cerateRule: {
itemCode: [{ required: true, trigger: "change", message: "不可为空" },], itemCode: [{ required: true, trigger: "change", message: "不可为空" },],
supplierCode: [{ required: true, trigger: "change", message: "不可为空" }], supplierCode: [{ required: true, trigger: "change", message: "不可为空" }],
ceilingQty: [{ required: true, trigger: "blur", type: "number", message: "不可为空" }], ceilingQty: [{ required: true, trigger: "blur", message: "不可为空" }],
floorQty: [{ required: true, trigger: "blur", type: "number", message: "不可为空" }], floorQty: [{ required: true, trigger: "blur", message: "不可为空" }],
samplePercent: [ samplePercent: [
{ validator:numberValidate, trigger: "blur"}, // { validator:numberValidate, trigger: "blur"},
{ required: true, trigger: "blur",type: "number",message: "不可为空"}, { required: true, trigger: "blur",message: "不可为空"},
], ],
sampleQty: [{ required: true, trigger: "blur", type: "number", message: "不可为空" }], sampleQty: [{ required: true, trigger: "blur", message: "不可为空" }],
isUsePercent: [{ required: true, trigger: "blur", message: "不可为空" }], isUsePercent: [{ required: true, trigger: "blur", message: "不可为空" }],
}, },
editRule: { editRule: {
itemCode: [{ required: true, trigger: "change", message: "不可为空" },], itemCode: [{ required: true, trigger: "change", message: "不可为空" },],
supplierCode: [{ required: true, trigger: "change", message: "不可为空" }], supplierCode: [{ required: true, trigger: "change", message: "不可为空" }],
ceilingQty: [{ required: true, trigger: "blur", type: "number", message: "不可为空" }], ceilingQty: [{ required: true, trigger: "blur", message: "不可为空" }],
floorQty: [{ required: true, trigger: "blur", type: "number", message: "不可为空" }], floorQty: [{ required: true, trigger: "blur", message: "不可为空" }],
samplePercent: [ samplePercent: [
{ validator:numberValidate, trigger: "blur"}, // { validator:numberValidate, trigger: "blur"},
{ required: true, trigger: "blur",type: "number",message: "不可为空"}, { required: true, trigger: "blur",message: "不可为空"},
], ],
sampleQty: [{ required: true, trigger: "blur", type: "number", message: "不可为空" }], sampleQty: [{ required: true, trigger: "blur", message: "不可为空" }],
isUsePercent: [{ required: true, trigger: "blur", message: "不可为空" }], isUsePercent: [{ required: true, trigger: "blur", message: "不可为空" }],
} }
}, },
@ -219,19 +246,6 @@ export default {
mounted () { mounted () {
this.paging(); this.paging();
}, },
methods: {
// changeSelect(prop, val) {
// if (prop == 'isUsePercent') {
// if (val) {
// this.editRules.cerateRule.samplePercent[1].required = true
// this.editRules.editRule.samplePercent[1].required = true
// } else {
// this.editRules.cerateRule.samplePercent[1].required = false
// this.editRules.editRule.samplePercent[1].required = false
// }
// }
// }
}
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

2
fe/PC/src/views/basicData/ItemsManage/ItemBasic.vue

@ -279,6 +279,7 @@ export default {
isBuyPart: [{ required: true, trigger: "blur", message: "不可为空" }], isBuyPart: [{ required: true, trigger: "blur", message: "不可为空" }],
validity: [{ required: true, trigger: "blur", message: "不可为空" }], validity: [{ required: true, trigger: "blur", message: "不可为空" }],
manageType: [{ required: true, trigger: "change", message: "不可为空" }], manageType: [{ required: true, trigger: "change", message: "不可为空" }],
stdPackQty: [{ required: true, trigger: "blur", message: "不可为空" }],
}, },
editRule: { editRule: {
code: [{ required: true, trigger: "blur", message: "不可为空" }], code: [{ required: true, trigger: "blur", message: "不可为空" }],
@ -293,6 +294,7 @@ export default {
isBuyPart: [{ required: true, trigger: "blur", message: "不可为空" }], isBuyPart: [{ required: true, trigger: "blur", message: "不可为空" }],
validity: [{ required: true, trigger: "blur", message: "不可为空" }], validity: [{ required: true, trigger: "blur", message: "不可为空" }],
manageType: [{ required: true, trigger: "change", message: "不可为空" }], manageType: [{ required: true, trigger: "change", message: "不可为空" }],
stdPackQty: [{ required: true, trigger: "blur", message: "不可为空" }],
} }
}, },
// table // table

8
fe/PC/src/views/basicData/ItemsManage/ItemPack.vue

@ -171,16 +171,16 @@ export default {
cerateRule: { cerateRule: {
packCode: [{ required: true, trigger: "blur", message: "不可为空" }], packCode: [{ required: true, trigger: "blur", message: "不可为空" }],
itemCode: [{ required: true, trigger: "change", message: "不可为空" }], itemCode: [{ required: true, trigger: "change", message: "不可为空" }],
packQty: [{ required: true, trigger: "blur", type: "number", message: "不可为空" }], packQty: [{ required: true, trigger: "blur", message: "不可为空" }],
packUom: [{ required: true, trigger: "blur", message: "不可为空" }], packUom: [{ required: true, trigger: "blur", message: "不可为空" }],
conversionRate: [{ required: true, trigger: "blur", type: "number", message: "不可为空" }], conversionRate: [{ required: true, trigger: "blur", message: "不可为空" }],
}, },
editRule: { editRule: {
packCode: [{ required: true, trigger: "blur", message: "不可为空" }], packCode: [{ required: true, trigger: "blur", message: "不可为空" }],
itemCode: [{ required: true, trigger: "change", message: "不可为空" }], itemCode: [{ required: true, trigger: "change", message: "不可为空" }],
packQty: [{ required: true, trigger: "blur", type: "number", message: "不可为空" }], packQty: [{ required: true, trigger: "blur", message: "不可为空" }],
packUom: [{ required: true, trigger: "blur", message: "不可为空" }], packUom: [{ required: true, trigger: "blur", message: "不可为空" }],
conversionRate: [{ required: true, trigger: "blur", type: "number", message: "不可为空" }], conversionRate: [{ required: true, trigger: "blur", message: "不可为空" }],
} }
}, },
}; };

4
fe/PC/src/views/basicData/WarehouseManage/Location.vue

@ -326,6 +326,8 @@ export default {
workGroupCode: [{ required: true, trigger: "change", message: "不可为空" }], workGroupCode: [{ required: true, trigger: "change", message: "不可为空" }],
code: [{ required: true, trigger: "change", message: "不可为空" }], code: [{ required: true, trigger: "change", message: "不可为空" }],
erpLocationCode: [{ required: true, trigger: "change", message: "不可为空" }], erpLocationCode: [{ required: true, trigger: "change", message: "不可为空" }],
rowCode:[{required: true, trigger: "change", message: "不可为空"}],
columnCode:[{required: true, trigger: "change", message: "不可为空"}],
}, },
editRule: { editRule: {
// warehouseCode: [{ required: true, trigger: "change", message: "" },], // warehouseCode: [{ required: true, trigger: "change", message: "" },],
@ -333,6 +335,8 @@ export default {
locationGroupCode: [{ required: true, trigger: "change", message: "不可为空" }], locationGroupCode: [{ required: true, trigger: "change", message: "不可为空" }],
workGroupCode: [{ required: true, trigger: "change", message: "不可为空" }], workGroupCode: [{ required: true, trigger: "change", message: "不可为空" }],
erpLocationCode: [{ required: true, trigger: "change", message: "不可为空" }], erpLocationCode: [{ required: true, trigger: "change", message: "不可为空" }],
rowCode:[{required: true, trigger: "change", message: "不可为空"}],
columnCode:[{required: true, trigger: "change", message: "不可为空"}],
} }
}, },
// table // table

3
fe/PC/src/views/basicData/WorkshopManage/ProdLineItem.vue

@ -80,7 +80,6 @@
:dropdownData="dropdownData" :dropdownData="dropdownData"
:propsData="propsData" :propsData="propsData"
:tabsDesTions="tabsDesTions" :tabsDesTions="tabsDesTions"
:Butttondata="[]"
@drawerShut="(val) => (displayDialog.detailsDialog = val)" @drawerShut="(val) => (displayDialog.detailsDialog = val)"
@drawerbutton="drawerbutton" @drawerbutton="drawerbutton"
@handleCommand="drawerHandle" @handleCommand="drawerHandle"
@ -159,7 +158,7 @@ export default {
{ type: "input", label: "备注", prop: 'remark', colSpan: 12 }, { type: "input", label: "备注", prop: 'remark', colSpan: 12 },
], ],
editForm: [ editForm: [
{ type: "filterSelect", label: "物料代码", prop: "itemCode", optionsLabel: "name", optionsValue: "code", { type: "filterSelect", label: "物料代码",disabled:true, prop: "itemCode", optionsLabel: "name", optionsValue: "code",
focus: (type,val) => { return this.getFilterList(type, val, "basedata/Item-Basic")}, focus: (type,val) => { return this.getFilterList(type, val, "basedata/Item-Basic")},
searchButton: (val) => { this.showSerarchPage(val, 'basedata/Item-Basic', 'ItemBasic', '物品选择', this.editFormData) }, colSpan: 12 }, searchButton: (val) => { this.showSerarchPage(val, 'basedata/Item-Basic', 'ItemBasic', '物品选择', this.editFormData) }, colSpan: 12 },
{ type: "filterSelect", label: "生产线编号", prop: "prodLineCode", optionsLabel: "name", optionsValue: "code", { type: "filterSelect", label: "生产线编号", prop: "prodLineCode", optionsLabel: "name", optionsValue: "code",

51
fe/PC/src/views/basicData/WorkshopManage/ProductionLine.vue

@ -161,15 +161,27 @@ export default {
{ type: "filterSelect", label: "车间代码", prop: "workshopCode", optionsLabel: "name", optionsValue: "code", { type: "filterSelect", label: "车间代码", prop: "workshopCode", optionsLabel: "name", optionsValue: "code",
focus: (type,val) => { return this.getFilterList(type, val, "basedata/workshop")}, focus: (type,val) => { return this.getFilterList(type, val, "basedata/workshop")},
searchButton: (val) => { this.showSerarchPage(val, 'basedata/workshop', 'Workshop', '车间选择', this.CreateFormData) }, colSpan: 12 }, searchButton: (val) => { this.showSerarchPage(val, 'basedata/workshop', 'Workshop', '车间选择', this.CreateFormData) }, colSpan: 12 },
{ type: "filterSelect", label: "原料库位", prop: "rawLocationCode", optionsLabel: "name", optionsValue: "code",
focus: (type,val) => { return this.getFilterList(type, val, "basedata/location")}, { type: "filterSelect", label: "原料库位", prop: "rawLocationCode", optionsLabel: "name", optionsValue: "code",
searchButton: (val) => { this.showSerarchPage(val, 'basedata/location', 'Location', '库位选择', this.CreateFormData) }, colSpan: 12 }, focus: (type,val) => { return this.getFilterList(type, val, "basedata/location",[
{logic:"And",column:"type",action:"==",value:"2"},
])},
searchButton: (val) => { this.showSerarchPage(val, 'basedata/location', 'Location', '库位选择', this.CreateFormData,[
{logic:"And",column:"type",action:"==",value:"2"},
]) }, colSpan: 12 },
{ type: "filterSelect", label: "原料库位组", prop: "rawLocationGroupCode", optionsLabel: "name", optionsValue: "code", { type: "filterSelect", label: "原料库位组", prop: "rawLocationGroupCode", optionsLabel: "name", optionsValue: "code",
focus: (type,val) => { return this.getFilterList(type, val, "basedata/location-group")}, focus: (type,val) => { return this.getFilterList(type, val, "basedata/location-group")},
searchButton: (val) => { this.showSerarchPage(val, 'basedata/location-group', 'LocationGroup', '库位组选择', this.CreateFormData) }, colSpan: 12 }, searchButton: (val) => { this.showSerarchPage(val, 'basedata/location-group', 'LocationGroup', '库位组选择', this.CreateFormData) }, colSpan: 12 },
{ type: "filterSelect", label: "成品库位", prop: "productLocationCode", optionsLabel: "name", optionsValue: "code", { type: "filterSelect", label: "成品库位", prop: "productLocationCode", optionsLabel: "name", optionsValue: "code",
focus: (type,val) => { return this.getFilterList(type, val, "basedata/location")}, focus: (type,val) => { return this.getFilterList(type, val, "basedata/location",[
searchButton: (val) => { this.showSerarchPage(val, 'basedata/location', 'Location', '库位选择', this.CreateFormData) }, colSpan: 12 }, {logic:"And",column:"type",action:"==",value:"4"},
])},
searchButton: (val) => { this.showSerarchPage(val, 'basedata/location', 'Location', '库位选择', this.CreateFormData,[
{logic:"And",column:"type",action:"==",value:"4"},
]) }, colSpan: 12 },
{ type: "input", label: "描述", prop: "description", colSpan: 12 }, { type: "input", label: "描述", prop: "description", colSpan: 12 },
{ type: "input", label: "备注", prop: 'remark', colSpan: 12 }, { type: "input", label: "备注", prop: 'remark', colSpan: 12 },
], ],
@ -177,32 +189,45 @@ export default {
{ type: "input", label: "生产线代码", disabled:"true", prop: "code", validType:'numberLetter', colSpan: 12 }, { type: "input", label: "生产线代码", disabled:"true", prop: "code", validType:'numberLetter', colSpan: 12 },
{ type: "input", label: "生产线名称", prop: 'name', colSpan: 12 }, { type: "input", label: "生产线名称", prop: 'name', colSpan: 12 },
{ type: "select", label: "类型", prop: "type", options: "productionLineType", colSpan: 12 }, { type: "select", label: "类型", prop: "type", options: "productionLineType", colSpan: 12 },
{ type: "filterSelect", label: "车间代码", prop: "workshopCode", optionsLabel: "name", optionsValue: "code", { type: "filterSelect", label: "车间代码", prop: "workshopCode", optionsLabel: "name", optionsValue: "code",
focus: (type,val) => { return this.getFilterList(type, val, "basedata/workshop")}, focus: (type,val) => { return this.getFilterList(type, val, "basedata/workshop")},
searchButton: (val) => { this.showSerarchPage(val, 'basedata/workshop', 'Workshop', '车间选择', this.editFormData) }, colSpan: 12 }, searchButton: (val) => { this.showSerarchPage(val, 'basedata/workshop', 'Workshop', '车间选择', this.editFormData) }, colSpan: 12 },
{ type: "filterSelect", label: "原料库位", prop: "rawLocationCode", optionsLabel: "name", optionsValue: "code", { type: "filterSelect", label: "原料库位", prop: "rawLocationCode", optionsLabel: "name", optionsValue: "code",
focus: (type,val) => { return this.getFilterList(type, val, "basedata/location")}, focus: (type,val) => { return this.getFilterList(type, val, "basedata/location",[
searchButton: (val) => { this.showSerarchPage(val, 'basedata/location', 'Location', '库位选择', this.editFormData) }, colSpan: 12 }, {logic:"And",column:"type",action:"==",value:"2"},
])},
searchButton: (val) => { this.showSerarchPage(val, 'basedata/location', 'Location', '库位选择', this.editFormData,[
{logic:"And",column:"type",action:"==",value:"2"},
]) }, colSpan: 12 },
{ type: "filterSelect", label: "原料库位组", prop: "rawLocationGroupCode", optionsLabel: "name", optionsValue: "code", { type: "filterSelect", label: "原料库位组", prop: "rawLocationGroupCode", optionsLabel: "name", optionsValue: "code",
focus: (type,val) => { return this.getFilterList(type, val, "basedata/location-group")}, focus: (type,val) => { return this.getFilterList(type, val, "basedata/location-group")},
searchButton: (val) => { this.showSerarchPage(val, 'basedata/location-group', 'LocationGroup', '库位组选择', this.editFormData) }, colSpan: 12 }, searchButton: (val) => { this.showSerarchPage(val, 'basedata/location-group', 'LocationGroup', '库位组选择', this.editFormData) }, colSpan: 12 },
{ type: "filterSelect", label: "成品库位", prop: "productLocationCode", optionsLabel: "name", optionsValue: "code", { type: "filterSelect", label: "成品库位", prop: "productLocationCode", optionsLabel: "name", optionsValue: "code",
focus: (type,val) => { return this.getFilterList(type, val, "basedata/location")}, focus: (type,val) => { return this.getFilterList(type, val, "basedata/location",[
searchButton: (val) => { this.showSerarchPage(val, 'basedata/location', 'Location', '库位选择', this.editFormData) }, colSpan: 12 }, {logic:"And",column:"type",action:"==",value:"4"},
])},
searchButton: (val) => { this.showSerarchPage(val, 'basedata/location', 'Location', '库位选择', this.editFormData,[
{logic:"And",column:"type",action:"==",value:"4"},
]) }, colSpan: 12 },
{ type: "input", label: "描述", prop: "description", colSpan: 12 }, { type: "input", label: "描述", prop: "description", colSpan: 12 },
{ type: "input", label: "备注", prop: 'remark', colSpan: 12 }, { type: "input", label: "备注", prop: 'remark', colSpan: 12 },
], ],
editRules: { editRules: {
cerateRule: { cerateRule: {
code: [{ required: true, trigger: "blur", message: "不可为空" }], code: [{ required: true, trigger: "blur", message: "不可为空" }],
rawLocation: [{ required: true, trigger: "change", message: "不可为空" }],
workshopCode: [{ required: true, trigger: "change", message: "不可为空" }], workshopCode: [{ required: true, trigger: "change", message: "不可为空" }],
productLocation: [{ required: true, trigger: "change", message: "不可为空" }], rawLocationCode: [{ required: true, trigger: "change", message: "不可为空" }],
productLocationCode: [{ required: true, trigger: "change", message: "不可为空" }],
}, },
editRule: { editRule: {
rawLocation: [{ required: true, trigger: "change", message: "不可为空" }],
workshopCode: [{ required: true, trigger: "change", message: "不可为空" }], workshopCode: [{ required: true, trigger: "change", message: "不可为空" }],
productLocation: [{ required: true, trigger: "change", message: "不可为空" }], rawLocationCode: [{ required: true, trigger: "change", message: "不可为空" }],
productLocationCode: [{ required: true, trigger: "change", message: "不可为空" }],
} }
}, },
}; };

Loading…
Cancel
Save