| | |
| | | { |
| | | "default": { |
| | | "env": { |
| | | "VITE_APP_TITLE": "阳光彩印信息管理" |
| | | "VITE_APP_TITLE": "阳光印刷信息管理" |
| | | }, |
| | | "screen": "screen/PCDZView.png", |
| | | "logo": "logo/PCDZLogo.png", |
| | |
| | | "logo": "logo/1773911812157.png", |
| | | "favicon": "favicon/favicon.ico" |
| | | }, |
| | | "YGCY": { |
| | | "YGYS": { |
| | | "env": { |
| | | "VITE_APP_TITLE": "阳光彩印信息管理", |
| | | "VITE_BASE_API": "http://1.15.17.182:9003", |
| | | "VITE_JAVA_API": "http://1.15.17.182:9006" |
| | | "VITE_APP_TITLE": "阳光印刷信息管理", |
| | | "VITE_BASE_API": "http://1.15.17.182:9022", |
| | | "VITE_JAVA_API": "http://1.15.17.182:9022" |
| | | }, |
| | | "screen": "screen/login-background.png", |
| | | "logo": "logo/PCDZLogo.png", |
| | |
| | | <div class="print-page"> |
| | | <div class="delivery-note"> |
| | | <div class="header"> |
| | | <div class="company-name">鼎诚瑞实业有限责任公司</div> |
| | | <div class="company-name">阳光印刷有限责任公司</div> |
| | | <div class="document-title">零售发货单</div> |
| | | </div> |
| | | |
| | |
| | | </template> |
| | | |
| | | <script setup> |
| | | import { onMounted, ref, reactive, toRefs, getCurrentInstance } from "vue"; |
| | | import { onMounted, ref, reactive, toRefs, getCurrentInstance, computed } from "vue"; |
| | | import NewProcess from "@/views/productionManagement/productionProcess/New.vue"; |
| | | import EditProcess from "@/views/productionManagement/productionProcess/Edit.vue"; |
| | | import ImportDialog from "@/components/Dialog/ImportDialog.vue"; |
| | |
| | | downloadTemplate, |
| | | } from "@/api/productionManagement/productionProcess.js"; |
| | | import { getToken } from "@/utils/auth"; |
| | | import { getDeviceLedger } from "@/api/equipmentManagement/ledger"; |
| | | |
| | | const data = reactive({ |
| | | searchForm: { |
| | |
| | | prop: "name", |
| | | }, |
| | | { |
| | | label: "工序机台", |
| | | prop: "deviceName", |
| | | }, |
| | | { |
| | | label: "工序类型", |
| | | prop: "typeText", |
| | | }, |
| | | { |
| | | label: "工资定额", |
| | | prop: "salaryQuota", |
| | | }, |
| | | { |
| | | label: "工序", |
| | | prop: "process", |
| | | }, |
| | | { |
| | | label: "是否质检", |
| | |
| | | ]); |
| | | const tableData = ref([]); |
| | | const selectedRows = ref([]); |
| | | const deviceList = ref([]); |
| | | const deviceNameMap = computed(() => { |
| | | const map = new Map(); |
| | | (deviceList.value || []).forEach((d) => { |
| | | if (d?.id == null) return; |
| | | map.set(d.id, d.deviceName ?? ""); |
| | | }); |
| | | return map; |
| | | }); |
| | | const tableLoading = ref(false); |
| | | const isShowNewModal = ref(false); |
| | | const isShowEditModal = ref(false); |
| | |
| | | total: 0, |
| | | }); |
| | | const { proxy } = getCurrentInstance(); |
| | | |
| | | const loadDeviceList = async () => { |
| | | try { |
| | | const res = await getDeviceLedger(); |
| | | deviceList.value = Array.isArray(res?.data) ? res.data : []; |
| | | } catch (e) { |
| | | deviceList.value = []; |
| | | } |
| | | }; |
| | | |
| | | // 导入相关配置 |
| | | const importAction = |
| | |
| | | listPage(params) |
| | | .then(res => { |
| | | tableLoading.value = false; |
| | | tableData.value = res.data.records.map(item => ({ |
| | | ...item, |
| | | typeText: item.type !== undefined && item.type !== null ? (item.type === 0 ? "计时" : "计件") : "", |
| | | })); |
| | | const records = Array.isArray(res?.data?.records) ? res.data.records : []; |
| | | const map = deviceNameMap.value; |
| | | tableData.value = records.map(item => { |
| | | const deviceName = item?.deviceName ?? map.get(item?.deviceId) ?? ""; |
| | | return { |
| | | ...item, |
| | | deviceName, |
| | | typeText: item.type !== undefined && item.type !== null ? (item.type === 0 ? "计时" : "计件") : "", |
| | | }; |
| | | }); |
| | | page.total = res.data.total; |
| | | }) |
| | | .catch(err => { |
| | |
| | | importDialogRef.value.submit(); |
| | | } |
| | | }; |
| | | |
| | | // 导入成功 |
| | | const handleImportSuccess = response => { |
| | | if (response.code === 200) { |
| | |
| | | // }; |
| | | |
| | | onMounted(() => { |
| | | getList(); |
| | | loadDeviceList().finally(() => { |
| | | getList(); |
| | | }); |
| | | }); |
| | | </script> |
| | | |
| | |
| | | productAudit(auditData) |
| | | .then(res => { |
| | | if (res.code === 200) { |
| | | proxy.$modal.msgSuccess(auditResult === 1 ? "审核通过" : "审核不通过"); |
| | | if(form.value.auditResult == 1){ |
| | | proxy.$modal.msgSuccess("审核通过"); |
| | | }else{ |
| | | proxy.$modal.msgError("审核不通过"); |
| | | } |
| | | auditDialogVisible.value = false; |
| | | getList(); |
| | | } else { |
| | |
| | | clickFun: row => { |
| | | handleEdit(row); |
| | | }, |
| | | // 当需求数量等于完成数量的时候,按钮不可点击 |
| | | disabled: row => Number(row?.planQuantity) === Number(row?.completeQuantity), |
| | | }, |
| | | { |
| | | name: "流转卡", |
| | |
| | | clickFun: row => { |
| | | showReportDialog(row); |
| | | }, |
| | | disabled: row => row.planQuantity <= 0, |
| | | disabled: row => Number(row?.planQuantity) <= Number(row?.completeQuantity) || row.planQuantity <= 0, |
| | | }, |
| | | // { |
| | | // name:"审核", |
| | |
| | | |
| | | const showReportDialog = row => { |
| | | currentReportRowData.value = row; |
| | | reportForm.planQuantity = row.planQuantity; |
| | | reportForm.planQuantity = row.planQuantity - row.completeQuantity; |
| | | reportForm.quantity = |
| | | row.quantity !== undefined && row.quantity !== null ? row.quantity : null; |
| | | reportForm.productProcessRouteItemId = row.productProcessRouteItemId; |
| | |
| | | <div v-for="(item, index) in printData" :key="index" class="print-page"> |
| | | <div class="delivery-note"> |
| | | <div class="header"> |
| | | <div class="company-name">鼎诚瑞实业有限责任公司</div> |
| | | <div class="company-name">阳光印刷有限责任公司</div> |
| | | <div class="document-title">零售发货单</div> |
| | | </div> |
| | | |
| | |
| | | <div class="print-page"> |
| | | <div class="delivery-note"> |
| | | <div class="header"> |
| | | <div class="company-name">鼎诚瑞实业有限责任公司</div> |
| | | <div class="company-name">阳光彩印有限责任公司</div> |
| | | <div class="document-title">零售发货单</div> |
| | | </div> |
| | | |
| | |
| | | const { VITE_APP_ENV } = env; |
| | | const baseUrl = |
| | | env.VITE_APP_ENV === "development" |
| | | ? "http://1.15.17.182:9003" |
| | | ? "http://1.15.17.182:9023" |
| | | : env.VITE_BASE_API; |
| | | const javaUrl = |
| | | env.VITE_APP_ENV === "development" |