Commit ad029250 authored by 仇晓婷's avatar 仇晓婷

整机排产优化

parent 13456309
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<Checkbox <Checkbox
v-model="li.checked" v-model="li.checked"
@on-change="checkData(li)" @on-change="checkData(li)"
:disabled="isdisabled" :disabled="li.status==0?false:true"
>订单号:{{li.mesCode}}</Checkbox> >订单号:{{li.mesCode}}</Checkbox>
</Col> </Col>
<Col :span="4" class="order-ringht"> <Col :span="4" class="order-ringht">
...@@ -114,7 +114,7 @@ ...@@ -114,7 +114,7 @@
</FormItem> </FormItem>
<FormItem> <FormItem>
<Button style="margin-left: 8px" @click="closeOk">取消</Button> <Button style="margin-left: 8px" @click="closeOk">取消</Button>
<Button type="primary" @click="lowerHair">下发</Button> <Button type="primary" @click="lowerHair" v-if="showXia">下发</Button>
</FormItem> </FormItem>
</Form> </Form>
</div> </div>
...@@ -135,8 +135,8 @@ export default { ...@@ -135,8 +135,8 @@ export default {
data() { data() {
return { return {
list: [], list: [],
showXia: true,
status: "0", //全部排产-1,0为未排产;2为已排查; status: "0", //全部排产-1,0为未排产;2为已排查;
isdisabled: false,
formItem: { formItem: {
radio: "0", radio: "0",
time: "", time: "",
...@@ -192,10 +192,10 @@ export default { ...@@ -192,10 +192,10 @@ export default {
changeStatus(name) { changeStatus(name) {
this.status = name; this.status = name;
this.orderlist(this.status); this.orderlist(this.status);
if (this.status == 1) { if (this.status == 0) {
this.isdisabled = true; this.showXia = true;
} else { } else {
this.isdisabled = false; this.showXia = false;
} }
}, },
//排产池列表 //排产池列表
......
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