|
@@ -9,6 +9,7 @@
|
|
|
:option="option"
|
|
|
:permission="permission"
|
|
|
:table-loading="loading"
|
|
|
+ :row-style="tableRowClassName"
|
|
|
@search-change="handleQuery"
|
|
|
@search-reset="resetChange"
|
|
|
@size-change="handleQuery"
|
|
@@ -304,6 +305,14 @@ const importData = reactive({
|
|
|
file: undefined,
|
|
|
fileList: [],
|
|
|
});
|
|
|
+const tableRowClassName = ({ row, rowIndex }) => {
|
|
|
+ const currentDate = new Date(); // 获取当前日期
|
|
|
+ const compareDate = new Date(row.deliverTime); // 设置要比较的日期
|
|
|
+ if (currentDate > compareDate && row.orderState !== '5') {
|
|
|
+ return { backgroundColor: '#F1BFBFFF'};
|
|
|
+ }
|
|
|
+ return '';
|
|
|
+};
|
|
|
const materialInfo = (value) => {
|
|
|
form.value.materialCode = value.materialCode;
|
|
|
form.value.materialName = value.materialName;
|
|
@@ -957,6 +966,9 @@ const onSelectedFinish = (selectedValue) => {
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
+.warning-row{
|
|
|
+ background-color: rgb(204, 136, 136) !important;
|
|
|
+}
|
|
|
.scanInfo {
|
|
|
width: 100%;
|
|
|
|