Browse Source

配件商城和车型

caojunjie 2 năm trước cách đây
mục cha
commit
ac903c9546

+ 8 - 0
src/views/salesOrder/detailsPage.vue

@@ -492,6 +492,14 @@ export default {
     if (this.detailData.id) {
       this.getDetail(this.detailData.id);
     }
+    console.log(this.detailData)
+    if (this.detailData.billType == "XS"){
+      this.findObject(this.option.column, "sysNo").label = "销售单号";
+      this.findObject(this.option.column, "srcOrderNo").label = "退款单号";
+    }else if (this.detailData.billType == "XSTH"){
+      this.findObject(this.option.column, "sysNo").label = "退款单号";
+      this.findObject(this.option.column, "srcOrderNo").label = "销售单号";
+    }
     if (this.detailData.status == 1) {
       this.option.disabled = true;
       this.option2.disabled = true;

+ 2 - 1
src/views/salesOrder/index.vue

@@ -485,7 +485,8 @@ export default {
     editOpen(row, status) {
       this.detailData = {
         id: row.id,
-        status: status
+        status: status,
+        billType:row.billType
       };
       this.show = false;
       this.$store.commit("IN_PJXS_STATUS");

+ 6 - 0
src/views/vehicleBrandAndModel/index.vue

@@ -33,6 +33,7 @@
                 action="/api/blade-client/vehicleBrand/importBrand"
                 :headers="headers"
                 :on-error="onError"
+                :on-success="onSuccess"
                 :show-file-list="false"
                 multiple>
               <el-button size="small" type="primary">导入品牌</el-button>
@@ -42,6 +43,7 @@
                 action="/api/blade-client/vehicleSeries/importSeries"
                 :headers="headers"
                 :on-error="onError"
+                :on-success="onSuccess"
                 :show-file-list="false"
                 multiple>
               <el-button size="small" type="primary">导入车系</el-button>
@@ -51,6 +53,7 @@
                 action="/api/blade-client/vehicleModel/importModel"
                 :headers="headers"
                 :on-error="onError"
+                :on-success="onSuccess"
                 :show-file-list="false"
                 multiple>
               <el-button size="small" type="primary">导入车型</el-button>
@@ -208,6 +211,9 @@ export default {
     onError(err, file, fileList){
       this.$message.error(JSON.parse(err.message).msg)
     },
+    onSuccess(response, file, fileList){
+      this.onLoad(this.page,this.search)
+    },
     check(row){
       this.form = row
       this.detailsOpen = true

+ 1 - 1
vue.config.js

@@ -32,7 +32,7 @@ module.exports = {
       '/api': {
         //本地服务接口地址
         // target: 'http://192.168.3.64:1080',
-        // target: 'http://192.168.0.103:1080',
+        // target: 'http://192.168.0.106:1080',
         // 打包地址
         target: 'http://121.37.83.47:10004',//服务器ip
         // target: 'http://trade.tubaosoft.com:10004',//服务器域名