|
@@ -1,6 +1,13 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<Toptitle title="查看">
|
|
|
+ <Button
|
|
|
+ @click="handleMatchedSelectAll()"
|
|
|
+ type="primary"
|
|
|
+ :ghost="!isMatchedSelectAll"
|
|
|
+ style="margin-right: 10px"
|
|
|
+ >{{ isMatchedSelectAll ? "取消选中" : "全部选中" }}</Button
|
|
|
+ >
|
|
|
<Button
|
|
|
@click="handleGoProduction"
|
|
|
type="primary"
|
|
@@ -21,7 +28,7 @@
|
|
|
</Row>
|
|
|
<div class="context-tabs">
|
|
|
<Row type="flex" align="middle" style="padding:10px 0">
|
|
|
- <Col span="4">
|
|
|
+ <Col span="5">
|
|
|
<span>图号:</span>
|
|
|
<span>
|
|
|
<Select
|
|
@@ -43,7 +50,7 @@
|
|
|
</Select>
|
|
|
</span>
|
|
|
</Col>
|
|
|
- <Col span="4">
|
|
|
+ <Col span="5">
|
|
|
<span>产品名称:</span>
|
|
|
<span>
|
|
|
<Select
|
|
@@ -76,8 +83,16 @@
|
|
|
:key="matched_info.number"
|
|
|
class="matched-block"
|
|
|
>
|
|
|
- <Row>
|
|
|
- <Col span="2">
|
|
|
+ <Row type="flex" justify="space-between" align="top">
|
|
|
+ <Col span="4" v-if="matched_info.matching_status == 1" style="display:flex;justify-content: space-around;">
|
|
|
+ <div v-if="matched_info.matching_status == 2">
|
|
|
+ <Checkbox
|
|
|
+ v-show="matched_info.produce_status == 0"
|
|
|
+ v-model="matched_info.isSelect"
|
|
|
+ @on-change="(e) => handleMatchedSelect(matched_info, e)"
|
|
|
+ >选择</Checkbox
|
|
|
+ >
|
|
|
+ </div>
|
|
|
<span>图号:{{ matched_info.image_number }}</span>
|
|
|
</Col>
|
|
|
<Col span="6">
|
|
@@ -92,23 +107,24 @@
|
|
|
: "匹配完成"
|
|
|
}}</span>
|
|
|
</Col>
|
|
|
- <Col span="2" offset="8">
|
|
|
- <span>
|
|
|
+ <Col style="display:flex;justify-content: space-between;" span="6">
|
|
|
+ <span v-if="matched_info.matching_status == 2">
|
|
|
<Button
|
|
|
@click="handleGoProduction(matched_info)"
|
|
|
type="primary"
|
|
|
size="small"
|
|
|
- :disabled='(matched_info.matching_status == 0||matched_info.matching_status == 1)?true:false'
|
|
|
+ :disabled='matched_info.produce_status!=0'
|
|
|
>下生产</Button
|
|
|
>
|
|
|
</span>
|
|
|
- </Col>
|
|
|
- <Col span="2">
|
|
|
+
|
|
|
+ <div>
|
|
|
总计
|
|
|
<span style="color:red">{{ matched_info.num }}</span>
|
|
|
条数据
|
|
|
- </Col>
|
|
|
- <Col span="2">
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
<Button
|
|
|
@click="handleShowCurrencyMatched(matched_info)"
|
|
|
size="small"
|
|
@@ -123,7 +139,7 @@
|
|
|
: 'md-arrow-dropright'
|
|
|
"
|
|
|
style="vertical-align: middle;"
|
|
|
- />
|
|
|
+ /></div>
|
|
|
</Col>
|
|
|
</Row>
|
|
|
<Row style="margin-top:20px" v-if="matched_info.isCurrenct">
|
|
@@ -305,6 +321,7 @@ export default {
|
|
|
return {
|
|
|
project_number: this.$route.query.project_number,
|
|
|
project_name: this.$route.query.project_name,
|
|
|
+ isMatchedSelectAll:false,
|
|
|
matchedInfo: {
|
|
|
id: this.$route.query.id,
|
|
|
image_number: "",
|
|
@@ -361,6 +378,7 @@ export default {
|
|
|
process_end_time: "",
|
|
|
process_control: false,
|
|
|
cut_order_product_ids: [],
|
|
|
+ matchedSelectedList:[]
|
|
|
};
|
|
|
},
|
|
|
// 生命周期 - 创建完成(可以访问当前this实例)
|
|
@@ -374,16 +392,37 @@ export default {
|
|
|
this.initData();
|
|
|
},
|
|
|
methods: {
|
|
|
+ handleMatchedSelectAll(){
|
|
|
+ this.isMatchedSelectAll = !this.isMatchedSelectAll;
|
|
|
+ this.matchedList.map((v) => {
|
|
|
+ if (v.produce_status == 0) {
|
|
|
+ v.isSelect = this.isMatchedSelectAll;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ handleMatchedSelect(row, e) {
|
|
|
+ row.isSelect = e;
|
|
|
+
|
|
|
+ let flag = true;
|
|
|
+ this.matchedSelectedList = [];
|
|
|
+ this.matchedList.map((v) => {
|
|
|
+ if (v.produce_status == 0) {
|
|
|
+ if (v.isSelect) {
|
|
|
+ this.matchedSelectedList.push(v.id);
|
|
|
+ } else {
|
|
|
+ flag = false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ this.isMatchedSelectAll = flag;
|
|
|
+ this.cut_order_product_ids = this.matchedSelectedList;
|
|
|
+ },
|
|
|
back() {
|
|
|
this.$router.go(-1);
|
|
|
},
|
|
|
handleGoProduction(row) {
|
|
|
if (row) {
|
|
|
this.cut_order_product_ids = [row.id];
|
|
|
- } else {
|
|
|
- this.cut_order_product_ids = this.matchedList.map((v) => {
|
|
|
- return v.id;
|
|
|
- });
|
|
|
}
|
|
|
this.processModal = true;
|
|
|
},
|