Commit 7f817c52 authored by 仇晓婷's avatar 仇晓婷

Merge branch 'product' of http://git.mes123.com/zhouyx/mes-ui into product

parents 387b7609 b3548bf5
...@@ -64,17 +64,10 @@ ...@@ -64,17 +64,10 @@
<div class="fei_right" v-if="feilist.length>0"> <div class="fei_right" v-if="feilist.length>0">
<Form :model="orderForm" :label-width="110" :rules="rules" ref="formValidate"> <Form :model="orderForm" :label-width="110" :rules="rules" ref="formValidate">
<FormItem label="问题原因:" prop="question" style="width:100%"> <FormItem label="问题原因:" prop="question" style="width:100%">
<Select v-model="orderForm.question" style="width:80%"> <dictionary style="width:240px" code="orderList.UnqualifiedReasons" v-model="orderForm.question"></dictionary>
<Option value class="option-text">请选择</Option>
<!-- :disabled="feilist.length == 0 ? true:false" placeholder="选择问题原因" -->
<Option v-for="item in problemList" :value="item.problem" :key="item.index">{{ item.problem }}</Option>
</Select>
</FormItem> </FormItem>
<FormItem label="责任归属:" prop="useroption" style="width:100%"> <FormItem label="责任归属:" prop="useroption" style="width:100%">
<Select v-model="orderForm.useroption" style="width:80%"> <UserSelect ref="userSelected" v-model="orderForm.useroption" />
<Option value class="option-text">请选择</Option>
<Option v-for="item in blameList" :value="item.user" :key="item.index">{{ item.user }}</Option>
</Select>
</FormItem> </FormItem>
</Form> </Form>
</div> </div>
...@@ -121,12 +114,14 @@ export default { ...@@ -121,12 +114,14 @@ export default {
question: [{ question: [{
required: true, required: true,
message: "请选择问题原因", message: "请选择问题原因",
trigger: "change" trigger: "change",
type: 'number'
}], }],
useroption: [{ useroption: [{
required: true, required: true,
message: "请选择责任人", message: "请选择责任人",
trigger: "change" trigger: "change",
type: 'number'
}] }]
}, },
orderForm: { orderForm: {
...@@ -300,18 +295,14 @@ export default { ...@@ -300,18 +295,14 @@ export default {
}, },
// 让步关闭 // 让步关闭
handleClose(event, name) { handleClose(event, name) {
let rangold = this.ranglist; let rangold = this.$u.clone(this.ranglist);
let index = this.ranglist.findIndex(item => { let ind = this.ranglist.findIndex(item => {
return item.id === name; return item.id === name;
}); });
let itemlist = rangold.filter(item => { rangold[ind].productStatus = 0
if (item.id === name) { rangold[ind].checked = false
item.productStatus = 0 this.cardlist.push(rangold[ind]);
return item; this.ranglist.splice(ind, 1);
}
});
this.ranglist.splice(index, 1);
this.cardlist.splice(0, 0, itemlist[0]);
}, },
consoleFun(u) { consoleFun(u) {
this.suModal = true; this.suModal = true;
...@@ -345,18 +336,14 @@ export default { ...@@ -345,18 +336,14 @@ export default {
this.hegelist = []; this.hegelist = [];
}, },
hegeClose(event, name) { hegeClose(event, name) {
let hegeold = this.hegelist; let hegeold = this.$u.clone(this.hegelist);
let ind = this.hegelist.findIndex(hgitem => { let ind = this.hegelist.findIndex(hgitem => {
return hgitem.id === name; return hgitem.id === name;
}); });
let hgtemlist = hegeold.filter(hgtem => { hegeold[ind].productStatus = 0
if (hgtem.id == name) { hegeold[ind].checked = false
hgtem.productStatus = 0 this.cardlist.push(hegeold[ind]);
return hgtem;
}
});
this.hegelist.splice(ind, 1); this.hegelist.splice(ind, 1);
this.cardlist.splice(0, 0, hgtemlist[0]);
}, },
cansolRang() { cansolRang() {
let rangblist = this.ranglist; let rangblist = this.ranglist;
...@@ -367,18 +354,15 @@ export default { ...@@ -367,18 +354,15 @@ export default {
this.ranglist = []; this.ranglist = [];
}, },
fanClose(event, name) { fanClose(event, name) {
let fanold = this.fanlist; let fanold = this.$u.clone(this.fanlist);
let inde = this.fanlist.findIndex(item => { let ind = this.fanlist.findIndex(item => {
return item.id === name; return item.id === name;
}); });
let utemlist = fanold.filter(utem => { fanold[ind].productStatus = 0
if (utem.id == name) { fanold[ind].checked = false
utem.productStatus = 0 this.cardlist.push(fanold[ind]);
return utem; this.fanlist.splice(ind, 1);
}
});
this.fanlist.splice(inde, 1);
this.cardlist.splice(0, 0, utemlist[0]);
}, },
cansolfan() { cansolfan() {
let fanglist = this.fanlist; let fanglist = this.fanlist;
...@@ -389,18 +373,15 @@ export default { ...@@ -389,18 +373,15 @@ export default {
this.fanlist = []; this.fanlist = [];
}, },
feiClose(event, name) { feiClose(event, name) {
let feiold = this.feilist; let feiold = this.$u.clone(this.feilist);
let indexed = this.feilist.findIndex(item => { let ind = this.feilist.findIndex(item => {
return item.id === name; return item.id === name;
}); });
let rtemlist = feiold.filter(rtem => { feiold[ind].productStatus = 0
if (rtem.id == name) { feiold[ind].checked = false
rtem.productStatus = 0 this.cardlist.push(feiold[ind]);
return rtem; this.feilist.splice(ind, 1);
}
});
this.feilist.splice(indexed, 1);
this.cardlist.splice(0, 0, rtemlist[0]);
}, },
cansolfei() { cansolfei() {
let feipinlist = this.feilist; let feipinlist = this.feilist;
...@@ -453,10 +434,12 @@ export default { ...@@ -453,10 +434,12 @@ export default {
}) })
} }
if (pass05) { if (pass05) {
cardseops = { cardseops = {
prodcutIds: [], prodcutIds: [],
productStatus: this.cardlist[0].productStatus productStatus: this.cardlist[0].productStatus
} }
this.cardlist.map(ch => { this.cardlist.map(ch => {
cardseops.prodcutIds.push(ch.id) cardseops.prodcutIds.push(ch.id)
}) })
...@@ -472,7 +455,8 @@ export default { ...@@ -472,7 +455,8 @@ export default {
feipops.prodcutIds.push(un.id) feipops.prodcutIds.push(un.id)
}) })
} }
if (cardseops.productStatus) {
if (cardseops.productStatus == 0) {
lists.push(cardseops) lists.push(cardseops)
} }
if (hegeops.productStatus) { if (hegeops.productStatus) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment