未对挂账报表
This commit is contained in:
@@ -21,7 +21,8 @@
|
|||||||
'application': True,
|
'application': True,
|
||||||
'assets': {
|
'assets': {
|
||||||
'web.assets_backend': [
|
'web.assets_backend': [
|
||||||
'yuthon_purchase/static/xml/misc.xml'
|
'yuthon_purchase/static/xml/misc.xml',
|
||||||
|
'yuthon_purchase/static/src/scss/purchase_order.scss'
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
.o_m2o_mutil_line {
|
||||||
|
white-space: normal !important;
|
||||||
|
word-break: break-all !important;
|
||||||
|
word-wrap: break-word !important;
|
||||||
|
}
|
||||||
@@ -186,6 +186,7 @@
|
|||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//field[@name='order_line']//tree//field[@name='product_id']" position="attributes">
|
<xpath expr="//field[@name='order_line']//tree//field[@name='product_id']" position="attributes">
|
||||||
<attribute name="domain">purchase_type == 'fixed_asset' and [('product_tag_ids.name', 'in', ['固定资产'])] or purchase_type == 'sporadic' and [('product_tag_ids.name', 'not in', ['固定资产'])] or []</attribute>
|
<attribute name="domain">purchase_type == 'fixed_asset' and [('product_tag_ids.name', 'in', ['固定资产'])] or purchase_type == 'sporadic' and [('product_tag_ids.name', 'not in', ['固定资产'])] or []</attribute>
|
||||||
|
<attribute name="class">o_m2o_mutil_line</attribute>
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//field[@name='order_line']//tree//field[@name='product_id']" position="after">
|
<xpath expr="//field[@name='order_line']//tree//field[@name='product_id']" position="after">
|
||||||
<field name="brand_spec" string="品牌/规格" optional="show"/>
|
<field name="brand_spec" string="品牌/规格" optional="show"/>
|
||||||
|
|||||||
@@ -40,6 +40,11 @@ class SimpleBankReport extends Component {
|
|||||||
theme: agGrid.themeMaterial,
|
theme: agGrid.themeMaterial,
|
||||||
columnDefs: columns,
|
columnDefs: columns,
|
||||||
rowData: [],
|
rowData: [],
|
||||||
|
rowClassRules: {
|
||||||
|
'ag-row-registered': function(params) {
|
||||||
|
return params.data && params.data.状态 === '挂账';
|
||||||
|
}
|
||||||
|
},
|
||||||
sideBar: this.config.sideBar ? {
|
sideBar: this.config.sideBar ? {
|
||||||
toolPanels: [
|
toolPanels: [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -81,3 +81,8 @@
|
|||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 挂账状态行金黄色背景 */
|
||||||
|
.ag-row-registered {
|
||||||
|
background-color: #fffbeb !important;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user