diff --git a/src/pages/statistic/accounts/sleepAccounts/index.vue b/src/pages/statistic/accounts/sleepAccounts/index.vue index 45b4041..5fdab09 100644 --- a/src/pages/statistic/accounts/sleepAccounts/index.vue +++ b/src/pages/statistic/accounts/sleepAccounts/index.vue @@ -138,6 +138,8 @@ const data = reactive({ queryParams: { name: null, type: null, + repayFlag: '1', + type: '1', state: null } }) diff --git a/src/pages/work/accounts/accountDealRecord/addEdit.vue b/src/pages/work/accounts/accountDealRecord/addEdit.vue index f5c29a3..f72ec81 100644 --- a/src/pages/work/accounts/accountDealRecord/addEdit.vue +++ b/src/pages/work/accounts/accountDealRecord/addEdit.vue @@ -227,7 +227,10 @@ getDicts('deal_category').then(result => { else { queryAccountParams.value.type = null } - + + if(flag.value!=null){ + form.value.createTime = dayjs(new Date().getTime()).format("YYYY-MM-DD HH:mm:ss") + } listAccounts(queryAccountParams.value).then((response) => { accountNameList.value = [response.rows] }) diff --git a/src/pages/work/product/productInfor/addEdit.vue b/src/pages/work/product/productInfor/addEdit.vue index d749838..e3616aa 100644 --- a/src/pages/work/product/productInfor/addEdit.vue +++ b/src/pages/work/product/productInfor/addEdit.vue @@ -33,7 +33,7 @@ - + diff --git a/src/pages/work/product/productPriceRecord/addEdit.vue b/src/pages/work/product/productPriceRecord/addEdit.vue index 060491e..c27560e 100644 --- a/src/pages/work/product/productPriceRecord/addEdit.vue +++ b/src/pages/work/product/productPriceRecord/addEdit.vue @@ -159,23 +159,16 @@ function getData() { unitList.value =[res.data] }) - listProductInfor(queryProductParams.value).then((response) => { - productNameList.value = [response.rows] -}) - - // 记账类型 - getDicts('product_category').then(result => { - form.value.categoryName=dictStr(form.value.category, result.data) - }) - // 交易类型 - getDicts('product_unit').then(result => { - form.value.unitName=dictStr(form.value.unit, result.data) - }) if(form.value.id!=null){ getProductPriceRecord(form.value.id).then(res => { form.value = res.data - + queryProductParams.value.category = form.value.category + if(queryProductParams.value.category!=null){ + listProductInfor(queryProductParams.value).then((response) => { + productNameList.value = [response.rows] + }) } + // 记账类型 getDicts('product_category').then(result => { form.value.categoryName=dictStr(form.value.category, result.data) @@ -184,12 +177,15 @@ function getData() { getDicts('product_unit').then(result => { form.value.unitName=dictStr(form.value.unit, result.data) }) - - queryProductParams.value.category = form.value.category - listProductInfor(queryProductParams.value).then((response) => { - productNameList.value = [response.rows] - }) + if(flag.value!=null){ + form.value.recordTime = dayjs(new Date().getTime()).format("YYYY-MM-DD HH:mm:ss") + } + }) + }else { + listProductInfor(queryProductParams.value).then((response) => { + productNameList.value = [response.rows] +}) } } function dictStr(val, arr) {