|
@@ -225,6 +225,11 @@
|
|
|
:pagination="false"
|
|
|
>
|
|
|
|
|
|
+ <!-- 成本金额 -->
|
|
|
+ <span slot="imoney" slot-scope="text,record">
|
|
|
+ <a v-if="(record.cbusType == '转出成本')|| (record.cbusType == '转入成本')" @click="imoneyCell(record)">{{text}}</a>
|
|
|
+ <span v-else >{{text}}</span>
|
|
|
+ </span>
|
|
|
<!-- 工厂 -->
|
|
|
<span slot="cvenAbbName" slot-scope="text,record">
|
|
|
<a-input placeholder="请输入工厂" v-model="record.cvenAbbName" v-if="record.cbusType == '转出成本'"/>
|
|
@@ -403,6 +408,7 @@
|
|
|
|
|
|
<!-- 附件 -->
|
|
|
<attachment-display ref="attachmentDisplay"></attachment-display>
|
|
|
+ <imoney-cell ref="imoneyCell"></imoney-cell>
|
|
|
</div>
|
|
|
</a-card>
|
|
|
</div>
|
|
@@ -418,6 +424,7 @@ import invoiceQuantityModal from '@views/reportForms/fabric-loss-table/invoiceQu
|
|
|
import accidentListModal from '@views/reportForms/fabric-loss-table/accidentListModal.vue'
|
|
|
import surplusYarnModal from '@views/reportForms/fabric-loss-table/surplusYarnModal.vue'
|
|
|
import purchaseLeftModal from '@views/reportForms/fabric-loss-table/purchaseLeftModal.vue'
|
|
|
+import imoneyCell from '@views/reportForms/fabric-loss-table/imoneyCell.vue'
|
|
|
import iquantityMoreLessModal from '@views/reportForms/fabric-loss-table/iquantityMoreLessModal.vue'
|
|
|
import otherYarnsInModal from '@views/reportForms/fabric-loss-table/otherYarnsInModal.vue'
|
|
|
import AttachmentDisplay from '@views/reportForms/fabric-loss-table/attachment-display.vue'
|
|
@@ -443,7 +450,8 @@ export default {
|
|
|
purchaseLeftModal,
|
|
|
JEllipsis,
|
|
|
moment,
|
|
|
- AttachmentDisplay
|
|
|
+ AttachmentDisplay,
|
|
|
+ imoneyCell
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -577,7 +585,7 @@ export default {
|
|
|
{ title: '类型', width: 120, dataIndex: 'cvcname', className: 'replacecolor' },
|
|
|
{ title: '采购类型', width: 120, dataIndex: 'cbusType', className: 'replacecolor' },
|
|
|
{ title: '工厂', width: 120, dataIndex: 'cvenAbbName', className: 'replacecolor', scopedSlots: { customRender: 'cvenAbbName' } },
|
|
|
- { title: '成本金额', dataIndex: 'imoney', width: 120, className: 'replacecolor' }
|
|
|
+ { title: '成本金额', dataIndex: 'imoney', width: 120, className: 'replacecolor',scopedSlots: { customRender: 'imoney' } }
|
|
|
],
|
|
|
costInvoiceData: [
|
|
|
{ costInvoiceType: '纱款', factory: '17TW-C-17B', costAmount: '5081.72' },
|
|
@@ -720,6 +728,14 @@ export default {
|
|
|
className: 'replacecolor',
|
|
|
// customCell: this.accidentListCustomCell,
|
|
|
scopedSlots: { customRender: 'cpbvcode' }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '事故单号',
|
|
|
+ width: 120,
|
|
|
+ dataIndex: 'cpbvmemo',
|
|
|
+ className: 'replacecolor',
|
|
|
+ // customCell: this.accidentListCustomCell,
|
|
|
+ // scopedSlots: { customRender: 'cpbvcode' }
|
|
|
},
|
|
|
{ title: '事故承担方', width: 120, dataIndex: 'cvenAbbName', className: 'replacecolor' },
|
|
|
{ title: '金额', dataIndex: 'ioriSum', width: 120, className: 'replacecolor' }
|
|
@@ -995,6 +1011,11 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ //成本金额弹窗
|
|
|
+ imoneyCell(record){
|
|
|
+ this.$refs.imoneyCell.imoneyModVis = true
|
|
|
+ this.$refs.imoneyCell.imoneyData = record.costInvoiceDetailList
|
|
|
+ },
|
|
|
|
|
|
// 【材料出库数量】 弹框
|
|
|
materialsOutQuantityCustomCell(record) {
|