Browse Source

lihuilin/feature-20251104102812-现金二期
lhl 1 week ago
parent
commit
aeb0cc88aa
  1. 48
      src/views/moneyManage/receiveDetail/receiveFinance.vue
  2. 51
      src/views/moneyManage/receiveDetail/receiveHead.vue
  3. 48
      src/views/moneyManage/receiveDetail/receiveManage.vue
  4. 52
      src/views/moneyManage/receiveDetail/receiveService.vue

48
src/views/moneyManage/receiveDetail/receiveFinance.vue

@ -15,9 +15,8 @@
</div> </div>
<div class="rowItem"> <div class="rowItem">
<el-text style="width: 4vw;">所属地区</el-text> <el-text style="width: 4vw;">所属地区</el-text>
<el-select v-model="searchData.market" placeholder="请选择所属地区" style="width:10vw;" clearable>
<el-option v-for="item in marketList" :key="item" :label="item" :value="item" />
</el-select>
<el-cascader style="width: 9vw;" v-model="searchData.markets" :options="market"
placeholder="请选择所属地区" clearable @change="handleMarketChange" />
</div> </div>
<!-- 地区财务固定显示付款币种删除客服的订单状态 --> <!-- 地区财务固定显示付款币种删除客服的订单状态 -->
<div class="rowItem"> <div class="rowItem">
@ -637,6 +636,9 @@ const tableData = ref([]);
const total = ref(0); const total = ref(0);
const pageInfo = ref({ pageSize: 10, pageNum: 1 }); const pageInfo = ref({ pageSize: 10, pageNum: 1 });
//
const market = ref([])
// //
const searchData = ref({}); const searchData = ref({});
const defaultTime = [new Date(2000, 1, 1, 0, 0, 0), new Date(2000, 2, 1, 23, 59, 59)]; const defaultTime = [new Date(2000, 1, 1, 0, 0, 0), new Date(2000, 2, 1, 23, 59, 59)];
@ -873,6 +875,13 @@ const getlist = async () => {
else if (activeTab.value === 'done') searchData.value.status = 46; else if (activeTab.value === 'done') searchData.value.status = 46;
else if (activeTab.value === 'reject') searchData.value.status = 2; else if (activeTab.value === 'reject') searchData.value.status = 2;
//
const markets = ref(null)
if(searchData.value.markets) {
markets.value = searchData.value.markets[searchData.value.markets.length - 1]
console.log('地区转换', markets.value)
}
const result = await request({ const result = await request({
url: '/cashCollection/selectCollection', url: '/cashCollection/selectCollection',
data: { data: {
@ -885,7 +894,8 @@ const getlist = async () => {
paymentCurrency: payCurrencySelect, paymentCurrency: payCurrencySelect,
submitterMarket: receivedMarket, submitterMarket: receivedMarket,
goodsName: goodsName, goodsName: goodsName,
market: MarketNameForId(searchData.value.market)
// market: MarketNameForId(searchData.value.market)
market:markets.value
} }
} }
}); });
@ -1260,6 +1270,7 @@ onMounted(async () => {
// //
const bgImg = new Image(); const bgImg = new Image();
bgImg.src = '/src/assets/receive-recall.png'; bgImg.src = '/src/assets/receive-recall.png';
getMarket()
}); });
// 2.10 使 // 2.10 使
@ -1271,6 +1282,35 @@ const customUpload = () => { };
const handleDatePickerChange = () => { }; const handleDatePickerChange = () => { };
const disabledDate = () => false; const disabledDate = () => false;
const handleSortChange = () => { }; const handleSortChange = () => { };
const getMarket = async function () {
try {
const result = await API({
url: '/market/selectMarket',
})
console.log('看看地区树', result)
const transformTree = (nodes) => {
const allChildren = nodes.flatMap(node => node.children || []);
return allChildren.map(child => {
const grandchildren = child.children && child.children.length
? transformTree([child])
: null;
return {
value: child.id,
label: child.name,
children: grandchildren
};
});
};
market.value = transformTree(result.data)
console.log('转换后的地区树==============', market.value)
} catch (error) {
console.log('请求失败', error)
}
}
const handlePagination = (type, val) => { const handlePagination = (type, val) => {
if (type === 'size') pageInfo.value.pageSize = val; if (type === 'size') pageInfo.value.pageSize = val;
else pageInfo.value.pageNum = val; else pageInfo.value.pageNum = val;

51
src/views/moneyManage/receiveDetail/receiveHead.vue

@ -15,9 +15,11 @@
</div> </div>
<div class="rowItem"> <div class="rowItem">
<el-text style="width: 4vw;">所属地区</el-text> <el-text style="width: 4vw;">所属地区</el-text>
<el-select v-model="searchData.market" placeholder="请选择所属地区" style="width:10vw;" clearable>
<el-option v-for="item in marketList" :key="item" :label="item" :value="item" />
</el-select>
<!-- <el-select v-model="searchData.market" placeholder="请选择所属地区" style="width:10vw;" clearable>
<el-option v-for="item in market" :key="item" :label="item" :value="item" />
</el-select> -->
<el-cascader style="width: 9vw;" v-model="searchData.markets" :options="market"
placeholder="请选择所属地区" clearable @change="handleMarketChange" />
</div> </div>
<!-- 地区财务固定显示付款币种删除客服的订单状态 --> <!-- 地区财务固定显示付款币种删除客服的订单状态 -->
<div class="rowItem"> <div class="rowItem">
@ -502,6 +504,9 @@ import _ from 'lodash';
import { Plus } from '@element-plus/icons-vue'; import { Plus } from '@element-plus/icons-vue';
import { startsWith } from './utils/util.js' import { startsWith } from './utils/util.js'
//
const market = ref([])
// //
import CurrencySelect from '@/components/MoneyManage/CurrencySelect.vue'; import CurrencySelect from '@/components/MoneyManage/CurrencySelect.vue';
@ -753,6 +758,13 @@ const getlist = async () => {
if (activeTab.value === 'pass') searchData.value.status = 13; if (activeTab.value === 'pass') searchData.value.status = 13;
else if (activeTab.value === 'done') searchData.value.status = 46; else if (activeTab.value === 'done') searchData.value.status = 46;
//
const markets = ref(null)
if (searchData.value.markets) {
markets.value = searchData.value.markets[searchData.value.markets.length - 1]
console.log('地区转换', markets.value)
}
const result = await request({ const result = await request({
url: '/cashCollection/selectCollection', url: '/cashCollection/selectCollection',
data: { data: {
@ -765,7 +777,8 @@ const getlist = async () => {
paymentCurrency: payCurrencySelect, paymentCurrency: payCurrencySelect,
submitterMarket: receivedMarket, submitterMarket: receivedMarket,
goodsName: goodsName, goodsName: goodsName,
market: MarketNameForId(searchData.value.market)
//market: MarketNameForId(searchData.value.market)
market: markets.value
} }
} }
}); });
@ -1062,6 +1075,7 @@ onMounted(async () => {
// //
const bgImg = new Image(); const bgImg = new Image();
bgImg.src = '/src/assets/receive-recall.png'; bgImg.src = '/src/assets/receive-recall.png';
getMarket()
}); });
// 2.10 使 // 2.10 使
@ -1072,6 +1086,35 @@ const customUpload = () => { };
const handleDatePickerChange = () => { }; const handleDatePickerChange = () => { };
const disabledDate = () => false; const disabledDate = () => false;
const handleSortChange = () => { }; const handleSortChange = () => { };
const getMarket = async function () {
try {
const result = await API({
url: '/market/selectMarket',
})
console.log('看看地区树', result)
const transformTree = (nodes) => {
const allChildren = nodes.flatMap(node => node.children || []);
return allChildren.map(child => {
const grandchildren = child.children && child.children.length
? transformTree([child])
: null;
return {
value: child.id,
label: child.name,
children: grandchildren
};
});
};
market.value = transformTree(result.data)
console.log('转换后的地区树==============', market.value)
} catch (error) {
console.log('请求失败', error)
}
}
const handlePagination = (type, val) => { const handlePagination = (type, val) => {
if (type === 'size') pageInfo.value.pageSize = val; if (type === 'size') pageInfo.value.pageSize = val;
else pageInfo.value.pageNum = val; else pageInfo.value.pageNum = val;

48
src/views/moneyManage/receiveDetail/receiveManage.vue

@ -15,9 +15,8 @@
</div> </div>
<div class="rowItem"> <div class="rowItem">
<el-text style="width: 4vw;">所属地区</el-text> <el-text style="width: 4vw;">所属地区</el-text>
<el-select v-model="searchData.market" placeholder="请选择所属地区" style="width:10vw;" clearable>
<el-option v-for="item in marketList" :key="item" :label="item" :value="item" />
</el-select>
<el-cascader style="width: 9vw;" v-model="searchData.markets" :options="market"
placeholder="请选择所属地区" clearable @change="handleMarketChange" />
</div> </div>
<!-- 地区财务固定显示付款币种删除客服的订单状态 --> <!-- 地区财务固定显示付款币种删除客服的订单状态 -->
<div class="rowItem"> <div class="rowItem">
@ -613,6 +612,9 @@ import _ from 'lodash';
import { Plus } from '@element-plus/icons-vue'; import { Plus } from '@element-plus/icons-vue';
import { startsWith } from './utils/util.js' import { startsWith } from './utils/util.js'
//
const market = ref([])
// //
import CurrencySelect from '@/components/MoneyManage/CurrencySelect.vue'; import CurrencySelect from '@/components/MoneyManage/CurrencySelect.vue';
@ -873,6 +875,13 @@ const getlist = async () => {
else if (activeTab.value === 'done') searchData.value.status = 46; else if (activeTab.value === 'done') searchData.value.status = 46;
else if (activeTab.value === 'reject') searchData.value.status = 2; else if (activeTab.value === 'reject') searchData.value.status = 2;
//
const markets = ref(null)
if (searchData.value.markets) {
markets.value = searchData.value.markets[searchData.value.markets.length - 1]
console.log('地区转换', markets.value)
}
const result = await request({ const result = await request({
url: '/cashCollection/selectCollection', url: '/cashCollection/selectCollection',
data: { data: {
@ -885,7 +894,8 @@ const getlist = async () => {
paymentCurrency: payCurrencySelect, paymentCurrency: payCurrencySelect,
submitterMarket: receivedMarket, submitterMarket: receivedMarket,
goodsName: goodsName, goodsName: goodsName,
market: MarketNameForId(searchData.value.market)
//market: MarketNameForId(searchData.value.market)
market: markets.value
} }
} }
}); });
@ -1260,6 +1270,7 @@ onMounted(async () => {
// //
const bgImg = new Image(); const bgImg = new Image();
bgImg.src = '/src/assets/receive-recall.png'; bgImg.src = '/src/assets/receive-recall.png';
getMarket()
}); });
// 2.10 使 // 2.10 使
@ -1271,6 +1282,35 @@ const customUpload = () => { };
const handleDatePickerChange = () => { }; const handleDatePickerChange = () => { };
const disabledDate = () => false; const disabledDate = () => false;
const handleSortChange = () => { }; const handleSortChange = () => { };
const getMarket = async function () {
try {
const result = await API({
url: '/market/selectMarket',
})
console.log('看看地区树', result)
const transformTree = (nodes) => {
const allChildren = nodes.flatMap(node => node.children || []);
return allChildren.map(child => {
const grandchildren = child.children && child.children.length
? transformTree([child])
: null;
return {
value: child.id,
label: child.name,
children: grandchildren
};
});
};
market.value = transformTree(result.data)
console.log('转换后的地区树==============', market.value)
} catch (error) {
console.log('请求失败', error)
}
}
const handlePagination = (type, val) => { const handlePagination = (type, val) => {
if (type === 'size') pageInfo.value.pageSize = val; if (type === 'size') pageInfo.value.pageSize = val;
else pageInfo.value.pageNum = val; else pageInfo.value.pageNum = val;

52
src/views/moneyManage/receiveDetail/receiveService.vue

@ -16,9 +16,8 @@
</div> </div>
<div class="rowItem"> <div class="rowItem">
<el-text style="width: 4vw;">所属地区</el-text> <el-text style="width: 4vw;">所属地区</el-text>
<el-select v-model="searchData.market" placeholder="请选择所属地区" style="width:10vw;" clearable>
<el-option v-for="item in marketList" :key="item" :label="item" :value="item" />
</el-select>
<el-cascader style="width: 9vw;" v-model="searchData.markets" :options="market"
placeholder="请选择所属地区" clearable @change="handleMarketChange" />
</div> </div>
<div class="rowItem"> <div class="rowItem">
<el-text style="width: 4vw;">订单状态</el-text> <el-text style="width: 4vw;">订单状态</el-text>
@ -428,6 +427,9 @@ const total = ref(0) // 总条数
const pageInfo = ref({ pageSize: 10, pageNum: 1 }) // const pageInfo = ref({ pageSize: 10, pageNum: 1 }) //
const numUnitList = ref(['年', '月']) const numUnitList = ref(['年', '月'])
//
const market = ref([])
// //
const ifAddDone = ref(false) const ifAddDone = ref(false)
const ifReAddDone = ref(false) const ifReAddDone = ref(false)
@ -501,6 +503,13 @@ const getlist = async () => {
const cashRoleId = '0' const cashRoleId = '0'
const receivedMarket = '' const receivedMarket = ''
//
if (searchData.value.markets) {
searchData.value.market = searchData.value.markets[searchData.value.markets.length - 1]
} else {
searchData.value.market = ''
}
const result = await request({ const result = await request({
url: '/cashCollection/selectCollection', url: '/cashCollection/selectCollection',
data: { data: {
@ -686,7 +695,7 @@ const handleAddForm = async () => {
} }
} }
if(addFormData.value.numUnit == ''){
if (addFormData.value.numUnit == '') {
ElMessage.error('请选择产品数量单位'); ElMessage.error('请选择产品数量单位');
return; return;
} }
@ -730,7 +739,7 @@ const handleEditForm = async () => {
ElMessage.error(testGold().message); ElMessage.error(testGold().message);
return; return;
} }
if(typeof addFormData.value.activity == 'string'){
if (typeof addFormData.value.activity == 'string') {
console.log('转换前:', addFormData.value.activity); console.log('转换前:', addFormData.value.activity);
addFormData.value.activity = activityList.value.find(item => item.activityName === addFormData.value.activity).id addFormData.value.activity = activityList.value.find(item => item.activityName === addFormData.value.activity).id
@ -747,7 +756,7 @@ const handleEditForm = async () => {
return; return;
} }
} }
if(addFormData.value.numUnit == ''){
if (addFormData.value.numUnit == '') {
ElMessage.error('请选择产品数量单位'); ElMessage.error('请选择产品数量单位');
return; return;
} }
@ -970,7 +979,7 @@ const submitRefund = async () => {
freeGold: (refundFormData.value.freeGold) * 100 || 0, freeGold: (refundFormData.value.freeGold) * 100 || 0,
partRefundGold: (refundFormData.value.partRefundGold) * 100 || 0, partRefundGold: (refundFormData.value.partRefundGold) * 100 || 0,
partRefundFree: (refundFormData.value.partRefundFree) * 100 || 0, partRefundFree: (refundFormData.value.partRefundFree) * 100 || 0,
handlingCharge:(refundFormData.value.handlingCharge) * 100 || 0,
handlingCharge: (refundFormData.value.handlingCharge) * 100 || 0,
} }
}) })
if (result.code == 200) { if (result.code == 200) {
@ -1019,13 +1028,42 @@ const getAdminData = async () => {
// //
const paytypeList = ["Stripe-链接收款", "PaymentAsia-链接收款", "Ipay88-链接收款", "银行转账", "刷卡", "现金", "支票", "Grabpay", "Nets", "E-Transfer", "Paypal"] const paytypeList = ["Stripe-链接收款", "PaymentAsia-链接收款", "Ipay88-链接收款", "银行转账", "刷卡", "现金", "支票", "Grabpay", "Nets", "E-Transfer", "Paypal"]
const getMarket = async function () {
try {
const result = await API({
url: '/market/selectMarket',
})
console.log('看看地区树', result)
const transformTree = (nodes) => {
const allChildren = nodes.flatMap(node => node.children || []);
return allChildren.map(child => {
const grandchildren = child.children && child.children.length
? transformTree([child])
: null;
return {
value: child.id,
label: child.name,
children: grandchildren
};
});
};
market.value = transformTree(result.data)
console.log('转换后的地区树==============', market.value)
} catch (error) {
console.log('请求失败', error)
}
}
// //
onMounted(async () => { onMounted(async () => {
await getAdminData() await getAdminData()
await getActivitys() await getActivitys()
// //
getlist() getlist()
await getMarket()
}) })
</script> </script>

Loading…
Cancel
Save