diff --git a/src/assets/images/addIcon.png b/src/assets/images/addIcon.png
new file mode 100644
index 0000000..753a259
Binary files /dev/null and b/src/assets/images/addIcon.png differ
diff --git a/src/store/modules/workOrder.ts b/src/store/modules/workOrder.ts
index 07b58ef..4c73ff4 100644
--- a/src/store/modules/workOrder.ts
+++ b/src/store/modules/workOrder.ts
@@ -46,7 +46,7 @@ export const useWorkOrderStore = defineStore({
async fetchOrderList(pagination, keyword) {
const res = await getPackageList(pagination, keyword)
- if (res.data.length > 0) {
+ if (res.data&&res.data.length > 0) {
this.packageList.push(...res.data)
if (!this.activeId)
this.setActive(0)
diff --git a/src/views/home/aside/comp/modals/FilterModal.vue b/src/views/home/aside/comp/modals/FilterModal.vue
index 21c88e6..1133223 100644
--- a/src/views/home/aside/comp/modals/FilterModal.vue
+++ b/src/views/home/aside/comp/modals/FilterModal.vue
@@ -1,289 +1,309 @@
-
+
@@ -297,10 +317,11 @@ const inputHandler = debounce((word) => {
.wrapper {
display: flex;
flex-direction: column;
+ padding: 20px;
&-title {
font-weight: bold;
- font-size: 16px;
+ font-size: 20px;
}
&-bar {
@@ -316,7 +337,7 @@ const inputHandler = debounce((word) => {
.n-input {
width: 300px;
- border: 1px solid gray
+ border: 1px solid gray;
}
}
@@ -334,14 +355,23 @@ const inputHandler = debounce((word) => {
position: relative;
&:before {
- background-color: #1980FF;
+ background-color: #1980ff;
content: "";
width: 5px;
border-radius: 2px;
top: 0;
+ left: 3px;
bottom: 0;
position: absolute;
}
+ &-title {
+ font-size: 16px;
+ font-family: PingFang SC, PingFang SC-Medium;
+ font-weight: Medium;
+ text-align: left;
+ color: #333333;
+ line-height: 22px;
+ }
}
}
diff --git a/src/views/task/modal/ConfrimModal.vue b/src/views/task/modal/ConfrimModal.vue
index dc1378a..a60f02f 100644
--- a/src/views/task/modal/ConfrimModal.vue
+++ b/src/views/task/modal/ConfrimModal.vue
@@ -31,19 +31,21 @@ const backOptions = ref([])
const reasonOptions = ref([])
const selectBackId = ref(null)
const selectRejectId = ref(null)
+const selectItem = ref(null)
const otherValue = ref(null)
const showOther = computed(() => {
- return selectRejectId.value === 'other'
+ return (selectItem.value as any)?.label === '其他'
})
const comomitValue = computed(() => {
- return selectRejectId.value === 'other' ? otherValue.value : selectRejectId.value
+ return (selectItem.value as any)?.label === '其他' ? otherValue.value : selectRejectId.value
})
async function handleSumbit(e: MouseEvent) {
e.preventDefault()
closeModal()
- emit('commit', unref(comomitValue), unref(selectBackId), selectRejectId.value === 'other')
+ // selectRejectId.value === 'other'
+ emit('commit', unref(comomitValue), unref(selectBackId), showOther.value)
}
onBeforeMount(async () => {
@@ -53,12 +55,21 @@ onBeforeMount(async () => {
reasonOptions.value = rejectList
backOptions.value = backList
+ // TODO 删除此项 通过name=其他 判断
// 添加其他选项
- reasonOptions.value.push({
- label: '其他',
- value: 'other',
- })
+ // reasonOptions.value.push({
+ // label: '其他',
+ // value: 'other',
+ // })
})
+
+async function selectChange(id){
+ console.log(id,'selectChange')
+ selectItem.value = reasonOptions.value.find(v=>v.id == id);
+
+
+}
+
@@ -79,9 +90,18 @@ onBeforeMount(async () => {
不通过原因
-
+
+
+
+
+
+