Browse Source

代码上传

zhangqiOMG 2 years ago
parent
commit
b9e1d67d0a

+ 8 - 1
src/DRP/SDrpManagement/dispatchAgent/detail/index.vue

@@ -2,7 +2,7 @@
   <div>
   <div>
     <detail-template :headData="mainAreaData" :title="'发货单号:' + mainData.billno" :tabs="['发货明细']" size="small" :hideBorder="false" ownertable="sa_dispatch">
     <detail-template :headData="mainAreaData" :title="'发货单号:' + mainData.billno" :tabs="['发货明细']" size="small" :hideBorder="false" ownertable="sa_dispatch">
       <template #tab0>
       <template #tab0>
-        <prod-temp ref="prod" :columns="columns" :param="{id:20221115104703,content:{sa_dispatchid:router.currentRoute.value.query.id,pageNumber:1,pageSize:20,where:{condition:search}}}" size="small" :hideBorder="false">
+        <prod-temp :tableRowStyle="formatter" ref="prod" :columns="columns" :param="{id:20221115104703,content:{sa_dispatchid:router.currentRoute.value.query.id,pageNumber:1,pageSize:20,where:{condition:search}}}" size="small" :hideBorder="false">
           <template #operation>
           <template #operation>
             <a-input class="search-input" v-model:value="search" @keyup.enter="prod.listData()" placeholder="搜索产品"></a-input>
             <a-input class="search-input" v-model:value="search" @keyup.enter="prod.listData()" placeholder="搜索产品"></a-input>
           </template>
           </template>
@@ -34,6 +34,13 @@ const mainData = ref({})
 const mainAreaData = ref([])
 const mainAreaData = ref([])
 const search = ref('')
 const search = ref('')
 const prod = ref()
 const prod = ref()
+const formatter = (_record, index) => {
+  if (_record.isreport > 0) {
+    return 'table-striped-red'
+  } else {
+    return null
+  }
+}
 const columns = [
 const columns = [
   {
   {
     title:'订单号',
     title:'订单号',

+ 2 - 1
src/template/billProductTable/index.vue

@@ -40,7 +40,8 @@
     param: Object,
     param: Object,
     hideBorder:Boolean,
     hideBorder:Boolean,
     size:String,
     size:String,
-    loading:Boolean
+    loading:Boolean,
+    tableRowStyle:Function
   })
   })
   const data = ref([])
   const data = ref([])
   const selectedRowKeys = ref([])
   const selectedRowKeys = ref([])