Commit 9e022b2e by 胡悦

bug修复

1 parent 46da9940
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
</template> </template>
</el-form-item> </el-form-item>
<el-form-item label="关联门店:" prop="isRelMerchant"> <el-form-item label="关联门店:" prop="isRelMerchant">
<el-radio-group v-model="formData.isRelMerchant"> <el-radio-group v-model="formData.isRelMerchant" @input="radioInput">
<el-radio :label="1">全部门店</el-radio> <el-radio :label="1">全部门店</el-radio>
<el-radio :label="2">关联门店</el-radio> <el-radio :label="2">关联门店</el-radio>
</el-radio-group> </el-radio-group>
...@@ -371,6 +371,11 @@ export default { ...@@ -371,6 +371,11 @@ export default {
this.levelOptionMapping = [1, 2, 3] this.levelOptionMapping = [1, 2, 3]
this.storeSelected = [] this.storeSelected = []
}, },
radioInput(val) {
if (val == 1) {
this.storeData = []
}
},
// 关联门店 // 关联门店
openMerchantDialog() { openMerchantDialog() {
if (this.brandData.length == 0) { if (this.brandData.length == 0) {
...@@ -378,14 +383,15 @@ export default { ...@@ -378,14 +383,15 @@ export default {
return return
} }
this.storeVisible = true this.storeVisible = true
if (this.storeData.length > 0) { // if () {
this.storeSelected = this.storeData this.storeSelected = this.storeData.length > 0 ? this.storeData : []
} // }
}, },
handleRelateStoreConfirm(selectedData) { handleRelateStoreConfirm(selectedData) {
console.log(selectedData) console.log(selectedData)
this.storeData = selectedData this.storeData = selectedData
this.storeVisible = false this.storeVisible = false
if(selectedData.length > 0) this.$refs.basicForm.clearValidate('isRelMerchant')
}, },
// 关闭门店弹窗 // 关闭门店弹窗
handleRelateStoreClose() { handleRelateStoreClose() {
......
...@@ -197,6 +197,16 @@ import { uploadFile } from "@/api/sys.base" ...@@ -197,6 +197,16 @@ import { uploadFile } from "@/api/sys.base"
export default { export default {
name: "NewSignRefundDialog", name: "NewSignRefundDialog",
data() { data() {
var checkAmount = (rule, value, callback) => {
if (!value) {
return callback(new Error("请输入金额,支持输入1~999999的数字,支持小数点后2位"))
}
if (value > this.detail.total) {
callback(new Error('本次退款金额不可超过可退总价'))
} else {
callback()
}
}
return { return {
userInfo: this.$store.state.d2admin.user.info, userInfo: this.$store.state.d2admin.user.info,
loading: false, loading: false,
...@@ -466,7 +476,8 @@ export default { ...@@ -466,7 +476,8 @@ export default {
required: true, required: true,
message: "请输入金额,支持输入1~999999的数字,支持小数点后2位", message: "请输入金额,支持输入1~999999的数字,支持小数点后2位",
trigger: "change" trigger: "change"
} },
{ validator: checkAmount, trigger: "blur" }
] ]
}, },
{ {
......
...@@ -249,11 +249,15 @@ export default { ...@@ -249,11 +249,15 @@ export default {
) + ' 23:59:59' ) + ' 23:59:59'
delete params.extractionTime delete params.extractionTime
} }
if (params.checkStatus === 0) {
params.checkStatusList = [params.checkStatus]
delete params.checkStatus
}
if (params.checkStatus) { if (params.checkStatus) {
if (params.checkStatus == 3) { if (params.checkStatus == 3) {
params.checkStatusList = [3, 4] params.checkStatusList = [3, 4]
} else { } else {
params.checkStatusList = Array.from[params.checkStatus] params.checkStatusList = [params.checkStatus]
} }
delete params.checkStatus delete params.checkStatus
} }
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
</div> </div>
</template> </template>
</div> </div>
<d2-table-header title="审批列表"> <d2-table-header title="未推送列表">
<el-button size="mini" type="primary" plain @click="exportTable">导出</el-button> <el-button size="mini" type="primary" plain @click="exportTable">导出</el-button>
</d2-table-header> </d2-table-header>
<d2-table ref="table" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams" <d2-table ref="table" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams"
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
</div> </div>
</template> </template>
</div> </div>
<d2-table-header title="审批列表"> <d2-table-header title="推送列表">
<el-button size="mini" type="primary" plain @click="exportTable">导出</el-button> <el-button size="mini" type="primary" plain @click="exportTable">导出</el-button>
</d2-table-header> </d2-table-header>
<d2-table ref="table" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams" <d2-table ref="table" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!