1.海川开心-新增里面工序固定为包装,单位以及规格写死。新增以及页面加入产线字段(下拉选择,一共4条产线,命名写死为包装产线1.2.3.4这种。)派工人,排产人都改为孙倩
已修改1个文件
28 ■■■■■ 文件已修改
src/views/productionManagement/operationScheduling/components/formDia.vue 28 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionManagement/operationScheduling/components/formDia.vue
@@ -24,6 +24,23 @@
                        <el-input v-model="scope.row.process" placeholder="请输入工序" />
          </template>
        </el-table-column>
        <el-table-column label="产线" prop="productionLine" width="150">
          <template #default="scope">
            <el-select
              v-model="scope.row.productionLine"
              placeholder="选择产线"
              style="width: 100%;"
              clearable
            >
              <el-option
                v-for="line in productionLines"
                :key="line.value"
                :label="line.label"
                :value="line.value"
              />
            </el-select>
          </template>
        </el-table-column>
        <el-table-column label="单位" prop="unit" width="90">
          <template #default="scope">
            <el-input v-model="scope.row.unit" placeholder="请输入单位" />
@@ -123,6 +140,13 @@
const userList = ref([])
const receive = ref('')
const sunqianUserId = ref('')
// 产线选项
const productionLines = ref([
  { label: '产线1', value: '产线1' },
  { label: '产线2', value: '产线2' },
  { label: '产线3', value: '产线3' },
  { label: '产线4', value: '产线4' }
])
// 打开弹框
const openDialog = (type, row) => {
@@ -155,6 +179,7 @@
    unit: unitFromRow.value,
    remark: '',
    type: specificationModelFromRow.value,
    productionLine: '', // 产线字段
});
const submitForm = () => {
@@ -167,7 +192,8 @@
            row.schedulingNum === '' || row.schedulingNum === null ||
            !row.schedulingUserId ||
            row.workHours === '' || row.workHours === null ||
            !row.unit
            !row.unit ||
            !row.productionLine
        ) {
            proxy.$modal.msgError(`第${i + 1}行数据未填写完整`);
            return;