全局处理

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
};
save(data).then(res => {
if (res.code === 200) {
if (res.code === 0) {
this.folder = false;
this.form = {};
} else {

View File

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

View File

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

View File

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

View File

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

View File

@ -90,6 +90,11 @@
</template>
</el-table-column>
</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="getList"/>
@ -101,14 +106,20 @@
<script>
import * as OrderInfoApi from '@/api/repair/orderinfo';
import OrderInfoForm from './OrderInfoForm.vue';
import QrcodeVue from 'qrcode.vue'
export default {
name: "OrderInfo",
components: {
OrderInfoForm,
QrcodeVue
},
data() {
return {
qrCode: { //
url: '',
title: '',
visible: false,
},
//
loading: true,
//
@ -194,7 +205,11 @@ export default {
orderId:orderId
}
const res = await OrderInfoApi.toPay(data);
console.log(res,208)
this.qrCode = {
url: res.data.code_url,
visible: true
}
},
/** 添加/修改操作 */
openForm(id) {