更改导入,新增需求时间,目前默认不新增

This commit is contained in:
bo.wu@finesys.com.cn 2025-06-26 19:48:24 +08:00
parent 152d78fa1f
commit 02c3d6d7eb

23
src/layout/kateOrdersTable.vue Normal file → Executable file
View File

@ -38,10 +38,11 @@
<el-table-column prop="sortString" label="SortStrng" min-width="120px" /> <el-table-column prop="sortString" label="SortStrng" min-width="120px" />
<el-table-column prop="requirementQuantity" label="需求数量" sortable min-width="120px" /> <el-table-column prop="requirementQuantity" label="需求数量" sortable min-width="120px" />
<el-table-column prop="goodsUnit" label="单位" min-width="120px" /> <el-table-column prop="goodsUnit" label="单位" min-width="120px" />
<el-table-column v-if="isAddReqmtDate" prop="planStartDate" label="开工时间" min-width="120px" />
<el-table-column prop="orderStatus" label="状态" min-width="120px" /> <el-table-column prop="orderStatus" label="状态" min-width="120px" />
<el-table-column prop="lackQuantity" label="缺少数量" min-width="120px" /> <el-table-column prop="lackQuantity" label="缺少数量" min-width="120px" />
<el-table-column prop="pickedQuantity" label="已拣数量" min-width="120px" /> <el-table-column prop="pickedQuantity" label="已拣数量" min-width="120px" />
<el-table-column prop="finishTime" label="完成时间" :formatter="timeFormat" min-width="120px" show-overflow-tooltip /> <el-table-column prop="finishTime" label="计划完成时间" :formatter="timeFormat" min-width="120px" show-overflow-tooltip />
<el-table-column prop="userName" label="操作人员" min-width="120px" /> <el-table-column prop="userName" label="操作人员" min-width="120px" />
<el-table-column fixed="right" label="操作" width="240px"> <el-table-column fixed="right" label="操作" width="240px">
<template v-slot="scope"> <template v-slot="scope">
@ -112,6 +113,19 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row v-if="isAddReqmtDate" :gutter="16">
<el-col :span="12" :offset="0">
<el-form-item label="计划开工时间" prop="planStartDate">
<el-date-picker
v-model="ordersFormEntity.planStartDate"
type="date"
placeholder="选择日期"
style="width: 100%;"
value-format="YYYY-MM-DD"
/>
</el-form-item>
</el-col>
</el-row>
</el-form> </el-form>
</div> </div>
<template #footer> <template #footer>
@ -190,7 +204,8 @@ export default {
ordersFormEntity: reactive({}), ordersFormEntity: reactive({}),
labelPosition: 'top', labelPosition: 'top',
ordersFormRef: ref(), ordersFormRef: ref(),
rules: reactive({}) rules: reactive({}),
isAddReqmtDate: false
} }
}, },
mounted() { mounted() {
@ -243,7 +258,8 @@ export default {
requirementQuantity: row.requirementQuantity, requirementQuantity: row.requirementQuantity,
orderStatus: row.orderStatus, orderStatus: row.orderStatus,
lackQuantity: row.lackQuantity, lackQuantity: row.lackQuantity,
pickedQuantity: row.pickedQuantity pickedQuantity: row.pickedQuantity,
planStartDate: row.planStartDate
} }
this.dialogVisible = true this.dialogVisible = true
}, },
@ -287,6 +303,7 @@ export default {
orderStatus: formData.orderStatus, orderStatus: formData.orderStatus,
lackQuantity: formData.lackQuantity, lackQuantity: formData.lackQuantity,
pickedQuantity: formData.pickedQuantity, pickedQuantity: formData.pickedQuantity,
planStartDate: formData.planStartDate,
userName: store.getters.getUserName userName: store.getters.getUserName
} }
updateOrders(params).then(res => { updateOrders(params).then(res => {