|
@@ -7,7 +7,7 @@
|
|
<el-button type="danger" size="small" v-if="!lineDisable" @click="cancelEdit">取消编辑</el-button>
|
|
<el-button type="danger" size="small" v-if="!lineDisable" @click="cancelEdit">取消编辑</el-button>
|
|
<el-button type="success" size="small" v-if="!lineDisable" @click="saveLine">保存</el-button>
|
|
<el-button type="success" size="small" v-if="!lineDisable" @click="saveLine">保存</el-button>
|
|
<el-button type="primary" size="small" @click="closeLine">行关闭</el-button>
|
|
<el-button type="primary" size="small" @click="closeLine">行关闭</el-button>
|
|
- <el-button type="primary" size="small">重取批量</el-button>
|
|
|
|
|
|
+ <el-button type="primary" size="small" @click="reloadBatch">重取批量</el-button>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<el-table
|
|
<el-table
|
|
@@ -20,7 +20,7 @@
|
|
<el-table-column show-overflow-tooltip label="序号" align="center" type="index"/>
|
|
<el-table-column show-overflow-tooltip label="序号" align="center" type="index"/>
|
|
<el-table-column show-overflow-tooltip label="行号" align="center" prop="rowNo"/>
|
|
<el-table-column show-overflow-tooltip label="行号" align="center" prop="rowNo"/>
|
|
<el-table-column show-overflow-tooltip label="行状态" align="center" prop="status" width="120px" :formatter="hangStatus"/>
|
|
<el-table-column show-overflow-tooltip label="行状态" align="center" prop="status" width="120px" :formatter="hangStatus"/>
|
|
- <el-table-column show-overflow-tooltip label="物料编码" align="center" prop="materialCode"/>
|
|
|
|
|
|
+ <el-table-column show-overflow-tooltip label="物料编码" align="center" prop="materialCode" width="150px"/>
|
|
<el-table-column show-overflow-tooltip label="品名" align="center" prop="materialName" width="180"/>
|
|
<el-table-column show-overflow-tooltip label="品名" align="center" prop="materialName" width="180"/>
|
|
<el-table-column show-overflow-tooltip label="规格" align="center" prop="specification"/>
|
|
<el-table-column show-overflow-tooltip label="规格" align="center" prop="specification"/>
|
|
<el-table-column show-overflow-tooltip label="单位" align="center" prop="unit"/>
|
|
<el-table-column show-overflow-tooltip label="单位" align="center" prop="unit"/>
|
|
@@ -118,7 +118,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import {getSummaryDetail, shutDownSummary, editSummaryMx } from '@/api/purchase/DemandSummary.js'
|
|
|
|
|
|
+import {getSummaryDetail, shutDownSummary, editSummaryMx, reloadBatch } from '@/api/purchase/DemandSummary.js'
|
|
export default {
|
|
export default {
|
|
name: 'checkDemandSummary',
|
|
name: 'checkDemandSummary',
|
|
props: ['pageStu','row', 'disable'],
|
|
props: ['pageStu','row', 'disable'],
|
|
@@ -222,6 +222,17 @@ export default {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ // 重取批量
|
|
|
|
+ reloadBatch() {
|
|
|
|
+ let param = this.tableList.map(item => { return item.demandItemId})
|
|
|
|
+ reloadBatch(param).then(res => {
|
|
|
|
+ if (res.code === 200) {
|
|
|
|
+ this.$modal.msgSuccess("操作成功");
|
|
|
|
+ this.getDetails(this.row)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ },
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|