全局处理
This commit is contained in:
parent
1e4b7c5935
commit
684b950c33
@ -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 {
|
||||||
|
@ -133,8 +133,8 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
// tenantCode:"lighting",
|
|
||||||
tenantCode:"lanan",
|
tenantCode:"lanan",
|
||||||
|
// tenantCode:"lanan",
|
||||||
codeUrl: "",
|
codeUrl: "",
|
||||||
//是否开启图形验证码
|
//是否开启图形验证码
|
||||||
captchaEnable: false,
|
captchaEnable: false,
|
||||||
|
@ -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()
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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()
|
||||||
}
|
}
|
||||||
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user