This commit is contained in:
zmj 2024-05-10 18:13:14 +08:00
commit b079eb9e5d
1 changed files with 16 additions and 9 deletions

View File

@ -8,27 +8,35 @@
<el-button type="primary">Operation</el-button> <el-button type="primary">Operation</el-button>
</template> --> </template> -->
<el-descriptions-item :span="4" label="单据编号"> <el-descriptions-item :span="4" label="单据编号">
{{form.number}} {{ form.number }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item :span="2" label="单据金额"> <el-descriptions-item :span="2" label="单据金额">
{{form.total}} {{ form.total }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item :span="2" label="抵扣金额"> <el-descriptions-item :span="2" label="抵扣金额">
{{form.deduction_price}} {{ form.deduction_price }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item :span="2" label="实际金额"> <el-descriptions-item :span="2" label="实际金额">
{{form.actual}} {{ form.actual }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item :span="2" label="实收金额"> <el-descriptions-item :span="2" label="实收金额">
{{form.money}} {{ form.money }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="所属商户"> <el-descriptions-item label="所属商户">
{{form.merchant}} {{ form.merchant }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="ID"> <el-descriptions-item label="ID">
{{form.id}} {{ form.id }}
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
<el-table :data="form.goods_info" border style="width: 100%; margin-top: 20px;">
<el-table-column prop="id" label="ID" width="120" />
<el-table-column prop="goods_name" label="商品名称"/>
<el-table-column prop="price" label="单价(元)" />
<el-table-column prop="unit_name" label="单位" />
<el-table-column prop="nums" label="数量" />
<el-table-column prop="total" label="合计(元)" />
</el-table>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="订单" name="second">订单列表</el-tab-pane> <el-tab-pane label="订单" name="second">订单列表</el-tab-pane>
<el-tab-pane label="报价信息" name="third">报价信息</el-tab-pane> <el-tab-pane label="报价信息" name="third">报价信息</el-tab-pane>
@ -62,7 +70,6 @@ const getDetail = async () => {
const data = await apiOpurchaseclassDetail({ const data = await apiOpurchaseclassDetail({
id: route.query.id, id: route.query.id,
}); });
console.log(data);
form.value = data; form.value = data;
}; };
getDetail(); getDetail();