|
|
@ -1,6 +1,3 @@
|
|
|
|
import $API from '@/api'
|
|
|
|
|
|
|
|
import $CONFIG from '@/config'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "processReport",
|
|
|
|
name: "processReport",
|
|
|
|
dec: "工序报工",
|
|
|
|
dec: "工序报工",
|
|
|
@ -32,7 +29,19 @@ export default {
|
|
|
|
{ label: "机台", prop: "machine", width: "200" },
|
|
|
|
{ label: "机台", prop: "machine", width: "200" },
|
|
|
|
{ label: "销售订单编码", prop: "salesOrderCode", width: "200" },
|
|
|
|
{ label: "销售订单编码", prop: "salesOrderCode", width: "200" },
|
|
|
|
{ label: "挤压排产编码", prop: "scheduleNumber", width: "200" },
|
|
|
|
{ label: "挤压排产编码", prop: "scheduleNumber", width: "200" },
|
|
|
|
|
|
|
|
{ label: "产品代码", prop: "materialCode", width: "200" },
|
|
|
|
{ label: "型材型号", prop: "profileModel", width: "200" },
|
|
|
|
{ label: "型材型号", prop: "profileModel", width: "200" },
|
|
|
|
|
|
|
|
{ label: "物料名称", prop: "materialName", width: "200" },
|
|
|
|
|
|
|
|
{ label: "规格型号", prop: "specification", width: "200" },
|
|
|
|
|
|
|
|
{ label: "壁厚", prop: "thickness", width: "200" },
|
|
|
|
|
|
|
|
{ label: "米重", prop: "weight", width: "200" },
|
|
|
|
|
|
|
|
{ label: "订单长度(M)", prop: "orderLength", width: "200" },
|
|
|
|
|
|
|
|
{ label: "表面方式", prop: "surfaceMethod", width: "200" },
|
|
|
|
|
|
|
|
{ label: "订单总数", prop: "orderTotalQuantity", width: "200" },
|
|
|
|
|
|
|
|
{ label: "排产长度(m)", prop: "productionLength", width: "200" },
|
|
|
|
|
|
|
|
{ label: "排产支数", prop: "productionPieces", width: "200" },
|
|
|
|
|
|
|
|
{ label: "锯切方式", prop: "sawingMethod", width: "200" },
|
|
|
|
|
|
|
|
{ label: "交货日期", prop: "deliveryDate", width: "200" },
|
|
|
|
{ label: "操作员", prop: "operator", width: "200" },
|
|
|
|
{ label: "操作员", prop: "operator", width: "200" },
|
|
|
|
{ label: "车间", prop: "workshop", width: "200" },
|
|
|
|
{ label: "车间", prop: "workshop", width: "200" },
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -57,24 +66,64 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
items: [
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
label: "完成数量", name: "productionNumber", value: "", component: "", span: 1,
|
|
|
|
label: "来料支数", name: "sourceNumber", value: "", component: "", span: 1,
|
|
|
|
|
|
|
|
hideHandle: "$.currentProcess == 'jiya'"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
label: "实收支数", name: "netReceipts", value: "", component: "", span: 1,
|
|
|
|
|
|
|
|
hideHandle: "$.currentProcess == 'jiya'"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
label: "生产支数", name: "productionNumber", value: "", component: "", span: 1,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
label: "实际米重", name: "productionWeight", value: "", component: "", span: 1,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
label: "完成重量", name: "productionWeight", value: "", component: "ther", span: 1,
|
|
|
|
label: "实际总重量(KG)", name: "actualWeight", value: "", component: "other", span: 1,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{ label: "报废支数", name: "scrapNumber", value: "", component: "", span: 1 },
|
|
|
|
{ label: "报废支数", name: "scrapNumber", value: "", component: "", span: 1 },
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
label: "报废重量(KG)", name: "scrapWeight", value: "", component: "other", span: 1,
|
|
|
|
|
|
|
|
},
|
|
|
|
{ label: "报废原因", name: "scrapReason", value: "", component: "", span: 1 },
|
|
|
|
{ label: "报废原因", name: "scrapReason", value: "", component: "", span: 1 },
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
label: "理论重量(KG)", name: "theoreticalWeight", value: "", component: "other", span: 1,
|
|
|
|
|
|
|
|
},
|
|
|
|
{ label: "框号", name: "frameNumber", value: "", component: "", span: 1 },
|
|
|
|
{ label: "框号", name: "frameNumber", value: "", component: "", span: 1 },
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ label: "模具编码", name: "moldCode", value: "", component: "", span: 1,
|
|
|
|
|
|
|
|
hideHandle: "$.currentProcess != 'jiya' && $.currentProcess != 'jingpin'"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{ label: "模具型号", name: "moldModel", value: "", component: "", span: 1,
|
|
|
|
|
|
|
|
hideHandle: "$.currentProcess != 'jiya' && $.currentProcess != 'jingpin'"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{ label: "模厚", name: "moldThickness", value: "", component: "", span: 1,
|
|
|
|
|
|
|
|
hideHandle: "$.currentProcess != 'jiya' && $.currentProcess != 'jingpin'"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{ label: "模具厂家", name: "moldManufacturer", value: "", component: "", span: 1,
|
|
|
|
|
|
|
|
hideHandle: "$.currentProcess != 'jiya' && $.currentProcess != 'jingpin'"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{ label: "颜色", name: "moldColor", value: "", component: "", span: 1,
|
|
|
|
|
|
|
|
hideHandle: "$.currentProcess != 'jiya' && $.currentProcess != 'jingpin'"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{ label: "换模原因", name: "moldChangeReason", value: "", component: "", span: 1,
|
|
|
|
|
|
|
|
hideHandle: "$.currentProcess != 'jiya' && $.currentProcess != 'jingpin'"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{ label: "用棒支数", name: "rodCount", value: "", component: "", span: 1,
|
|
|
|
|
|
|
|
hideHandle: "$.currentProcess != 'jiya' && $.currentProcess != 'jingpin'"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
label: "当前工序", name: "currentProcess", value: "", component: "dic", group: "working", span: 1,
|
|
|
|
label: "当前工序", name: "currentProcess", value: "", component: "dic", group: "working", span: 1,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
label: "下一工序", name: "nextProcess", value: "", component: "dic", group: "working", span: 1,
|
|
|
|
label: "下一工序", name: "nextProcess", value: "", component: "dic", group: "working", span: 1,
|
|
|
|
hideHandle: "$.currentProcess == 'bz'"
|
|
|
|
hideHandle: "$.isCompleted == true"
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
label: "是否完成", name: "isCompleted", value: "", component: "", span: 1,
|
|
|
|
label: "是否完成", name: "isCompleted", value: "", component: "", span: 1,
|
|
|
|
hideHandle: "$.currentProcess != 'bz'",
|
|
|
|
// hideHandle: "$.currentProcess != 'bz'",
|
|
|
|
format(value) {
|
|
|
|
format(value) {
|
|
|
|
switch (value + "") {
|
|
|
|
switch (value + "") {
|
|
|
|
case "1":
|
|
|
|
case "1":
|
|
|
@ -96,14 +145,20 @@ export default {
|
|
|
|
size: 'medium',
|
|
|
|
size: 'medium',
|
|
|
|
formItems: [
|
|
|
|
formItems: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
label: "完成数量", name: "productionNumber", value: "", component: "other", span: 24,
|
|
|
|
label: "实收支数", name: "netReceipts", value: "", component: "other", span: 24,
|
|
|
|
options: { maxlength: "256", placeholder: "请输入完成数量" },
|
|
|
|
options: { maxlength: "256", placeholder: "请输入实收支数" },
|
|
|
|
rules: [{ required: true, message: "请输入完成数量", trigger: "blur" }]
|
|
|
|
rules: [{ required: true, message: "请输入实收支数", trigger: "blur" }],
|
|
|
|
|
|
|
|
hideHandle: "$.currentProcess == 'jiya'"
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
label: "完成重量", name: "productionWeight", value: "", component: "other", span: 24,
|
|
|
|
label: "生产支数", name: "productionNumber", value: "", component: "other", span: 24,
|
|
|
|
options: { maxlength: "256", placeholder: "请输入完成重量" },
|
|
|
|
options: { maxlength: "256", placeholder: "请输入生产支数" },
|
|
|
|
rules: [{ required: true, message: "请输入完成重量", trigger: "blur" }]
|
|
|
|
rules: [{ required: true, message: "请输入生产支数", trigger: "blur" }]
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
label: "实际米重", name: "productionWeight", value: "", component: "other", span: 24,
|
|
|
|
|
|
|
|
options: { maxlength: "256", placeholder: "请输入实际米重" },
|
|
|
|
|
|
|
|
rules: [{ required: true, message: "请输入实际米重", trigger: "blur" }]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{ label: "报废支数", name: "scrapNumber", value: "", component: "other", span: 24, options: { maxlength: "256", placeholder: "请输入报废支数" }, rules: [{ required: false, message: "请输入报废支数", trigger: "blur" }] },
|
|
|
|
{ label: "报废支数", name: "scrapNumber", value: "", component: "other", span: 24, options: { maxlength: "256", placeholder: "请输入报废支数" }, rules: [{ required: false, message: "请输入报废支数", trigger: "blur" }] },
|
|
|
|
{ label: "报废原因", name: "scrapReason", value: "", component: "input", span: 24, options: { maxlength: "256", placeholder: "请输入报废原因" }, rules: [{ required: false, message: "请输入报废原因", trigger: "blur" }] },
|
|
|
|
{ label: "报废原因", name: "scrapReason", value: "", component: "input", span: 24, options: { maxlength: "256", placeholder: "请输入报废原因" }, rules: [{ required: false, message: "请输入报废原因", trigger: "blur" }] },
|
|
|
@ -112,10 +167,11 @@ export default {
|
|
|
|
label: "下一工序", name: "nextProcess", value: "", component: "dic", span: 24,
|
|
|
|
label: "下一工序", name: "nextProcess", value: "", component: "dic", span: 24,
|
|
|
|
options: { group: "working", placeholder: "请输入下一工序" },
|
|
|
|
options: { group: "working", placeholder: "请输入下一工序" },
|
|
|
|
rules: [{ required: true, message: "请输入下一工序", trigger: "blur" }],
|
|
|
|
rules: [{ required: true, message: "请输入下一工序", trigger: "blur" }],
|
|
|
|
hideHandle: "$.currentProcess == 'bz'"
|
|
|
|
// hideHandle: "$.currentProcess == 'bz'"
|
|
|
|
|
|
|
|
hideHandle: "$.isCompleted == true"
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
label: "是否完成", name: "isCompleted", value: 1, component: "select",
|
|
|
|
label: "是否完成", name: "isCompleted", value: 0, component: "select",
|
|
|
|
span: 24,
|
|
|
|
span: 24,
|
|
|
|
options: {
|
|
|
|
options: {
|
|
|
|
multiple: false,
|
|
|
|
multiple: false,
|
|
|
@ -131,24 +187,8 @@ export default {
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
rules: [{ required: false, message: "请选择", trigger: "blur" }],
|
|
|
|
rules: [{ required: false, message: "请选择", trigger: "blur" }],
|
|
|
|
hideHandle: "$.currentProcess != 'bz'"
|
|
|
|
// hideHandle: "$.currentProcess != 'bz'"
|
|
|
|
},
|
|
|
|
|
|
|
|
{ label: "备注", name: "remarks", value: "", component: "textarea", span: 24, options: { maxlength: "500", placeholder: "请输入备注" } }
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
finishFormOption: {
|
|
|
|
|
|
|
|
labelWidth: '100px',
|
|
|
|
|
|
|
|
labelPosition: 'center',
|
|
|
|
|
|
|
|
panelWidth: "800",
|
|
|
|
|
|
|
|
size: 'medium',
|
|
|
|
|
|
|
|
formItems: [
|
|
|
|
|
|
|
|
{ label: "完成数量", name: "completionQuantity", value: "", component: "input", span: 24, options: { maxlength: "256", placeholder: "请输入完成数量" }, rules: [{ required: true, message: "请输入完成数量", trigger: "blur" }] },
|
|
|
|
|
|
|
|
{ label: "完成重量", name: "completionWeight", value: "", component: "input", span: 24, options: { maxlength: "256", placeholder: "请输入完成重量" }, rules: [{ required: true, message: "请输入完成重量", trigger: "blur" }] },
|
|
|
|
|
|
|
|
{ label: "报废支数", name: "scrapPieces", value: "", component: "input", span: 24, options: { maxlength: "256", placeholder: "请输入报废支数" }, rules: [{ required: false, message: "请输入报废支数", trigger: "blur" }] },
|
|
|
|
|
|
|
|
{ label: "报废原因", name: "scrapReason", value: "", component: "input", span: 24, options: { maxlength: "256", placeholder: "请输入报废原因" }, rules: [{ required: false, message: "请输入报废原因", trigger: "blur" }] },
|
|
|
|
|
|
|
|
{ label: "框号", name: "frameNumber", value: "", component: "input", span: 24, options: { maxlength: "256", placeholder: "请输入框号" }, rules: [{ required: false, message: "请输入框号", trigger: "blur" }] },
|
|
|
|
|
|
|
|
{ label: "下一工序", name: "nextProcess", value: "", component: "input", span: 24, options: { maxlength: "256", placeholder: "请输入下一工序" }, rules: [{ required: false, message: "请输入下一工序", trigger: "blur" }] },
|
|
|
|
|
|
|
|
{ label: "是否完成", name: "isCompleted", value: "", component: "input", span: 24, options: { maxlength: "256", placeholder: "请输入是否完成" }, rules: [{ required: false, message: "请输入是否完成", trigger: "blur" }] },
|
|
|
|
|
|
|
|
{ label: "备注", name: "remarks", value: "", component: "textarea", span: 24, options: { maxlength: "500", placeholder: "请输入备注" } }
|
|
|
|
{ label: "备注", name: "remarks", value: "", component: "textarea", span: 24, options: { maxlength: "500", placeholder: "请输入备注" } }
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -181,11 +221,11 @@ export default {
|
|
|
|
options: { valueFormat: "YYYY-MM-DD", placeholder: "请选择采购日期" },
|
|
|
|
options: { valueFormat: "YYYY-MM-DD", placeholder: "请选择采购日期" },
|
|
|
|
rules: [{ required: true, message: "请选择采购日期", trigger: "change" }]
|
|
|
|
rules: [{ required: true, message: "请选择采购日期", trigger: "change" }]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
// {
|
|
|
|
label: "当前工序", name: "currentProcess", value: "", component: "dic", span: 6,
|
|
|
|
// label: "当前工序", name: "currentProcess", value: "", component: "dic", span: 6,
|
|
|
|
options: { group: "working" },
|
|
|
|
// options: { group: "working" },
|
|
|
|
rules: [{ required: true, message: "请选择当前工序", trigger: "change" }]
|
|
|
|
// rules: [{ required: true, message: "请选择当前工序", trigger: "change" }]
|
|
|
|
},
|
|
|
|
// },
|
|
|
|
{ label: "备注", name: "remarks", value: "", component: "textarea", span: 24, options: { maxlength: "500", placeholder: "请输入备注" } },
|
|
|
|
{ label: "备注", name: "remarks", value: "", component: "textarea", span: 24, options: { maxlength: "500", placeholder: "请输入备注" } },
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -221,6 +261,13 @@ export default {
|
|
|
|
{ label: "生产支数", prop: "productionPieces", width: "200" },
|
|
|
|
{ label: "生产支数", prop: "productionPieces", width: "200" },
|
|
|
|
{ label: "锯切方式", prop: "sawingMethod", width: "200" },
|
|
|
|
{ label: "锯切方式", prop: "sawingMethod", width: "200" },
|
|
|
|
{ label: "生产理论重量", prop: "productionWeight", width: "200" },
|
|
|
|
{ label: "生产理论重量", prop: "productionWeight", width: "200" },
|
|
|
|
|
|
|
|
{ label: "模具编码", prop: "moldCode", width: "200" },
|
|
|
|
|
|
|
|
{ label: "模具型号", prop: "moldModel", width: "200" },
|
|
|
|
|
|
|
|
{ label: "模厚", prop: "moldThickness", width: "200" },
|
|
|
|
|
|
|
|
{ label: "模具厂家", prop: "moldManufacturer", width: "200" },
|
|
|
|
|
|
|
|
{ label: "颜色", prop: "moldColor", width: "200" },
|
|
|
|
|
|
|
|
{ label: "换模原因", prop: "moldChangeReason", width: "200" },
|
|
|
|
|
|
|
|
{ label: "用棒支数", prop: "rodCount", width: "200" },
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
tableSelect: {
|
|
|
|
tableSelect: {
|
|
|
|