| | |
| | | <el-form :model="searchForm" :inline="true"> |
| | | <el-form-item label="客户名称:"> |
| | | <el-input v-model="searchForm.customerName" placeholder="请输入" clearable prefix-icon="Search" |
| | | style="width: 200px;" |
| | | @change="handleQuery" /> |
| | | </el-form-item> |
| | | <el-form-item label="项目名称:"> |
| | | <el-input v-model="searchForm.projectName" placeholder="请输入" clearable prefix-icon="Search" |
| | | style="width: 200px;" |
| | | @change="handleQuery" /> |
| | | </el-form-item> |
| | | <el-form-item label="排产日期:"> |
| | |
| | | <div class="table_list"> |
| | | <div style="text-align: right" class="mb10"> |
| | | <el-button type="primary" @click="openForm('add')">生产报工</el-button> |
| | | <el-button @click="handleOut">导出</el-button> |
| | | </div> |
| | | <PIMTable |
| | | rowKey="id" |
| | |
| | | type="index" |
| | | width="60" |
| | | /> |
| | | <el-table-column label="本次生产数量" prop="finishedNum" align="center"> |
| | | <el-table-column label="本次生产数量" prop="finishedNum" align="center" width="400"> |
| | | <template #default="scope"> |
| | | <el-input-number :step="0.01" :min="0" style="width: 100%" |
| | | v-model="scope.row.finishedNum" |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <!-- <el-table-column label="待生产数量" prop="pendingNum" width="240" align="center"></el-table-column>--> |
| | | <el-table-column label="生产人" prop="schedulingUserId" width="240"> |
| | | <el-table-column label="生产人" prop="schedulingUserId" width="400"> |
| | | <template #default="scope"> |
| | | <el-select |
| | | v-model="scope.row.schedulingUserId" |
| | |
| | | </el-select> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="生产日期" prop="schedulingDate" width="240"> |
| | | <el-table-column label="生产日期" prop="schedulingDate" width="400"> |
| | | <template #default="scope"> |
| | | <el-date-picker |
| | | v-model="scope.row.schedulingDate" |
| | |
| | | |
| | | const data = reactive({ |
| | | searchForm: { |
| | | staffName: "", |
| | | entryDate: [ |
| | | dayjs().format("YYYY-MM-DD"), |
| | | dayjs().add(1, "day").format("YYYY-MM-DD"), |
| | | ], // 录入日期 |
| | | customerName: "", |
| | | projectName: "", |
| | | status: "", |
| | | entryDate: [dayjs().format("YYYY-MM-DD"), dayjs().format("YYYY-MM-DD")], // 录入日期,默认当天 |
| | | entryDateStart: dayjs().format("YYYY-MM-DD"), |
| | | entryDateEnd: dayjs().add(1, "day").format("YYYY-MM-DD"), |
| | | entryDateEnd: dayjs().format("YYYY-MM-DD"), |
| | | }, |
| | | }); |
| | | const { searchForm } = toRefs(data); |
| | |
| | | prop: "specificationModel", |
| | | width: 150, |
| | | }, |
| | | // { |
| | | // label: "绑定机器", |
| | | // prop: "speculativeTradingName", |
| | | // width: 220, |
| | | // }, |
| | | { |
| | | label: "单位", |
| | | prop: "unit", |
| | |
| | | label: "工序", |
| | | prop: "process", |
| | | }, |
| | | // { |
| | | // label: "口味分类", |
| | | // prop: "type", |
| | | // width: 150, |
| | | // }, |
| | | // { |
| | | // label: "损耗", |
| | | // prop: "loss", |
| | | // width: 150, |
| | | // }, |
| | | { |
| | | label: "排产数量", |
| | | prop: "schedulingNum", |
| | |
| | | label: "待生产数量", |
| | | prop: "pendingFinishNum", |
| | | width: 100, |
| | | }, |
| | | { |
| | | label: "备注", |
| | | prop: "remark", |
| | | width: 200, |
| | | }, |
| | | ]); |
| | | const tableData = ref([]); |
| | |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | proxy.download("/staff/staffJoinLeaveRecord/export", {staffState: 1}, "人员入职.xlsx"); |
| | | proxy.download("/salesLedger/work/export", {}, "生产报工.xlsx"); |
| | | }) |
| | | .catch(() => { |
| | | proxy.$modal.msg("已取消"); |