Commit 9dcf529c authored by 仇晓婷's avatar 仇晓婷

排产结果页面

parent 3447fee5
...@@ -89,7 +89,7 @@ export default { ...@@ -89,7 +89,7 @@ export default {
}, },
{ {
title: "零件图号", title: "零件图号",
key: "part_id", key: "part_number",
align: "center" align: "center"
}, },
{ {
......
...@@ -24,32 +24,32 @@ ...@@ -24,32 +24,32 @@
</Col> </Col>
</Row> </Row>
<Row v-for="(item,index) in dataList" :key="item.id"> <Row v-for="(item,index) in dataList" :key="item.id">
<Col span="4"> <Col span="4" class="expand-value">
<span class="expand-value">{{ item.op_task_pk }}</span> <span>{{ item.task_seq }}</span>
</Col> </Col>
<Col span="3"> <Col span="3" class="expand-value">
<span class="expand-value">{{ item.task_name }}</span> <span>{{ item.task_name }}</span>
</Col> </Col>
<Col span="3"> <Col span="3" class="expand-value">
<span class="expand-value">{{ item.put_into_qty }}</span> <span>{{ item.put_into_qty }}</span>
</Col> </Col>
<Col span="3"> <Col span="3" class="expand-value">
<span class="expand-value">{{ item.dispatch_qty }}</span> <span>{{ item.dispatch_qty }}</span>
</Col> </Col>
<Col span="4"> <Col span="4" class="expand-value">
<span class="expand-value">{{ item.plan_start }}</span> <span>{{ item.plan_start }}</span>
</Col> </Col>
<Col span="4"> <Col span="4" class="expand-value">
<span class="expand-value">{{ item.plan_finish }}</span> <span>{{ item.plan_finish }}</span>
</Col> </Col>
<Col span="3"> <Col span="3" class="expand-value">
<span class="expand-value">{{ row.equip_id }}</span> <span>{{ row.equip_id }}</span>
</Col> </Col>
</Row> </Row>
</div> </div>
</template> </template>
<script> <script>
import Api from './api' import Api from "./api";
export default { export default {
props: { props: {
row: Object row: Object
...@@ -57,33 +57,36 @@ export default { ...@@ -57,33 +57,36 @@ export default {
data() { data() {
return { return {
dataList: [] dataList: []
} };
}, },
mounted() { mounted() {
this.getList(this.row) this.getList(this.row);
}, },
methods: { methods: {
getList(row) { getList(row) {
Api.getdetail({ Api.getdetail({
part_task_pk: row.id, part_task_pk: row.id,
scheduleId: row.schedule_id scheduleId: row.schedule_id
}).then((r) => { }).then(r => {
if (r.success) { if (r.success) {
this.dataList = r.result this.dataList = r.result;
} }
}) });
} }
} }
} };
</script> </script>
<style lang='less'> <style lang='less'>
.result-aps { .result-aps {
.expand-row { .expand-row {
text-align: center; text-align: center;
margin: 5px 0;
font-weight: bold;
}
.expand-value {
text-align: center;
margin: 3px 0;
} }
// .ivu-row {
// font-weight: bold !important;
// }
} }
td.ivu-table-expanded-cell { td.ivu-table-expanded-cell {
padding: 0 !important; padding: 0 !important;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment