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 {
// orderPageSize: 10,
overwriteFiledJson: true
}
this.loading = true
billDetailPage(params).then(res => {
this.billTmplInfo = deepClone(res)
this.handleBillVisible()
}).finally(() => {
this.loading = false
})
},
splitDialogVisible() {
......@@ -520,9 +523,12 @@ export default {
// orderPageSize: 10,
overwriteFiledJson: false
}
this.loading = true
billDetailPage(params).then(res => {
this.billTmplInfo = deepClone(res)
this.handleChangeDetailVisible()
}).finally(() => {
this.loading = false
})
},
......
......@@ -19,9 +19,9 @@
<el-table-column align="center" width="60px" label="序号" type="index" :index="
(index) =>
index +
((page.currentPage
? page.currentPage
: page.currentPage) -
((page.pageNum
? page.pageNum
: page.pageNum) -
1) * page.pageSize + 1
" />
<el-table-column label="订单编号" prop="orderCode" align="center"></el-table-column>
......@@ -57,7 +57,7 @@
</template>
</el-table-column>
</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">
<span>已选订单:</span>
<el-tooltip class="item" :content="formatSelected(selectedData, 'all')" placement="right">
......@@ -123,15 +123,6 @@ export default {
isClear: true,
pickerOptions: 'rangePickerOptions'
}, {
label: '支付方式',
name: 'payType',
type: 'select',
isClear: true,
optionList: [],
optionId: 'confId',
optionLabel: 'confLabel',
optionsName: 'searchPayTypeList'
}, {
label: '商品名称',
name: 'orderGoodsName',
type: 'input',
......@@ -142,7 +133,7 @@ export default {
tableTotal: 0,
page: {
pageSize: 10,
currentPage: 1
pageNum: 1
},
baseData: {
searchPayTypeList: deepClone(payTypeList)
......@@ -240,9 +231,11 @@ export default {
},
// 输入框输入限制
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
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)
const selIndex = this.selectedData?.findIndex(val => val.orderCode == row.orderCode)
if (selIndex > -1) {
......@@ -288,7 +281,7 @@ export default {
ymerchantId: this.infoForm?.yqMerchantId, // 对账园区店
merchantId: this.infoForm?.shopMerchantId, // 对账流量方
...searchFormSearch,
currentPage: this.page.currentPage,
pageNum: this.page.pageNum,
pageSize: this.page.pageSize,
// filterTransferAccounts: true, // 固定传参
// shopTrafficMoneyFlag: 'Y', // 固定传参
......@@ -296,7 +289,7 @@ export default {
}
},
jumpPage(page) {
this.page.currentPage = page
this.page.pageNum = page
this.getOrderList()
},
handleSearch() {
......@@ -311,7 +304,7 @@ export default {
payType: '',
orderGoodsName: ''
}
this.page.currentPage = 1
this.page.pageNum = 1
this.handleSearch()
},
......
<template>
<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-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">
<template slot-scope="scope">
{{ scope.$index + 1 }}
......@@ -30,7 +30,7 @@
<el-table-column label="操作" width="120" align="center" v-if="isEdit">
<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>
</el-table-column>
</el-table>
......@@ -121,11 +121,12 @@ export default {
deleteRow(index) {
this.tableData.splice(index, 1);
this.tableOldData = deepClone(this.tableData)
this.$emit('handleInputBlur')
},
handleInput(rowIdx, attr) {
const val = this.tableData[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]
},
handleInputBlur() {
......@@ -144,12 +145,19 @@ export default {
}
</script>
<style scoped>
<style lang="scss">
.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 {
margin-bottom: 0;
.el-form-item {
margin-bottom: 0;
}
}
</style>
......@@ -4,7 +4,7 @@
<div class="container">
<AccountTmpl ref="accountTmpl" :type="type" :tmplSelectList="tmplSelectList"></AccountTmpl>
</div>
<div class="footer">
<div class="tmpl-footer">
<el-button @click="handleClose">取消</el-button>
<el-button @click="handleConfirm" type="primary" :loading="$store.state.d2admin.loading.value">确定</el-button>
</div>
......@@ -60,6 +60,10 @@ export default {
</script>
<style lang="scss" scoped>
::v-deep.tmpl-drawer {
.el-drawer__body {
overflow: scroll;
height: calc(100% - 400px);
}
.el-drawer__header {
box-sizing: border-box;
height: 60px;
......@@ -74,12 +78,19 @@ export default {
.container {
box-sizing: border-box;
overflow: scroll;
height: calc(100% - 400px);
padding: 20px;
padding: 20px 20px 60px;
}
}
.footer {
.tmpl-footer {
position: absolute;
width: 100%;
height: 60px;
line-height: 60px;
bottom: 0;
right: 0;
background: #ffffff;
text-align: right;
margin-right: 30px;
z-index: 9;
}
</style>
<!-- 下载对账单 -->
<template>
<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-item label="商户类型:" prop="merchantType">
<el-radio-group v-model="infoForm.merchantType" @change="changeType">
......
......@@ -452,7 +452,7 @@ export default {
// 查询领料技师
getRoleTechnicianList() {
const params = {}
params.yqMerchantId = this.userInfo.merchant.merchantId
// params.yqMerchantId = this.userInfo.merchant.merchantId
getRoleTechnician(params).then(res => {
this.baseData.technicianList = res
this.getOptionsList()
......
......@@ -487,7 +487,7 @@ export default {
}
})
console.log(res, 'res')
res.costPrivacyShowFlag = res?.shopMerchantConfig?.costPrivacyShowFlag || ''
res.costPrivacyShowFlag = res?.shopMerchantConfig?.costPrivacyShowFlag || null
res.bindMerchantId = res?.shopMerchantConfig?.bindMerchantId || ''
res.bindMerchantName = res?.shopMerchantConfig?.bindMerchantName || ''
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!