old mode 100644
new mode 100755
| | |
| | | const { download } = useDownload(); |
| | | const { hasAuth } = useAuth(); |
| | | |
| | | |
| | | |
| | | const selectedRollerDetailList = ref<any[]>([]); |
| | | const selectedPackerDetailList = ref<any[]>([]); |
| | | |
| | |
| | | render: row => { |
| | | const box = calcRollerBox((row as any).rollerOutput); |
| | | if (box === null || box <= 0) return '-'; |
| | | const jobinput = Number((row as any).jobinput); |
| | | const weight = Number((row as any).weight); |
| | | const diff = jobinput - weight; |
| | | if (!Number.isFinite(diff)) return '-'; |
| | | const val = diff / box; |
| | | if (!Number.isFinite(weight)) return '-'; |
| | | const val = weight / box; |
| | | if (!Number.isFinite(val)) return '-'; |
| | | return val.toFixed(2); |
| | | } |
| | |
| | | render: row => { |
| | | const box = calcPackerBox((row as any).packerOutput); |
| | | if (box === null || box <= 0) return '-'; |
| | | const jobinput = Number((row as any).jobinput); |
| | | const weight = Number((row as any).weight); |
| | | const diff = jobinput - weight; |
| | | if (!Number.isFinite(diff)) return '-'; |
| | | const val = diff / box; |
| | | if (!Number.isFinite(weight)) return '-'; |
| | | const val = weight / box; |
| | | if (!Number.isFinite(val)) return '-'; |
| | | return val.toFixed(2); |
| | | } |
| | |
| | | if (!Number.isFinite(v)) return null; |
| | | return v; |
| | | } |
| | | |
| | | function calcPackerBox(val: unknown) { |
| | | if (val === null || val === undefined) return null; |
| | | const v = Number(val) / 10 / 250; |
| | |
| | | @refresh="getData" |
| | | > |
| | | <template #prefix> |
| | | <NButton |
| | | size="small" |
| | | ghost |
| | | :type="showSankey ? 'primary' : 'default'" |
| | | @click="showSankey = !showSankey" |
| | | > |
| | | <NButton size="small" ghost :type="showSankey ? 'primary' : 'default'" @click="showSankey = !showSankey"> |
| | | {{ showSankey ? '列表' : '桑基图' }} |
| | | </NButton> |
| | | </template> |