全局处理

This commit is contained in:
13405411873 2024-09-23 23:36:40 +08:00
parent 1e4b7c5935
commit 684b950c33
6 changed files with 22 additions and 7 deletions

View File

@ -232,7 +232,7 @@ export default {
fileSize: fileInfo.size fileSize: fileInfo.size
}; };
save(data).then(res => { save(data).then(res => {
if (res.code === 200) { if (res.code === 0) {
this.folder = false; this.folder = false;
this.form = {}; this.form = {};
} else { } else {

View File

@ -133,8 +133,8 @@ export default {
}, },
data() { data() {
return { return {
// tenantCode:"lighting",
tenantCode:"lanan", tenantCode:"lanan",
// tenantCode:"lanan",
codeUrl: "", codeUrl: "",
// //
captchaEnable: false, captchaEnable: false,

View File

@ -471,7 +471,7 @@
settleAccounts(id){ settleAccounts(id){
settleAccounts(id).then(res=>{ settleAccounts(id).then(res=>{
if (res.code == 200){ if (res.code == 0){
this.$message.success("清算成功") this.$message.success("清算成功")
this.getList() this.getList()
} }

View File

@ -566,7 +566,7 @@
}) })
editSkuPrice(reqData).then(res=>{ editSkuPrice(reqData).then(res=>{
if(res.code == 200){ if(res.code == 0){
this.$message.success("成功"); this.$message.success("成功");
this.editPriceFlag = false this.editPriceFlag = false
} }

View File

@ -543,7 +543,7 @@
settleAccounts(id){ settleAccounts(id){
settleAccounts(id).then(res=>{ settleAccounts(id).then(res=>{
if (res.code == 200){ if (res.code == 0){
this.$message.success("清算成功") this.$message.success("清算成功")
this.getList() this.getList()
} }

View File

@ -90,6 +90,11 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<!-- 展示形式二维码 URL -->
<el-dialog title="微信扫一扫" :visible.sync="qrCode.visible" width="700px" append-to-body
:close-on-press-escape="false">
<qrcode-vue :value="qrCode.url" size="500" level="L" />
</el-dialog>
<!-- 分页组件 --> <!-- 分页组件 -->
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNo" :limit.sync="queryParams.pageSize" <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNo" :limit.sync="queryParams.pageSize"
@pagination="getList"/> @pagination="getList"/>
@ -101,14 +106,20 @@
<script> <script>
import * as OrderInfoApi from '@/api/repair/orderinfo'; import * as OrderInfoApi from '@/api/repair/orderinfo';
import OrderInfoForm from './OrderInfoForm.vue'; import OrderInfoForm from './OrderInfoForm.vue';
import QrcodeVue from 'qrcode.vue'
export default { export default {
name: "OrderInfo", name: "OrderInfo",
components: { components: {
OrderInfoForm, OrderInfoForm,
QrcodeVue
}, },
data() { data() {
return { return {
qrCode: { //
url: '',
title: '',
visible: false,
},
// //
loading: true, loading: true,
// //
@ -194,7 +205,11 @@ export default {
orderId:orderId orderId:orderId
} }
const res = await OrderInfoApi.toPay(data); const res = await OrderInfoApi.toPay(data);
console.log(res,208)
this.qrCode = {
url: res.data.code_url,
visible: true
}
}, },
/** 添加/修改操作 */ /** 添加/修改操作 */
openForm(id) { openForm(id) {