Commit 3b2e1fa2 by 前端

Merge branch 'SAAS+V4.56.2' into 'SAAS+V5.0.0'

上线合并

See merge request !496
2 parents 049f034c 80bcd89f
...@@ -401,9 +401,12 @@ export default { ...@@ -401,9 +401,12 @@ export default {
// orderPageSize: 10, // orderPageSize: 10,
overwriteFiledJson: true overwriteFiledJson: true
} }
this.loading = true
billDetailPage(params).then(res => { billDetailPage(params).then(res => {
this.billTmplInfo = deepClone(res) this.billTmplInfo = deepClone(res)
this.handleBillVisible() this.handleBillVisible()
}).finally(() => {
this.loading = false
}) })
}, },
splitDialogVisible() { splitDialogVisible() {
...@@ -520,9 +523,12 @@ export default { ...@@ -520,9 +523,12 @@ export default {
// orderPageSize: 10, // orderPageSize: 10,
overwriteFiledJson: false overwriteFiledJson: false
} }
this.loading = true
billDetailPage(params).then(res => { billDetailPage(params).then(res => {
this.billTmplInfo = deepClone(res) this.billTmplInfo = deepClone(res)
this.handleChangeDetailVisible() this.handleChangeDetailVisible()
}).finally(() => {
this.loading = false
}) })
}, },
......
...@@ -19,9 +19,9 @@ ...@@ -19,9 +19,9 @@
<el-table-column align="center" width="60px" label="序号" type="index" :index=" <el-table-column align="center" width="60px" label="序号" type="index" :index="
(index) => (index) =>
index + index +
((page.currentPage ((page.pageNum
? page.currentPage ? page.pageNum
: page.currentPage) - : page.pageNum) -
1) * page.pageSize + 1 1) * page.pageSize + 1
" /> " />
<el-table-column label="订单编号" prop="orderCode" align="center"></el-table-column> <el-table-column label="订单编号" prop="orderCode" align="center"></el-table-column>
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination background @current-change="jumpPage" :current-page.sync="page.currentPage" :page-size="page.pageSize" layout="total, prev, pager, next" :total="tableTotal" /> <el-pagination background @current-change="jumpPage" :current-page.sync="page.pageNum" :page-size="page.pageSize" layout="total, prev, pager, next" :total="tableTotal" />
<div class="selected_box" v-if="selectedData.length"> <div class="selected_box" v-if="selectedData.length">
<span>已选订单:</span> <span>已选订单:</span>
<el-tooltip class="item" :content="formatSelected(selectedData, 'all')" placement="right"> <el-tooltip class="item" :content="formatSelected(selectedData, 'all')" placement="right">
...@@ -123,15 +123,6 @@ export default { ...@@ -123,15 +123,6 @@ export default {
isClear: true, isClear: true,
pickerOptions: 'rangePickerOptions' pickerOptions: 'rangePickerOptions'
}, { }, {
label: '支付方式',
name: 'payType',
type: 'select',
isClear: true,
optionList: [],
optionId: 'confId',
optionLabel: 'confLabel',
optionsName: 'searchPayTypeList'
}, {
label: '商品名称', label: '商品名称',
name: 'orderGoodsName', name: 'orderGoodsName',
type: 'input', type: 'input',
...@@ -142,7 +133,7 @@ export default { ...@@ -142,7 +133,7 @@ export default {
tableTotal: 0, tableTotal: 0,
page: { page: {
pageSize: 10, pageSize: 10,
currentPage: 1 pageNum: 1
}, },
baseData: { baseData: {
searchPayTypeList: deepClone(payTypeList) searchPayTypeList: deepClone(payTypeList)
...@@ -240,9 +231,11 @@ export default { ...@@ -240,9 +231,11 @@ export default {
}, },
// 输入框输入限制 // 输入框输入限制
handleInput(e, index, row) { handleInput(e, index, row) {
let newValue = e.replace(/[^\d.]/g, '') var max = Math.abs(row.totalPrice)
var min = -max
let newValue = e
let oldValue = this.tableData[index].oldshopDivisionMoneyInput let oldValue = this.tableData[index].oldshopDivisionMoneyInput
this.$set(this.tableData[index], 'shopDivisionMoneyInput', limitPrice(newValue, oldValue, 6, 2)) this.$set(this.tableData[index], 'shopDivisionMoneyInput', limitPrice(newValue, oldValue, 20, 2, min, max, 'priceReg_negative_input'))
this.$set(this.tableData[index], 'oldshopDivisionMoneyInput', this.tableData[index].shopDivisionMoneyInput) this.$set(this.tableData[index], 'oldshopDivisionMoneyInput', this.tableData[index].shopDivisionMoneyInput)
const selIndex = this.selectedData?.findIndex(val => val.orderCode == row.orderCode) const selIndex = this.selectedData?.findIndex(val => val.orderCode == row.orderCode)
if (selIndex > -1) { if (selIndex > -1) {
...@@ -288,7 +281,7 @@ export default { ...@@ -288,7 +281,7 @@ export default {
ymerchantId: this.infoForm?.yqMerchantId, // 对账园区店 ymerchantId: this.infoForm?.yqMerchantId, // 对账园区店
merchantId: this.infoForm?.shopMerchantId, // 对账流量方 merchantId: this.infoForm?.shopMerchantId, // 对账流量方
...searchFormSearch, ...searchFormSearch,
currentPage: this.page.currentPage, pageNum: this.page.pageNum,
pageSize: this.page.pageSize, pageSize: this.page.pageSize,
// filterTransferAccounts: true, // 固定传参 // filterTransferAccounts: true, // 固定传参
// shopTrafficMoneyFlag: 'Y', // 固定传参 // shopTrafficMoneyFlag: 'Y', // 固定传参
...@@ -296,7 +289,7 @@ export default { ...@@ -296,7 +289,7 @@ export default {
} }
}, },
jumpPage(page) { jumpPage(page) {
this.page.currentPage = page this.page.pageNum = page
this.getOrderList() this.getOrderList()
}, },
handleSearch() { handleSearch() {
...@@ -311,7 +304,7 @@ export default { ...@@ -311,7 +304,7 @@ export default {
payType: '', payType: '',
orderGoodsName: '' orderGoodsName: ''
} }
this.page.currentPage = 1 this.page.pageNum = 1
this.handleSearch() this.handleSearch()
}, },
......
<template> <template>
<div class="dynamic-table-container"> <div class="dynamic-table-container">
{{configObj.title}}调整:<el-button type="default" v-if="isEdit" @click="addRow"> <span class="title">{{configObj.title}}调整:</span><el-button type="default" style="padding: 8px 20px;" v-if="isEdit" @click="addRow">
添加事由 添加事由
</el-button> </el-button>
<el-form :model="dynamicForm" ref="dynamicForm"> <el-form :model="dynamicForm" ref="dynamicForm">
<el-table :data="tableData" border style="width: 100%; margin-top: 20px"> <el-table :data="tableData" border style="width: 100%; margin-top: 20px !important;">
<el-table-column prop="index" label="序号" width="80" align="center"> <el-table-column prop="index" label="序号" width="80" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.$index + 1 }} {{ scope.$index + 1 }}
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<el-table-column label="操作" width="120" align="center" v-if="isEdit"> <el-table-column label="操作" width="120" align="center" v-if="isEdit">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" type="danger" @click="deleteRow(scope.$index)" icon="el-icon-delete"></el-button> <el-button size="mini" type="text" @click="deleteRow(scope.$index)">删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -121,11 +121,12 @@ export default { ...@@ -121,11 +121,12 @@ export default {
deleteRow(index) { deleteRow(index) {
this.tableData.splice(index, 1); this.tableData.splice(index, 1);
this.tableOldData = deepClone(this.tableData) this.tableOldData = deepClone(this.tableData)
this.$emit('handleInputBlur')
}, },
handleInput(rowIdx, attr) { handleInput(rowIdx, attr) {
const val = this.tableData[rowIdx][attr] const val = this.tableData[rowIdx][attr]
const oldVal = this.tableOldData[rowIdx][attr] const oldVal = this.tableOldData[rowIdx][attr]
this.tableData[rowIdx][attr] = limitPrice(val, oldVal, 9, 2, '', '', 'priceReg_negative') this.tableData[rowIdx][attr] = limitPrice(val, oldVal, 7, 2, '', '', 'priceReg_negative')
this.tableOldData[rowIdx][attr] = this.tableData[rowIdx][attr] this.tableOldData[rowIdx][attr] = this.tableData[rowIdx][attr]
}, },
handleInputBlur() { handleInputBlur() {
...@@ -144,12 +145,19 @@ export default { ...@@ -144,12 +145,19 @@ export default {
} }
</script> </script>
<style scoped> <style lang="scss">
.dynamic-table-container { .dynamic-table-container {
padding: 20px; box-sizing: border-box;
} padding: 20px 20px 0 20px;
.title {
font-size: 14px;
}
.el-table--medium td {
padding: 4px 16px !important;
}
.el-form-item { .el-form-item {
margin-bottom: 0; margin-bottom: 0;
}
} }
</style> </style>
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<div class="container"> <div class="container">
<AccountTmpl ref="accountTmpl" :type="type" :tmplSelectList="tmplSelectList"></AccountTmpl> <AccountTmpl ref="accountTmpl" :type="type" :tmplSelectList="tmplSelectList"></AccountTmpl>
</div> </div>
<div class="footer"> <div class="tmpl-footer">
<el-button @click="handleClose">取消</el-button> <el-button @click="handleClose">取消</el-button>
<el-button @click="handleConfirm" type="primary" :loading="$store.state.d2admin.loading.value">确定</el-button> <el-button @click="handleConfirm" type="primary" :loading="$store.state.d2admin.loading.value">确定</el-button>
</div> </div>
...@@ -60,6 +60,10 @@ export default { ...@@ -60,6 +60,10 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
::v-deep.tmpl-drawer { ::v-deep.tmpl-drawer {
.el-drawer__body {
overflow: scroll;
height: calc(100% - 400px);
}
.el-drawer__header { .el-drawer__header {
box-sizing: border-box; box-sizing: border-box;
height: 60px; height: 60px;
...@@ -74,12 +78,19 @@ export default { ...@@ -74,12 +78,19 @@ export default {
.container { .container {
box-sizing: border-box; box-sizing: border-box;
overflow: scroll; overflow: scroll;
height: calc(100% - 400px); padding: 20px 20px 60px;
padding: 20px;
} }
} }
.footer { .tmpl-footer {
position: absolute;
width: 100%;
height: 60px;
line-height: 60px;
bottom: 0;
right: 0;
background: #ffffff;
text-align: right; text-align: right;
margin-right: 30px; margin-right: 30px;
z-index: 9;
} }
</style> </style>
<!-- 下载对账单 --> <!-- 下载对账单 -->
<template> <template>
<d2-dialog title="下载对账单" :is-visible="accountVisible" class="accountDailog" width="688px" btn-ok-label="下载" @closeDialog="handleClose" @confirmDialog="handleAddConfirm"> <d2-dialog title="下载对账单" :is-visible="accountVisible" class="accountDailog" width="688px" btn-ok-label="下载" @closeDialog="handleClose" @confirmDialog="handleAddConfirm">
<!-- <el-button v-if="isTmpl" slot="btn-start" type="primary" @click="handleSystemBill">系统对账</el-button> --> <el-button v-if="isTmpl" slot="btn-start" type="primary" @click="handleSystemBill" :loading="$store.state.d2admin.loading.value">系统对账</el-button>
<el-form ref="accountForm" :model="infoForm" :rules="formRules" label-width="120px" v-loading="loading"> <el-form ref="accountForm" :model="infoForm" :rules="formRules" label-width="120px" v-loading="loading">
<el-form-item label="商户类型:" prop="merchantType"> <el-form-item label="商户类型:" prop="merchantType">
<el-radio-group v-model="infoForm.merchantType" @change="changeType"> <el-radio-group v-model="infoForm.merchantType" @change="changeType">
......
...@@ -452,7 +452,7 @@ export default { ...@@ -452,7 +452,7 @@ export default {
// 查询领料技师 // 查询领料技师
getRoleTechnicianList() { getRoleTechnicianList() {
const params = {} const params = {}
params.yqMerchantId = this.userInfo.merchant.merchantId // params.yqMerchantId = this.userInfo.merchant.merchantId
getRoleTechnician(params).then(res => { getRoleTechnician(params).then(res => {
this.baseData.technicianList = res this.baseData.technicianList = res
this.getOptionsList() this.getOptionsList()
......
...@@ -487,7 +487,7 @@ export default { ...@@ -487,7 +487,7 @@ export default {
} }
}) })
console.log(res, 'res') console.log(res, 'res')
res.costPrivacyShowFlag = res?.shopMerchantConfig?.costPrivacyShowFlag || '' res.costPrivacyShowFlag = res?.shopMerchantConfig?.costPrivacyShowFlag || null
res.bindMerchantId = res?.shopMerchantConfig?.bindMerchantId || '' res.bindMerchantId = res?.shopMerchantConfig?.bindMerchantId || ''
res.bindMerchantName = res?.shopMerchantConfig?.bindMerchantName || '' res.bindMerchantName = res?.shopMerchantConfig?.bindMerchantName || ''
res.boutiqueBusinessDevelopmentScene = res?.shopMerchantConfig?.boutiqueBusinessDevelopmentScene ? res?.shopMerchantConfig?.boutiqueBusinessDevelopmentScene.split(',') : [] res.boutiqueBusinessDevelopmentScene = res?.shopMerchantConfig?.boutiqueBusinessDevelopmentScene ? res?.shopMerchantConfig?.boutiqueBusinessDevelopmentScene.split(',') : []
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!