chenlu
4 天以前 ed381604d4cb6b186ed4bacb9eceb4908b857de2
north-glass-erp/northglass-erp/src/components/sd/order/OrderProcess.vue
@@ -23,8 +23,8 @@
  printConfig: {},
  importConfig: {},
  exportConfig: {},
  scrollY:{ enabled: true,gt:13 },//开启虚拟滚动
  scrollX:{ enabled: true,gt:15 },//开启虚拟滚动
  // scrollY:{ enabled: true,gt:13 },//开启虚拟滚动
  // scrollX:{ enabled: true,gt:15 },//开启虚拟滚动
  filterConfig: {   //筛选配置项
    // remote: true
  },
@@ -97,7 +97,8 @@
let props = defineProps({
  orderId:null,
  row: {}
  row: {},
  processId:null//用于后端数据返回,结果筛选
})
const columns = [
  {field: 'order_number',fixed:"left", width: 90,title: t('order.OrderNum'),showOverflow:"ellipsis",filters:[{ data: '' }],slots: { filter: 'num1_filter' }},
@@ -266,6 +267,16 @@
const changeZoom = ()=> {
  showTitle.value = !showTitle.value
}
const rowStyle = ({ row,rowIndex  }) => {
    if(row.termination_status==1){
      return {
        backgroundColor: 'rgb(186 188 192)'
      }
    }
}
</script>
<template>
@@ -279,6 +290,7 @@
        ref="xGrid"
        v-bind="gridOptions"
        v-on="gridEvents"
        :row-style="rowStyle"
    >
      <template #num1_filter="{ column, $panel }">
        <div>
@@ -303,7 +315,9 @@
      <template #title>
        <span style="font-weight: bold" v-show="showTitle">
          {{ row.orderId }}
          {{ row.project?'--':'' }}
          {{ row.customerName?'--':'' }}
          {{ row.customerName}}
          {{row.project?'--':'' }}
          {{row.project}}
          {{ row.batch?'--':'' }}
          {{row.batch}}