|
@@ -48,7 +48,8 @@
|
|
|
:prop="column.prop"
|
|
:prop="column.prop"
|
|
|
:label="column.label"
|
|
:label="column.label"
|
|
|
:width="column.width"
|
|
:width="column.width"
|
|
|
- :sortable= "column.sortable"
|
|
|
|
|
|
|
+ :sortable= "column.sortable"
|
|
|
|
|
+ :formatter="column.prop === '订单数量' ? formatOrderQuantity : null"
|
|
|
/>
|
|
/>
|
|
|
</el-table>
|
|
</el-table>
|
|
|
|
|
|
|
@@ -83,23 +84,23 @@ const props = defineProps(['modelValue', 'val'])
|
|
|
const emits = defineEmits(['update:modelValue'])
|
|
const emits = defineEmits(['update:modelValue'])
|
|
|
|
|
|
|
|
const tableColumns = reactive([
|
|
const tableColumns = reactive([
|
|
|
- { label: '工单编号',sortable: 'sortable', prop: 'gdbh', width: '150' },
|
|
|
|
|
- { label: '产品代号',sortable: 'sortable', prop: 'product_code', width: '150' },
|
|
|
|
|
- { label: '产品名称',sortable: 'sortable', prop: 'product_name', width: '150' },
|
|
|
|
|
- { label: '订单数量',sortable: 'sortable', prop: '订单数量', width: '150' },
|
|
|
|
|
- { label: '实际投料',sortable: 'sortable', prop: 'aaa', width: '150' },
|
|
|
|
|
- { label: '计量单位',sortable: 'sortable', prop: '计量单位', width: '150' },
|
|
|
|
|
- { label: '交货日期',sortable: 'sortable', prop: '交货日期', width: '150' },
|
|
|
|
|
- { label: '入仓数量',sortable: 'sortable', prop: 'jjcp_sl', width: '150' },
|
|
|
|
|
- { label: '入仓日期',sortable: 'sortable', prop: 'jjcp_sj', width: '150' },
|
|
|
|
|
- { label: '印件号',sortable: 'sortable', prop: 'qczl_yjno', width: '150' },
|
|
|
|
|
- { label: '联数',sortable: 'sortable', prop: 'yj_ls', width: '150' },
|
|
|
|
|
- { label: '工序号',sortable: 'sortable', prop: 'fp_gxh', width: '150' },
|
|
|
|
|
- { label: '流程单号', sortable: 'sortable',prop: 'qczl_num', width: '150' },
|
|
|
|
|
- { label: '员工编号',sortable: 'sortable', prop: 'fp_bh', width: '150' },
|
|
|
|
|
- { label: '员工姓名',sortable: 'sortable', prop: 'fp_name', width: '150' },
|
|
|
|
|
- { label: '废品类别',sortable: 'sortable', prop: 'fp_lb', width: '150' },
|
|
|
|
|
- { label: '数量',sortable: 'sortable', prop: 'fp_sl', width: '150' },
|
|
|
|
|
|
|
+ { label: '工单编号',sortable: 'sortable', prop: 'gdbh', width: '110' },
|
|
|
|
|
+ { label: '产品代号', prop: 'product_code', width: '110' },
|
|
|
|
|
+ { label: '产品名称', prop: 'product_name', width: '190' },
|
|
|
|
|
+ { label: '订单数量',sortable: 'sortable', prop: '订单数量', width: '110' },
|
|
|
|
|
+ { label: '实际投料',sortable: 'sortable', prop: 'aaa', width: '110' },
|
|
|
|
|
+ { label: '计量单位', prop: '计量单位', width: '90' },
|
|
|
|
|
+ { label: '交货日期',sortable: 'sortable', prop: '交货日期', width: '110' },
|
|
|
|
|
+ { label: '入仓数量',sortable: 'sortable', prop: 'jjcp_sl', width: '110' },
|
|
|
|
|
+ { label: '入仓日期',sortable: 'sortable', prop: 'jjcp_sj', width: '110' },
|
|
|
|
|
+ { label: '印件号',sortable: 'sortable', prop: 'qczl_yjno', width: '100' },
|
|
|
|
|
+ { label: '联数', prop: 'yj_ls', width: '55' },
|
|
|
|
|
+ { label: '工序号',sortable: 'sortable', prop: 'fp_gxh', width: '100' },
|
|
|
|
|
+ { label: '流程单号', sortable: 'sortable',prop: 'qczl_num', width: '110' },
|
|
|
|
|
+ { label: '员工编号',sortable: 'sortable', prop: 'fp_bh', width: '110' },
|
|
|
|
|
+ { label: '员工姓名', prop: 'fp_name', width: '90' },
|
|
|
|
|
+ { label: '废品类别',sortable: 'sortable', prop: 'fp_lb', width: '110' },
|
|
|
|
|
+ { label: '数量',sortable: 'sortable', prop: 'fp_sl', width: '80' },
|
|
|
])
|
|
])
|
|
|
const tableData = ref([])
|
|
const tableData = ref([])
|
|
|
const input = ref(props.val)
|
|
const input = ref(props.val)
|
|
@@ -107,6 +108,11 @@ const inputCpmc = ref('')
|
|
|
const isLoading = ref(false)
|
|
const isLoading = ref(false)
|
|
|
console.log(input.value)
|
|
console.log(input.value)
|
|
|
|
|
|
|
|
|
|
+//保留小数点后两位
|
|
|
|
|
+function formatOrderQuantity(row, column, cellValue) {
|
|
|
|
|
+ return parseFloat(cellValue).toFixed(2);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
const handleExcel = () => {
|
|
const handleExcel = () => {
|
|
|
const el = document.getElementById('tab');
|
|
const el = document.getElementById('tab');
|
|
|
// 文件名
|
|
// 文件名
|