白坯订单查询数量

yangwl
A0010407 1 year ago
parent a875961898
commit 4c7af09b18

@ -194,6 +194,7 @@
</template>
</el-table-column>
</el-table>
<div style="margin-left:1160px;">合计: {{this.whiteTotal}} </div>
<!-- 新增模块 -->
<el-dialog title="新增订单" :visible.sync="dialogVisible" width="900px" append-to-body>
@ -621,6 +622,7 @@ export default {
},
data() {
return {
whiteTotal:null,
//
converCarNum: null,
// -
@ -768,6 +770,10 @@ export default {
this.queryParams.planDateStart = moment(this.queryParams.planDateArray[0]).format('YYYY-MM-DD')
this.queryParams.planDateEnd = moment(this.queryParams.planDateArray[1]).format('YYYY-MM-DD')
listWhiteOrder(this.queryParams).then(response => {
for (let i = 0; i < response.data.length; i++) {
if(response.data[i].parentOrder == '0')
this.whiteTotal += 1;
}
this.whiteOrderList = this.handleTree(response.data, "orderCode", "parentOrder");
this.loading = false;
});
@ -1357,13 +1363,17 @@ export default {
this.$modal.msgSuccess('新增成功')
this.dialogVisible = false
this.reset();
this.getList()
this.getList();
});
},
// -
getList() {
this.loading = true;
listWhiteOrder(this.queryParams).then(response => {
for (let i = 0; i < response.data.length; i++) {
if(response.data[i].parentOrder == '0')
this.whiteTotal += 1;
}
this.whiteOrderList = this.handleTree(response.data, "orderCode", "parentOrder");
this.loading = false;
});
@ -1382,6 +1392,10 @@ export default {
/** 查询白坯订单管理下拉树结构 */
getTreeselect() {
listWhiteOrder().then(response => {
for (let i = 0; i < response.data.length; i++) {
if(response.data[i].parentOrder == '0')
this.whiteTotal += 1;
}
this.whiteOrderOptions = [];
const data = {orderCode: 0, prodDesc: '顶级节点', children: []};
data.children = this.handleTree(response.data, "orderCode", "parentOrder");
@ -1459,6 +1473,7 @@ export default {
this.$modal.confirm('是否确认删除白坯订单管理编号为"' + row.id + '"的数据项?').then(function () {
return delWhiteOrder(row.id);
}).then(() => {
this.whiteTotal = null;
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => {

Loading…
Cancel
Save