| | |
| | | type: Boolean, |
| | | default: false |
| | | }, |
| | | detailData: { |
| | | type: Object, |
| | | default: () => ({}), |
| | | }, |
| | | row: { |
| | | type: Object, |
| | | default: () => ({}), |
| | |
| | | |
| | | const initData = () => { |
| | | if (!props.isEdit) { |
| | | formData.otherData = JSON.parse(props.detailData.otherData || '{}'); |
| | | formData.quantity = props.detailData.quantity; |
| | | formData.otherData = JSON.parse(props.row.otherData || '{}'); |
| | | formData.quantity = props.row.quantity; |
| | | } else { |
| | | const row = props.row; |
| | | formData.planQuantity = row.planQuantity |
| | |
| | | |
| | | <template> |
| | | <el-dialog v-model="visible" |
| | | title="印铜报工" |
| | | :title="isEdit? '印铜报工' : '详情'" |
| | | width="90%"> |
| | | <el-form :model="formData"> |
| | | <table class="report-table"> |