|
|
|
|
@ -12,6 +12,10 @@
|
|
|
|
|
:mode="false"
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<div v-if="form.projectPurchaseId" class="flex justify-end mb-4">
|
|
|
|
|
<el-button type="warning" icon="Download" @click="handleExportSingle">导出采购明细</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<el-card shadow="never" class="mb-4">
|
|
|
|
|
<el-form ref="projectPurchaseFormRef" :model="form" :rules="rules" label-width="120px" :disabled="isReadOnly">
|
|
|
|
|
<el-row :gutter="20">
|
|
|
|
|
@ -137,7 +141,7 @@
|
|
|
|
|
<el-table-column label="备注" prop="remark" min-width="160" show-overflow-tooltip align="center" />
|
|
|
|
|
<el-table-column label="操作" fixed="right" width="150" align="center" v-if="canEditMaterial">
|
|
|
|
|
<template #default="scope">
|
|
|
|
|
<!-- <el-button link type="warning" @click="splitMaterial(scope.row)">拆分</el-button>-->
|
|
|
|
|
<!-- <el-button link type="warning" @click="splitMaterial(scope.row)">拆分</el-button>-->
|
|
|
|
|
<el-button link type="primary" @click="handleEditMaterial(scope.row)">编辑</el-button>
|
|
|
|
|
<el-button link type="danger" @click="handleDeleteMaterial(scope.row)">删除</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
@ -220,11 +224,7 @@
|
|
|
|
|
<el-form-item label="采购物料编码" prop="materialCode">
|
|
|
|
|
<el-input v-model="materialForm.materialCode" placeholder="请选择采购标准物料" readonly>
|
|
|
|
|
<template #suffix>
|
|
|
|
|
<el-icon
|
|
|
|
|
style="cursor: pointer"
|
|
|
|
|
:disabled="!canEditMaterial"
|
|
|
|
|
@click="openMaterialSelect"
|
|
|
|
|
>
|
|
|
|
|
<el-icon style="cursor: pointer" :disabled="!canEditMaterial" @click="openMaterialSelect">
|
|
|
|
|
<Search />
|
|
|
|
|
</el-icon>
|
|
|
|
|
</template>
|
|
|
|
|
@ -255,13 +255,7 @@
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="需采购数量" prop="needPurchaseAmount">
|
|
|
|
|
<el-input-number
|
|
|
|
|
v-model="materialForm.needPurchaseAmount"
|
|
|
|
|
:min="0"
|
|
|
|
|
class="w-full"
|
|
|
|
|
placeholder="请输入数量"
|
|
|
|
|
:precision="2"
|
|
|
|
|
/>
|
|
|
|
|
<el-input-number v-model="materialForm.needPurchaseAmount" :min="0" class="w-full" placeholder="请输入数量" :precision="2" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
@ -796,6 +790,14 @@ const projectInfoSelectCallBack = (data: ProjectInfoVO[]) => {
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const handleExportSingle = () => {
|
|
|
|
|
proxy?.download(
|
|
|
|
|
`oa/erp/projectPurchase/exportSingle/${form.value.projectPurchaseId}`,
|
|
|
|
|
{},
|
|
|
|
|
`projectPurchase_${form.value.projectCode}_${new Date().getTime()}.xlsx`
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 初始化调用
|
|
|
|
|
const loadSelectOptions = () => {
|
|
|
|
|
getUserList();
|
|
|
|
|
|