2/24 界面优化1.0

20240912_adapter
wangwei 4 months ago
parent b4c24a5033
commit 31cd666ee0

@ -46,7 +46,7 @@
<!-- &lt;!&ndash; :disabled="!formData.billNo"&ndash;&gt;--> <!-- &lt;!&ndash; :disabled="!formData.billNo"&ndash;&gt;-->
<!-- &lt;!&ndash; @click.native="cancelOrder()"&ndash;&gt;--> <!-- &lt;!&ndash; @click.native="cancelOrder()"&ndash;&gt;-->
<!-- &lt;!&ndash; >放弃&ndash;&gt;--> <!-- &lt;!&ndash; >放弃&ndash;&gt;-->
<!-- &lt;!&ndash; </el-button>&ndash;&gt;--> <!-- </el-button>-->
<!-- <el-button--> <!-- <el-button-->
<!-- type="primary"--> <!-- type="primary"-->
<!-- :disabled="!formData.billNo"--> <!-- :disabled="!formData.billNo"-->
@ -209,6 +209,12 @@
@click.native="nextCollectOrder()" @click.native="nextCollectOrder()"
>下一单 >下一单
</el-button> </el-button>
<el-button
type="primary"
:disabled="!formData.billNo"
@click.native="cancelOrder()"
>放弃
</el-button>
<el-button <el-button
type="primary" type="primary"
:disabled="formData.billNo ||(this.formDataVisible != null && this.formDataVisible.scanType == 1)" :disabled="formData.billNo ||(this.formDataVisible != null && this.formDataVisible.scanType == 1)"
@ -270,9 +276,10 @@
<el-descriptions-item <el-descriptions-item
label="灯组信息" label="灯组信息"
> >
<el-tag :style="colorStyle(formData.ledNum)">灯组信息</el-tag> <!--colorStyle(formData.ledNum)-->
<!--<el-tag style="color:red ">灯组信息</el-tag>-->
<el-tag :type="colorStyle(formData.ledNum)">{{ledName}}</el-tag>
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
@ -1642,18 +1649,40 @@ export default {
this.placeholder = '请点击输入框进行选扫码' this.placeholder = '请点击输入框进行选扫码'
}, },
// colorStyle(ledNum) {
// switch (ledNum) {
// case 1:
// return { type: 'danger' };
// case 2:
// return { type: 'warning' };
// case 3:
// return { type: '' };
// case 4:
// return { type: 'success' };
// default:
//
// return { type: 'info' };
// // return { type: '#918e8e' };
// }
// },
colorStyle(ledNum) { colorStyle(ledNum) {
switch (ledNum) { switch (ledNum) {
case 1: case 1:
return { backgroundColor: 'red' }; this.ledName = '红灯'
return 'danger' ;
case 2: case 2:
return { backgroundColor: '#ec951f' }; this.ledName = '黄灯'
return 'warning' ;
case 3: case 3:
return { backgroundColor: 'blue' }; this.ledName = '蓝灯'
return '';
case 4: case 4:
return { backgroundColor: 'green' }; this.ledName = '绿灯'
return 'success' ;
default: default:
return { backgroundColor: '#918e8e' }; this.ledName = '未绑定灯组'
return 'info' ;
// return { type: '#918e8e' };
} }
} }
}, },

Loading…
Cancel
Save