|
@@ -32,6 +32,11 @@
|
|
|
<span slot="fabRemaQuaSlot" slot-scope="text">
|
|
|
<a>{{ text }}</a>
|
|
|
</span>
|
|
|
+ <!-- 备注 -->
|
|
|
+ <span slot="remarks" slot-scope="text,record">
|
|
|
+ <a-input placeholder="请输入" v-model="record.remarks" v-show='showSelect==0'/>
|
|
|
+ <span v-show='showSelect==1'>{{ text }}</span>
|
|
|
+ </span>
|
|
|
</a-table>
|
|
|
</div>
|
|
|
|
|
@@ -39,7 +44,7 @@
|
|
|
<div style="margin:30px 0" :class="[(ingData.length==0?'noprint': '')]">
|
|
|
<h6 class="table-title">辅料</h6>
|
|
|
<a-table
|
|
|
- rowKey="(item)=>item.id"
|
|
|
+ rowKey="(item)=>item.goodsName"
|
|
|
:loading="loading"
|
|
|
:columns="ingColumns"
|
|
|
:data-source="ingData"
|
|
@@ -59,6 +64,11 @@
|
|
|
<span slot="ingRemQuaSlot" slot-scope="text">
|
|
|
<a>{{ text }}</a>
|
|
|
</span>
|
|
|
+ <!-- 备注 -->
|
|
|
+ <span slot="remarks" slot-scope="text,record">
|
|
|
+ <a-input placeholder="请输入" v-model="record.remarks" v-show='showSelect==0'/>
|
|
|
+ <span v-show='showSelect==1'>{{ text }}</span>
|
|
|
+ </span>
|
|
|
</a-table>
|
|
|
</div>
|
|
|
|
|
@@ -206,7 +216,7 @@ export default {
|
|
|
{
|
|
|
title: '转入数量',
|
|
|
dataIndex: 'fabrictransferQuantity',
|
|
|
- width: '10%',
|
|
|
+ width: '8%',
|
|
|
className: 'replacecolor',
|
|
|
customCell: this.fabQuaCustomCell,
|
|
|
scopedSlots: { customRender: 'fabInQuaSlot' },
|
|
@@ -214,18 +224,18 @@ export default {
|
|
|
{
|
|
|
title: '转入成本',
|
|
|
dataIndex: 'transferCost',
|
|
|
- width: '10%',
|
|
|
+ width: '8%',
|
|
|
className: 'replacecolor',
|
|
|
// slots:{title:'transferCostTitle'} ,
|
|
|
},
|
|
|
|
|
|
- { title: '单耗/件', dataIndex: 'unitConsumption', width: '10%', className: 'replacecolor' },
|
|
|
- { title: '使用数量', dataIndex: 'usageQuantity', width: '10%', className: 'replacecolor' },
|
|
|
- { title: '计划数量', dataIndex: 'planQuantity', width: '10%', className: 'replacecolor' },
|
|
|
+ { title: '单耗/件', dataIndex: 'unitConsumption', width: '9%', className: 'replacecolor' },
|
|
|
+ { title: '使用数量', dataIndex: 'usageQuantity', width: '9%', className: 'replacecolor' },
|
|
|
+ { title: '计划数量', dataIndex: 'planQuantity', width: '9%', className: 'replacecolor' },
|
|
|
{
|
|
|
title: '购入数量',
|
|
|
dataIndex: 'purchaseQuantity',
|
|
|
- width: '10%',
|
|
|
+ width: '9%',
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
{
|
|
@@ -239,16 +249,23 @@ export default {
|
|
|
{
|
|
|
title: '损耗',
|
|
|
dataIndex: 'loss',
|
|
|
- width: '10%',
|
|
|
+ width: '9%',
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
{
|
|
|
title: '余下数量的成本',
|
|
|
dataIndex: 'remainingQuantitycost',
|
|
|
- width: '10%',
|
|
|
+ width: '9%',
|
|
|
className: 'replacecolor',
|
|
|
// slots:{title:'remainingQuantitycostTitle'} ,
|
|
|
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '备注',
|
|
|
+ dataIndex: 'remarks',
|
|
|
+ scopedSlots: { customRender: 'remarks' },
|
|
|
+ width: '8%',
|
|
|
+ className: 'replacecolor'
|
|
|
}
|
|
|
],
|
|
|
fabData: [],
|
|
@@ -260,7 +277,7 @@ export default {
|
|
|
width: '6%',
|
|
|
dataIndex: 'index',
|
|
|
key: 'index',
|
|
|
- fixed: 'left',
|
|
|
+ // fixed: 'left',
|
|
|
customRender: (text, record, index) =>{
|
|
|
if(record.goodsName!=='合计'){
|
|
|
return index + 1
|
|
@@ -270,11 +287,11 @@ export default {
|
|
|
},
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
- { title: '货物名称', width: '12%', dataIndex: 'goodsName', fixed: 'left', className: 'replacecolor' },
|
|
|
+ { title: '货物名称', width: '12%', dataIndex: 'goodsName', className: 'replacecolor' },
|
|
|
{
|
|
|
title: '转入数量',
|
|
|
dataIndex: 'ingredientsTransferQuantity',
|
|
|
- width: '10%',
|
|
|
+ width: '6%',
|
|
|
className: 'replacecolor',
|
|
|
customCell: this.ingInQuaCustomCell,
|
|
|
scopedSlots: { customRender: 'ingInQuaSlot' }
|
|
@@ -282,7 +299,7 @@ export default {
|
|
|
{
|
|
|
title: '转入成本',
|
|
|
dataIndex: 'transferCost',
|
|
|
- width: '10%',
|
|
|
+ width: '6%',
|
|
|
className: 'replacecolor',
|
|
|
// slots:{title:'transferCostTitle'} ,
|
|
|
},
|
|
@@ -291,13 +308,13 @@ export default {
|
|
|
{
|
|
|
title: '购入数量',
|
|
|
dataIndex: 'purchaseQuantity',
|
|
|
- width: '10%',
|
|
|
+ width: '8%',
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
{
|
|
|
title: '余下数量',
|
|
|
dataIndex: 'ingredientsRemainingQuantity',
|
|
|
- width: '9%',
|
|
|
+ width: '6%',
|
|
|
className: 'replacecolor',
|
|
|
customCell: this.ingRemQuaCustomCell,
|
|
|
scopedSlots: { customRender: 'ingRemQuaSlot' }
|
|
@@ -305,19 +322,19 @@ export default {
|
|
|
{
|
|
|
title: '损耗',
|
|
|
dataIndex: 'loss',
|
|
|
- width: '8%',
|
|
|
+ width: '6%',
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
{
|
|
|
title: '人民币金额',
|
|
|
dataIndex: 'rmbAmount',
|
|
|
- width: '8%',
|
|
|
+ width: '6%',
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
{
|
|
|
title: '美元金额',
|
|
|
dataIndex: 'usdAmount',
|
|
|
- width: '8%',
|
|
|
+ width: '6%',
|
|
|
className: 'replacecolor',
|
|
|
customRender: (text, record, index) => {
|
|
|
if (record.rmbAmount == record.usdAmount)
|
|
@@ -329,7 +346,7 @@ export default {
|
|
|
{
|
|
|
title: '不含税金额',
|
|
|
dataIndex: 'priceExcludingtax',
|
|
|
- width: '8%',
|
|
|
+ width: '6%',
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
// {
|
|
@@ -347,6 +364,19 @@ export default {
|
|
|
{
|
|
|
title: '用量',
|
|
|
dataIndex: 'dosage',
|
|
|
+ width: '6%',
|
|
|
+ className: 'replacecolor'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '供应商',
|
|
|
+ dataIndex: 'supper',
|
|
|
+ width: '8%',
|
|
|
+ className: 'replacecolor'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '备注',
|
|
|
+ dataIndex: 'remarks',
|
|
|
+ scopedSlots: { customRender: 'remarks' },
|
|
|
width: '8%',
|
|
|
className: 'replacecolor'
|
|
|
}
|
|
@@ -506,7 +536,7 @@ export default {
|
|
|
},
|
|
|
|
|
|
// 辅料-转入数量 弹框
|
|
|
- ingInQuaCustomCell(record) {
|
|
|
+ ingInQuaCustomCell(record) {console.log('辅料 - 转入数量')
|
|
|
return {
|
|
|
on: {
|
|
|
click: event => {
|