Merge remote-tracking branch 'origin/dev' into dev

dev
黄泽腾 2 years ago
commit f858688cf6

@ -279,7 +279,7 @@
:total="productTotal" :total="productTotal"
:limit.sync="filterQuery.limit" :limit.sync="filterQuery.limit"
:page.sync="filterQuery.page" :page.sync="filterQuery.page"
@pagination="getList" @pagination="queryInvProducts"
></pagination> ></pagination>
</el-dialog> </el-dialog>
</div> </div>
@ -630,7 +630,7 @@ export default {
}, },
combine() { combine() {
if (this.multiProduct.length === 0) { if (this.multiProduct.length === 0) {
this.$message.error("请选择养护产品!"); this.$message.error("请选择领用产品!");
return; return;
} }
let invProductIds = []; let invProductIds = [];

@ -298,7 +298,7 @@ export default {
urgencyType: [{required: true, message: '请选择紧急程度', trigger: 'blur'}], urgencyType: [{required: true, message: '请选择紧急程度', trigger: 'blur'}],
planTime: [{required: true, message: '请选择计划完成日期', trigger: 'blur'}], planTime: [{required: true, message: '请选择计划完成日期', trigger: 'blur'}],
}, },
check: true, check: false,
detailList: [], detailList: [],
inputQuery: {}, inputQuery: {},
repairOrderSetVisible: false, repairOrderSetVisible: false,
@ -371,6 +371,7 @@ export default {
return; return;
} }
this.setDeptAnInvName(); this.setDeptAnInvName();
this.check = false
this.deviceDialogVisible = true; this.deviceDialogVisible = true;
this.filterQuery = { this.filterQuery = {
code: null, code: null,
@ -437,10 +438,14 @@ export default {
this.selectRow = val[0]; this.selectRow = val[0];
}, },
combine() { combine() {
if (this.check) { if (this.check == false) {
this.$message.error("请勾选设备!") this.$message.error("请勾选设备!")
return; return;
} }
if (this.repairOrder.deviceName != null && this.repairOrder.deviceName != '') {
this.$message.error("该设备已选入!")
return
}
this.deviceDialogVisible = false; this.deviceDialogVisible = false;
this.repairOrder.code = this.selectRow.code; this.repairOrder.code = this.selectRow.code;
this.repairOrder.deviceName = this.selectRow.deviceName; this.repairOrder.deviceName = this.selectRow.deviceName;

Loading…
Cancel
Save