|
@@ -54,8 +54,8 @@
|
|
|
value-format="yyyy-MM-dd"
|
|
|
@change="searchOrderDate"
|
|
|
range-separator="至"
|
|
|
- start-placeholder="开始日期"
|
|
|
- end-placeholder="结束日期"
|
|
|
+ start-placeholder="销售开始日期"
|
|
|
+ end-placeholder="销售结束日期"
|
|
|
:picker-options="{ firstDayOfWeek: 1 }">
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
@@ -182,27 +182,19 @@
|
|
|
:page-sizes="pageInfo.page_size"
|
|
|
@pagination="getList" />
|
|
|
</div>
|
|
|
- <el-dialog
|
|
|
- title="退费"
|
|
|
- width="400px"
|
|
|
- :visible.sync="refundVisible"
|
|
|
- @close="refundVisible = false"
|
|
|
- >
|
|
|
- <el-form
|
|
|
- :model="refundForm"
|
|
|
- :rules="refundRules"
|
|
|
- ref="refundform"
|
|
|
- >
|
|
|
- <el-form-item
|
|
|
- label="退费金额"
|
|
|
- prop="money"
|
|
|
- label-width="100px"
|
|
|
- >
|
|
|
- <el-input
|
|
|
- v-model="refundForm.money"
|
|
|
- type="number"
|
|
|
- placeholder="请输入退费金额"
|
|
|
- />
|
|
|
+ <el-dialog title="退费"
|
|
|
+ width="400px"
|
|
|
+ :visible.sync="refundVisible"
|
|
|
+ @close="refundVisible = false">
|
|
|
+ <el-form :model="refundForm"
|
|
|
+ :rules="refundRules"
|
|
|
+ ref="refundform">
|
|
|
+ <el-form-item label="退费金额"
|
|
|
+ prop="money"
|
|
|
+ label-width="100px">
|
|
|
+ <el-input v-model="refundForm.money"
|
|
|
+ type="number"
|
|
|
+ placeholder="请输入退费金额" />
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<span slot="footer"
|
|
@@ -437,7 +429,7 @@ export default {
|
|
|
onFormClose (formName) { // 关闭弹窗重置验证
|
|
|
this.$refs[formName].clearValidate()
|
|
|
},
|
|
|
- refund(data) {
|
|
|
+ refund (data) {
|
|
|
refundSellOrder(data)
|
|
|
.then(res => {
|
|
|
this.getList()
|
|
@@ -450,21 +442,21 @@ export default {
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
|
})
|
|
|
- .then(() => {
|
|
|
- this.refund({
|
|
|
- ...data,
|
|
|
- reTry: true
|
|
|
+ .then(() => {
|
|
|
+ this.refund({
|
|
|
+ ...data,
|
|
|
+ reTry: true
|
|
|
+ })
|
|
|
})
|
|
|
- })
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- openRefund(row) {
|
|
|
+ openRefund (row) {
|
|
|
this.refundVisible = true
|
|
|
this.detail = row
|
|
|
},
|
|
|
- submitRefund() {
|
|
|
- console.log({...this.refundForm})
|
|
|
+ submitRefund () {
|
|
|
+ console.log({ ...this.refundForm })
|
|
|
},
|
|
|
onBackMoney (row) { // 退费
|
|
|
this.backStatus = true
|