|
@@ -163,6 +163,7 @@
|
|
|
<modifyMaxRecycle ref="maxRecycleRef" @refresh="reload" />
|
|
<modifyMaxRecycle ref="maxRecycleRef" @refresh="reload" />
|
|
|
<modifyDiscount ref="modifyDiscountRef" @refresh="reload" />
|
|
<modifyDiscount ref="modifyDiscountRef" @refresh="reload" />
|
|
|
<orderBlacklist ref="blacklistRef" @refresh="reload" />
|
|
<orderBlacklist ref="blacklistRef" @refresh="reload" />
|
|
|
|
|
+ <oneUpdate ref="oneUpdateRef" @submit="handleOneUpdateSubmit" />
|
|
|
</ele-page>
|
|
</ele-page>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -177,8 +178,10 @@
|
|
|
import modifyMaxRecycle from '@/views/recycle/components/modify-max-recycle.vue';
|
|
import modifyMaxRecycle from '@/views/recycle/components/modify-max-recycle.vue';
|
|
|
import modifyDiscount from '@/views/recycle/components/modify-discount.vue';
|
|
import modifyDiscount from '@/views/recycle/components/modify-discount.vue';
|
|
|
import orderBlacklist from '@/views/recycleOrder/detail/order-blacklist.vue';
|
|
import orderBlacklist from '@/views/recycleOrder/detail/order-blacklist.vue';
|
|
|
|
|
+ import oneUpdate from '@/views/recycle/components/one-update.vue';
|
|
|
import dayjs from 'dayjs';
|
|
import dayjs from 'dayjs';
|
|
|
import { useBookOperation } from '@/utils/use-book-operation';
|
|
import { useBookOperation } from '@/utils/use-book-operation';
|
|
|
|
|
+ import { ElMessage } from 'element-plus';
|
|
|
|
|
|
|
|
const { proxy } = getCurrentInstance();
|
|
const { proxy } = getCurrentInstance();
|
|
|
|
|
|
|
@@ -289,14 +292,20 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//一键更新
|
|
//一键更新
|
|
|
|
|
+ const oneUpdateRef = ref(null);
|
|
|
function handleOneUpdate() {
|
|
function handleOneUpdate() {
|
|
|
- let data = {
|
|
|
|
|
- alarmType: 3,
|
|
|
|
|
- reloadTime: dayjs().format('YYYY-MM-DD HH:mm:ss')
|
|
|
|
|
- };
|
|
|
|
|
- pageRef.value?.messageBoxConfirm({
|
|
|
|
|
- message: '确定一键更新吗?',
|
|
|
|
|
- fetch: () => proxy.$http.post('/book/stockAlarm/alarmReload', data)
|
|
|
|
|
|
|
+ oneUpdateRef.value?.handleOpen();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ //处理一键更新提交
|
|
|
|
|
+ function handleOneUpdateSubmit(data) {
|
|
|
|
|
+ data.alarmType = 3;
|
|
|
|
|
+ proxy.$http.post('/book/stockAlarm/alarmReload', data).then((res) => {
|
|
|
|
|
+ if (res.data.code == 200) {
|
|
|
|
|
+ ElMessage.success('操作成功');
|
|
|
|
|
+ } else {
|
|
|
|
|
+ ElMessage.error(res.data.msg);
|
|
|
|
|
+ }
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|