全局处理
This commit is contained in:
parent
1e4b7c5935
commit
684b950c33
@ -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 {
|
||||
|
@ -133,8 +133,8 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
// tenantCode:"lighting",
|
||||
tenantCode:"lanan",
|
||||
// tenantCode:"lanan",
|
||||
codeUrl: "",
|
||||
//是否开启图形验证码
|
||||
captchaEnable: false,
|
||||
|
@ -471,7 +471,7 @@
|
||||
|
||||
settleAccounts(id){
|
||||
settleAccounts(id).then(res=>{
|
||||
if (res.code == 200){
|
||||
if (res.code == 0){
|
||||
this.$message.success("清算成功")
|
||||
this.getList()
|
||||
}
|
||||
|
@ -566,7 +566,7 @@
|
||||
})
|
||||
|
||||
editSkuPrice(reqData).then(res=>{
|
||||
if(res.code == 200){
|
||||
if(res.code == 0){
|
||||
this.$message.success("成功");
|
||||
this.editPriceFlag = false
|
||||
}
|
||||
|
@ -543,7 +543,7 @@
|
||||
|
||||
settleAccounts(id){
|
||||
settleAccounts(id).then(res=>{
|
||||
if (res.code == 200){
|
||||
if (res.code == 0){
|
||||
this.$message.success("清算成功")
|
||||
this.getList()
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user