fix: 自测bug修复。

This commit is contained in:
tianyongbao
2025-03-31 13:02:30 +08:00
parent ca5dca4c4e
commit a8efa6efac
4 changed files with 21 additions and 20 deletions

View File

@@ -138,6 +138,8 @@ const data = reactive({
queryParams: {
name: null,
type: null,
repayFlag: '1',
type: '1',
state: null
}
})

View File

@@ -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]
})

View File

@@ -33,7 +33,7 @@
<u--input v-model="form.ranking" type="number" placeholder="请填写排序"
inputAlign="right" border="none"></u--input>
</u-form-item>
<u-form-item label="备注" prop="remark" required labelPosition="top">
<u-form-item label="备注" prop="remark" labelPosition="top">
<u--textarea v-model="form.remark" placeholder="请填写备注" border="none" autoHeight inputAlign="right" count
maxlength="20000" style="padding:18rpx 0;"></u--textarea>
</u-form-item>

View File

@@ -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) {