caichengyu 6 kuukautta sitten
vanhempi
commit
4d99ac637d

+ 2 - 2
.env.production

@@ -4,8 +4,8 @@ VUE_APP_TITLE = 加载中...
 # 生产环境配置
 NODE_ENV = 'production'
 
-# 中正云教育管理后台/生产环境'https://cloud.xyyxt.net/'
-VUE_APP_BASE_API = 'https://admin.gdzckj.net'
+# 中正云教育管理后台/生产环境'https://cloud.xyyxt.net/''https://admin.gdzckj.net'
+VUE_APP_BASE_API = 'https://cloud.xyyxt.net/'
 VUE_APP_BASE_API_QP = 'https://attach.xyyxt.net'
 VUE_APP_IMG_API = 'https://file.xyyxt.net'
 

+ 8 - 0
src/newApi/order.js

@@ -205,4 +205,12 @@ export default {
             params: data
         })
     },
+    //后台订单添加业务员
+    ordersavesalesman(data) {
+        return request({
+            url: '/order/save/salesman',
+            method: 'post',
+            data
+        })
+    },
 }

+ 1 - 1
src/router/index.js

@@ -158,7 +158,7 @@ export const constantRoutes = [
 ]
 
 export default new Router({
-  base:'/system/',
+  // base:'/system/',
   mode: 'history', // 去掉url中的#
   scrollBehavior: () => ({ y: 0 }),
   routes: constantRoutes

+ 48 - 0
src/views/Marketing/order/offlineOrder/orderDetailsT/index.vue

@@ -18,6 +18,9 @@
       @backFunc="jumpRefund"
     >
       <template slot="customize">
+        <el-button size="medium" type="primary" @click="addsales"
+          >批量添加业务员</el-button
+        >
         <el-button size="medium" type="warning" @click="setGoodsOptions(1)" :disabled="$route.query.orderFrom == 6"
           >计费单收费</el-button
         ><el-button size="medium" type="success" @click="setGoodsOptions(2)"
@@ -30,6 +33,9 @@
         <el-button type="text" @click="adds(props.scope.row)"
           >订单收费信息</el-button
         >
+        <el-button type="text" @click="addsale({ orderGoodsIds:[props.scope.row.orderGoodsId], salesman:''})"
+          >添加业务员</el-button
+        >
         <!-- <el-button
           type="text"
           :disabled="props.scope.row.goodsPayStatus !== 1"
@@ -361,6 +367,48 @@ export default {
     this.search();
   },
   methods: {
+    addsale(postdata){
+      this.$prompt('请输入业务员', '添加业务员', {
+          confirmButtonText: '保存',
+          cancelButtonText: '取消',
+        }).then(({ value }) => {
+          if(!value)
+          {
+            this.$message.error("请输入业务员名称");
+            return;
+          }
+       postdata.salesman=value;
+          this.$api
+        .ordersavesalesman(postdata)
+        .then((res) => {
+          this.$message.success("保存成功");
+          this.search();
+        })
+        .catch((err) => {
+          this.$message.error(err.msg);
+        });
+        }).catch(() => {
+          // this.$message({
+          //   type: 'info',
+          //   message: '取消输入'
+          // });       
+        });
+    },
+    addsales(){
+      if (this.$refs.tableList.allCheckData.length == 0) {
+        this.$message.error("请勾选需要添加业务员的订单");
+        return;
+      }
+      var ids = this.$refs.tableList.allCheckData.map((item) => {
+        return item.orderGoodsId;
+      });
+      if (ids.length==0) {
+        this.$message.error("请勾选待审核的订单");
+        return;
+      }
+      var data={ orderGoodsIds:ids, salesman:''};
+      this.addsale(data);
+    },
     jumpRefund(row) {
       const jump = () => {
         this.$router.push({

+ 1 - 1
vue.config.js

@@ -14,7 +14,7 @@ module.exports = {
   // 部署生产环境和开发环境下的URL。
   // 默认情况下,Vue CLI 会假设你的应用是被部署在一个域名的根路径上
   // 例如 https://www.ruoyi.vip/。如果应用被部署在一个子路径上,你就需要用这个选项指定这个子路径。例如,如果你的应用被部署在 https://www.ruoyi.vip/admin/,则设置 baseUrl 为 /admin/。
-  publicPath: process.env.NODE_ENV === "production" ? "/system/" : "/",
+  publicPath: process.env.NODE_ENV === "production" ? "/" : "/",//system/
   // 在npm run build 或 yarn build 时 ,生成文件的目录名称(要和baseUrl的生产环境路径一致)(默认dist)
   outputDir: 'dist',
   // 用于放置生成的静态资源 (js、css、img、fonts) 的;(项目打包之后,静态资源会放在这个文件夹下)