|
|
@@ -170,12 +170,18 @@
|
|
|
>下发采购计划</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
- v-if="produceType !=2 && formInline.bomType != 1"
|
|
|
+ v-if="produceType != 2 && formInline.bomType != 1"
|
|
|
type="primary"
|
|
|
@click="issuePlan"
|
|
|
size="medium"
|
|
|
>下发生产计划</el-button
|
|
|
>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ @click="isAllChecked"
|
|
|
+ size="medium"
|
|
|
+ >一键勾选缺料</el-button
|
|
|
+ >
|
|
|
</div>
|
|
|
<div class="tool_r">
|
|
|
<el-form
|
|
|
@@ -715,7 +721,6 @@
|
|
|
},
|
|
|
mounted() {},
|
|
|
methods: {
|
|
|
- onSubmit() {},
|
|
|
async handleNodeClick(data) {
|
|
|
this.planInfo = data;
|
|
|
try {
|
|
|
@@ -958,6 +963,16 @@
|
|
|
(item) => item.finalState === e
|
|
|
);
|
|
|
},
|
|
|
+ isAllChecked() {
|
|
|
+ let datasourceList = this.datasourceList.filter(
|
|
|
+ (el) => el.finalStateText == '缺料' && !el.hasIssued
|
|
|
+ );
|
|
|
+ if (datasourceList.length) {
|
|
|
+ this.$refs.table.setSelectedRowKeys(
|
|
|
+ datasourceList.map((el) => el.code)
|
|
|
+ );
|
|
|
+ }
|
|
|
+ },
|
|
|
// 批量采购
|
|
|
async bulkPurchase() {
|
|
|
if (this.selection.length == 0) {
|