|
|
@@ -2,7 +2,7 @@
|
|
|
<div>
|
|
|
<detail-template :headData="mainAreaData" :title="'发货单号:' + mainData.billno" :tabs="['发货明细']" size="small" :hideBorder="false" ownertable="sa_dispatch">
|
|
|
<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>
|
|
|
<a-input class="search-input" v-model:value="search" @keyup.enter="prod.listData()" placeholder="搜索产品"></a-input>
|
|
|
</template>
|
|
|
@@ -34,6 +34,13 @@ const mainData = ref({})
|
|
|
const mainAreaData = ref([])
|
|
|
const search = ref('')
|
|
|
const prod = ref()
|
|
|
+const formatter = (_record, index) => {
|
|
|
+ if (_record.isreport > 0) {
|
|
|
+ return 'table-striped-red'
|
|
|
+ } else {
|
|
|
+ return null
|
|
|
+ }
|
|
|
+}
|
|
|
const columns = [
|
|
|
{
|
|
|
title:'订单号',
|