|
@ -107,8 +107,8 @@ export default { |
|
|
{title:"预览信息",cancle:()=>{return _this.sencondPre()}}, |
|
|
{title:"预览信息",cancle:()=>{return _this.sencondPre()}}, |
|
|
{title:"打印"}, |
|
|
{title:"打印"}, |
|
|
], |
|
|
], |
|
|
selectItemInfo:{},//已选物料信息 |
|
|
selectItemInfo:{},//已选物品信息 |
|
|
selectSupplierInfo:{},//已选物料信息对应的供应商信息 |
|
|
selectSupplierInfo:{},//已选物品信息对应的供应商信息 |
|
|
// 默认筛选数据 |
|
|
// 默认筛选数据 |
|
|
defaultSelectData:{ |
|
|
defaultSelectData:{ |
|
|
itemCode:"", |
|
|
itemCode:"", |
|
@ -130,16 +130,16 @@ export default { |
|
|
// 筛选条件 |
|
|
// 筛选条件 |
|
|
selectForm:[ |
|
|
selectForm:[ |
|
|
{ |
|
|
{ |
|
|
type: "filterSelect", label: "物料代码", prop: "itemCode", optionsLabel: "name", optionsValue: "code", clearable:true, |
|
|
type: "filterSelect", label: "物品代码", prop: "itemCode", optionsLabel: "name", optionsValue: "code", clearable:true, |
|
|
focus: (type,val) => { return this.getFilterList(type, val, "basedata/item-basic", |
|
|
focus: (type,val) => { return this.getFilterList(type, val, "basedata/item-basic", |
|
|
// [{logic:"And",column:"canMake",action:"!=",value:"true"}] //原回收料的条件 |
|
|
// [{logic:"And",column:"canMake",action:"!=",value:"true"}] //原回收料的条件 |
|
|
)}, |
|
|
)}, |
|
|
searchButton: (val) => { this.showSerarchPage(val, 'basedata/Item-Basic', 'ItemBasic', '物料代码', this.selectData, |
|
|
searchButton: (val) => { this.showSerarchPage(val, 'basedata/Item-Basic', 'ItemBasic', '物品代码', this.selectData, |
|
|
// [{logic:"And",column:"canMake",action:"!=",value:"true"}] //原回收料的条件 |
|
|
// [{logic:"And",column:"canMake",action:"!=",value:"true"}] //原回收料的条件 |
|
|
)}, |
|
|
)}, |
|
|
colSpan: 12, |
|
|
colSpan: 12, |
|
|
}, |
|
|
}, |
|
|
{ type: "input",disabled:true,label: "物料名称", prop: "itemName", colSpan: 12 }, |
|
|
{ type: "input",disabled:true,label: "物品名称", prop: "itemName", colSpan: 12 }, |
|
|
{ type: "select",disabled:true, label: "制造件", prop: "canMake", options: "whetherOrNot", colSpan: 12 }, |
|
|
{ type: "select",disabled:true, label: "制造件", prop: "canMake", options: "whetherOrNot", colSpan: 12 }, |
|
|
{ type: "select", disabled:true,label: "采购件", prop: "canBuy", options: "whetherOrNot", colSpan: 12 }, |
|
|
{ type: "select", disabled:true,label: "采购件", prop: "canBuy", options: "whetherOrNot", colSpan: 12 }, |
|
|
{ type: "select", disabled:true,label: "回收件", prop: "isRecycled", options: "whetherOrNot", colSpan: 12 }, |
|
|
{ type: "select", disabled:true,label: "回收件", prop: "isRecycled", options: "whetherOrNot", colSpan: 12 }, |
|
@ -149,7 +149,7 @@ export default { |
|
|
{ type: "input", label: "批次", prop: "lot", colSpan: 12 }, |
|
|
{ type: "input", label: "批次", prop: "lot", colSpan: 12 }, |
|
|
{ type: "inputNumber", label: "标签个数", prop: "labelQty", min:1,colSpan: 12 }, |
|
|
{ type: "inputNumber", label: "标签个数", prop: "labelQty", min:1,colSpan: 12 }, |
|
|
{ type: "filterSelect", label: "供应商代码", prop: "supplierCode", optionsLabel: "supplierSimpleName", optionsValue: "supplierCode", clearable:true, |
|
|
{ type: "filterSelect", label: "供应商代码", prop: "supplierCode", optionsLabel: "supplierSimpleName", optionsValue: "supplierCode", clearable:true, |
|
|
beforeFocus:()=>{if(!this.selectData.itemCode || this.selectData.itemCode.length <= 0){this.$message.error('请输入物料代码'); return false}else{return true}}, |
|
|
beforeFocus:()=>{if(!this.selectData.itemCode || this.selectData.itemCode.length <= 0){this.$message.error('请输入物品代码'); return false}else{return true}}, |
|
|
focus: (type,val) => { return this.getFilterList(type, val, "basedata/supplier-item",this.isFilter("itemCode", this.selectData.itemCode))}, |
|
|
focus: (type,val) => { return this.getFilterList(type, val, "basedata/supplier-item",this.isFilter("itemCode", this.selectData.itemCode))}, |
|
|
searchButton: (val) => { this.showSerarchPage(val, 'basedata/supplier-item', 'SupplierItem', '供应商代码', this.selectData, |
|
|
searchButton: (val) => { this.showSerarchPage(val, 'basedata/supplier-item', 'SupplierItem', '供应商代码', this.selectData, |
|
|
this.isFilter("itemCode", this.selectData.itemCode) |
|
|
this.isFilter("itemCode", this.selectData.itemCode) |
|
@ -160,15 +160,15 @@ export default { |
|
|
], |
|
|
], |
|
|
// 筛选Rules |
|
|
// 筛选Rules |
|
|
selectRules:{ |
|
|
selectRules:{ |
|
|
itemCode: [{ required: true, trigger: "change", message: "物料代码不能为空" },], |
|
|
itemCode: [{ required: true, trigger: "change", message: "物品代码不能为空" },], |
|
|
// lot: [{ required: true, trigger: "change", message: "批次不能为空" }], |
|
|
// lot: [{ required: true, trigger: "change", message: "批次不能为空" }], |
|
|
qty: [{ required: true, trigger: "change", message: "实际数量不能为空" }], |
|
|
qty: [{ required: true, trigger: "change", message: "实际数量不能为空" }], |
|
|
labelQty: [{ required: true, trigger: "change", message: "标签个数不能为空" }], |
|
|
labelQty: [{ required: true, trigger: "change", message: "标签个数不能为空" }], |
|
|
}, |
|
|
}, |
|
|
// 表格头部信息 |
|
|
// 表格头部信息 |
|
|
flexTableColumns:[ |
|
|
flexTableColumns:[ |
|
|
{ label: "物料代码", prop: "itemCode", }, |
|
|
{ label: "物品代码", prop: "itemCode", }, |
|
|
{ label: "物料名称", prop: "itemName", }, |
|
|
{ label: "物品名称", prop: "itemName", }, |
|
|
{ label: "批次", prop: "lot", }, |
|
|
{ label: "批次", prop: "lot", }, |
|
|
// { width:"auto",label: "标包数量", prop: "packQty", }, |
|
|
// { width:"auto",label: "标包数量", prop: "packQty", }, |
|
|
// { width:"auto",label: "标包单位", prop: "packUom", }, |
|
|
// { width:"auto",label: "标包单位", prop: "packUom", }, |
|
@ -206,9 +206,9 @@ export default { |
|
|
this.$refs.steps_create.returnFirstActive() |
|
|
this.$refs.steps_create.returnFirstActive() |
|
|
this.$refs.form_create.getDom().resetFields(); |
|
|
this.$refs.form_create.getDom().resetFields(); |
|
|
}, |
|
|
}, |
|
|
// 第一部物料代码点击拉取 |
|
|
// 第一部物品代码点击拉取 |
|
|
detailsDataPush (val) { |
|
|
detailsDataPush (val) { |
|
|
// 点击物料 |
|
|
// 点击物品 |
|
|
if(val[1].prop == "itemCode"){ |
|
|
if(val[1].prop == "itemCode"){ |
|
|
this.canForm.canType = null |
|
|
this.canForm.canType = null |
|
|
this.selectItemInfo = val[0]; |
|
|
this.selectItemInfo = val[0]; |
|
|