| | |
| | | <template> |
| | | <div > |
| | | <el-card class="box-card"> |
| | | <div slot="header" class="clearfix"> |
| | | <span>包装详情</span> |
| | | </div> |
| | | <div> |
| | | <el-table |
| | | :data="testStandardParams" |
| | | highlight-current-row |
| | | height="700" |
| | | class="txt" |
| | | stripe |
| | | > |
| | | <el-table-column |
| | | type ="index" |
| | | label="序号" |
| | | align="center" |
| | | width="80" |
| | | /> |
| | | <el-table-column |
| | | label="产品" |
| | | prop="product" |
| | | show-overflow-tooltip |
| | | align="center" |
| | | /> |
| | | <el-table-column |
| | | label="产品编号" |
| | | prop="productNo" |
| | | show-overflow-tooltip |
| | | align="center" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="批次号" |
| | | prop="outBatchNo" |
| | | show-overflow-tooltip |
| | | align="center" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="规格型号" |
| | | prop="specs" |
| | | show-overflow-tooltip |
| | | align="center" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="单位" |
| | | prop="unit" |
| | | show-overflow-tooltip |
| | | align="center" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="数量" |
| | | prop="number" |
| | | align="center" |
| | | show-overflow-tooltip |
| | | width="80" |
| | | ></el-table-column> |
| | | </el-table> |
| | | </div> |
| | | </el-card> |
| | | <!-- <div style="padding:40px 180px;"> |
| | | <div slot="header" class="clearfix"> |
| | | <span>包装台账详情</span> |
| | | <el-card class="box-card" v-for="(el,item) in testStandardParams" > |
| | | <div> |
| | | <el-form :model="el" label-width="80px"> |
| | | <el-form-item label="序号:"> |
| | | {{ item + 1 }} |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-form :model="el" label-width="80px"> |
| | | <el-form-item label="产品:"> |
| | | {{ el.product }} |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-form :model="el" label-width="80px"> |
| | | <el-form-item label="产品编号:"> |
| | | {{ el.productNo }} |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-form :model="el" label-width="80px"> |
| | | <el-form-item label="批次号:"> |
| | | {{ el.outBatchNo }} |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-form :model="el" label-width="80px"> |
| | | <el-form-item label="规格型号:"> |
| | | {{ el.specs }} |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-form :model="el" label-width="80px"> |
| | | <el-form-item label="单位:"> |
| | | {{ el.unit }} |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-form :model="el" label-width="80px"> |
| | | <el-form-item label="数量:"> |
| | | {{ el.number }} |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | <el-card> |
| | | <el-table |
| | | :data="testStandardParams" |
| | | highlight-current-row |
| | | height="700" |
| | | class="txt" |
| | | stripe |
| | | > |
| | | <el-table-column |
| | | type ="index" |
| | | label="序号" |
| | | align="center" |
| | | width="80" |
| | | /> |
| | | <el-table-column |
| | | label="产品" |
| | | prop="product" |
| | | show-overflow-tooltip |
| | | align="center" |
| | | /> |
| | | <el-table-column |
| | | label="产品编号" |
| | | prop="productNo" |
| | | show-overflow-tooltip |
| | | align="center" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="批次号" |
| | | prop="outBatchNo" |
| | | show-overflow-tooltip |
| | | align="center" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="规格型号" |
| | | prop="specs" |
| | | show-overflow-tooltip |
| | | align="center" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="单位" |
| | | prop="unit" |
| | | show-overflow-tooltip |
| | | align="center" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="数量" |
| | | prop="number" |
| | | align="center" |
| | | show-overflow-tooltip |
| | | width="80" |
| | | ></el-table-column> |
| | | </el-table> |
| | | </el-card> |
| | | </div> --> |
| | | </el-card> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import {list} from '@/api/quality/Packaging_ledger' |
| | | import {selById} from '@/api/quality/Packaging_ledger' |
| | | |
| | | export default{ |
| | | data(){ |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | this.chuaxun() |
| | | let aa = this.$route.query |
| | | console.log(this.$route.query,"id"); |
| | | this.chuaxun(aa) |
| | | }, |
| | | methods: { |
| | | chuaxun(){ |
| | | list({packageBoxId:50}).then((res) =>{ |
| | | console.log(res,"1111111"); |
| | | chuaxun(aa){ |
| | | selById({id:aa.id}).then((res) =>{ |
| | | this.testStandardParams = res.data.data |
| | | }) |
| | | }, |
| | |
| | | </script> |
| | | |
| | | <style> |
| | | .txt{ |
| | | font-size: 16px; |
| | | } |
| | | .box-card{ |
| | | margin: 20px; |
| | | border-radius: 40px; |
| | | } |
| | | .inputDeep { |
| | | |
| | | } |
| | | </style> |