gaoluyang
6 天以前 52cb1a8a22e92ce5b8af50deb93fe7441fa350cd
1.海川开心-工序排产的时候添加一个产线字段
已修改2个文件
13 ■■■■■ 文件已修改
src/views/productionManagement/operationScheduling/components/formDia.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionManagement/operationScheduling/index.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionManagement/operationScheduling/components/formDia.vue
@@ -164,12 +164,12 @@
        if (sunqianUser) {
            sunqianUserId.value = sunqianUser.userId;
        }
        // 在用户列表加载完成后创建行数据
        tableData.value = [createRow()];
        // 在用户列表加载完成后创建行数据,并将产线数据带入
        tableData.value = [createRow(row)];
    });
}
const createRow = () => ({
const createRow = (row) => ({
    id: idFromRow.value,
    process: '包装',
    schedulingDate: '',
@@ -179,7 +179,7 @@
    unit: unitFromRow.value,
    remark: '',
    type: specificationModelFromRow.value,
    productionLine: '', // 产线字段
    productionLine: row?.productionLine ?? '', // 从行数据中获取产线信息
});
const submitForm = () => {
src/views/productionManagement/operationScheduling/index.vue
@@ -143,6 +143,11 @@
        width: 220,
    },
    {
        label: "产线",
        prop: "productionLine",
        width: 220,
    },
    {
        label: "单位",
        prop: "unit",
    },