| | |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" |
| | | @click="handleQuery">搜索</el-button> |
| | | @click="handleQuery">搜索 |
| | | </el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | <div> |
| | |
| | | bindingRoute, |
| | | delProductOrder, |
| | | saveProductionProductInput, |
| | | viewGetByProductWordId |
| | | viewGetByProductWordId, |
| | | exportProductInventory |
| | | } from "@/api/productionManagement/productionOrder.js"; |
| | | import { listMain as getOrderProcessRouteMain } from "@/api/productionManagement/productProcessRoute.js"; |
| | | import PIMTable from "@/components/PIMTable/PIMTable.vue"; |
| | | import BindRouteDialog from "./BindRouteDialog.vue"; |
| | | |
| | | const NewProductOrder = defineAsyncComponent(() => import("@/views/productionManagement/productionOrder/New.vue")); |
| | | |
| | | const { proxy } = getCurrentInstance(); |
| | |
| | | clickFun: row => { |
| | | showProductStructure(row); |
| | | }, |
| | | }, |
| | | { |
| | | name: "导出定印单", |
| | | type: "text", |
| | | clickFun: row => { |
| | | exportThePrintingJobOrder(row); |
| | | }, |
| | | disabled: row => !row.printId, |
| | | }, |
| | | ], |
| | | }, |
| | |
| | | } |
| | | }; |
| | | |
| | | const exportThePrintingJobOrder = async (row) => { |
| | | const res = await exportProductInventory(row.id) |
| | | const blob = new Blob([res]) |
| | | const url = window.URL.createObjectURL(blob) |
| | | const link = document.createElement("a") |
| | | link.href = url |
| | | link.download = row.customerName + "-" + row.salesContractNo + "-" + "工艺路线.xlsx" |
| | | link.click() |
| | | window.URL.revokeObjectURL(url) |
| | | } |
| | | |
| | | const showProductStructure = row => { |
| | | router.push({ |
| | | path: "/productionManagement/productStructureDetail", |
| | |
| | | |
| | | <style scoped lang="scss"> |
| | | .search_form{ |
| | | align-items: start; |
| | | align-items: flex-start; // ⭐ start → flex-start 更标准 |
| | | } |
| | | |
| | | ::v-deep .yellow { |
| | | background-color: #FAF0DE; |
| | | :deep(.yellow) { |
| | | background-color: #faf0de; |
| | | } |
| | | |
| | | ::v-deep .pink { |
| | | background-color: #FAE1DE; |
| | | :deep(.pink) { |
| | | background-color: #fae1de; |
| | | } |
| | | |
| | | ::v-deep .red { |
| | | :deep(.red) { |
| | | background-color: #ffe5e5; |
| | | } |
| | | |
| | | ::v-deep .purple{ |
| | | background-color: #F4DEFA; |
| | | :deep(.purple) { |
| | | background-color: #f4defa; |
| | | } |
| | | |
| | | /* 描述组件 */ |
| | | :deep(.fixed-desc .el-descriptions__table) { |
| | | table-layout: fixed; |
| | | width: 100%; |