1.采购管理-优化:不是本条数据录入人不可修改数据。表格展示优化、来票操作后,不能再次编辑。未进行开票、来票操作的台账可以进行编辑
| | |
| | | |
| | | /** 分页配置 */ |
| | | const pagination = reactive({ |
| | | pageSize: 10, |
| | | pageSize: 100, |
| | | currentPage: 1, |
| | | pageSizes: [10, 15, 20], |
| | | total: 0, |
| | |
| | | { |
| | | label: "产品大类", |
| | | prop: "productCategory", |
| | | width: 120, |
| | | }, |
| | | { |
| | | label: "规格型号", |
| | | prop: "specificationModel", |
| | | width: 120, |
| | | }, |
| | | { |
| | | label: "单位", |
| | |
| | | { |
| | | label: "供应商名称", |
| | | prop: "supplierName", |
| | | width:200 |
| | | width:300 |
| | | }, |
| | | { |
| | | label: "项目名称", |
| | | prop: "projectName", |
| | | width:150 |
| | | width:400 |
| | | }, |
| | | { |
| | | label: "录入人", |
| | |
| | | { |
| | | label: "客户名称", |
| | | prop: "customerName", |
| | | width: 150, |
| | | width: 240, |
| | | }, |
| | | { |
| | | label: "供应商名称", |
| | |
| | | <el-table-column |
| | | label="项目名称" |
| | | prop="projectName" |
| | | width="100" |
| | | width="420" |
| | | show-overflow-tooltip |
| | | /> |
| | | <el-table-column |
| | |
| | | type="primary" |
| | | size="small" |
| | | @click="openForm('edit', scope.row)" |
| | | :disabled="scope.row.receiptPaymentAmount>0 || scope.row.recorderName !== userStore.nickName" |
| | | >编辑</el-button |
| | | > |
| | | </template> |
| | |
| | | <el-table-column label="规格型号" prop="specificationModel" /> |
| | | <el-table-column label="单位" prop="unit" width="70" /> |
| | | <el-table-column label="数量" prop="quantity" width="70" /> |
| | | <el-table-column label="税率(%)" prop="taxRate" width="70" /> |
| | | <el-table-column label="税率(%)" prop="taxRate" width="80" /> |
| | | <el-table-column |
| | | label="含税单价(元)" |
| | | prop="taxInclusiveUnitPrice" |
| | |
| | | const handleDelete = () => { |
| | | let ids = []; |
| | | if (selectedRows.value.length > 0) { |
| | | // 检查是否有他人维护的数据 |
| | | const unauthorizedData = selectedRows.value.filter(item => item.recorderName !== userStore.nickName); |
| | | if (unauthorizedData.length > 0) { |
| | | proxy.$modal.msgWarning("不可删除他人维护的数据"); |
| | | return; |
| | | } |
| | | ids = selectedRows.value.map((item) => item.id); |
| | | } else { |
| | | proxy.$modal.msgWarning("请选择数据"); |