瀏覽代碼

移植销售订单

xiaohaizhao 7 月之前
父節點
當前提交
dfc9180e59

+ 1 - 1
packageA/orderForm/detail.js

@@ -28,7 +28,7 @@ Page({
         reminddays: 0,
     },
     onLoad(options) {
-        const authOptions = wx.getStorageSync('auth').worderform.options;
+        const authOptions = wx.getStorageSync('auth').newsale.options;
         const checkPermission = (permission) => authOptions.includes(permission);
         this.setData({
             sa_orderid: options.id,

+ 2 - 1
packageA/orderForm/detail.json

@@ -8,5 +8,6 @@
         "van-radio-group": "@vant/weapp/radio-group/index",
         "van-dialog": "@vant/weapp/dialog/index",
         "van-stepper": "@vant/weapp/stepper/index"
-    }
+    },
+    "navigationBarTitleText": "销售订单"
 }

+ 33 - 1
packageA/orderForm/modules/InvoiceList/index.scss

@@ -1,4 +1,36 @@
-@import "../../../../static/common-head.scss";
+.head {
+  display: flex;
+  align-items: center;
+  width: 100vw;
+  height: 120rpx;
+  padding: 0 20rpx 0 30rpx;
+  box-sizing: border-box;
+
+  .count {
+      font-size: 28rpx;
+      font-family: PingFang SC-Regular, PingFang SC;
+      color: #333333;
+  }
+
+  .expand {
+      flex: 1;
+      display: flex;
+      justify-content: flex-end;
+
+      .but {
+          display: flex;
+          align-items: center;
+          justify-content: center;
+          width: 80rpx;
+          height: 80rpx;
+          background: #FFFFFF;
+          border-radius: 8rpx;
+          border: 2rpx solid #CCCCCC;
+          margin-left: 20rpx;
+          color: #666666;
+      }
+  }
+}
 
 .count {
 	font-size: 30rpx !important;

+ 1 - 1
packageA/orderForm/modules/product/index.js

@@ -1,5 +1,5 @@
 const _Http = getApp().globalData.http,
-    file = require("../../../../utils/FormatTheAttachment"),
+    file = require("../../../../utils/matchingFeilType"),
     currency = require("../../../../utils/currency");
 
 let queue = [],

+ 33 - 1
packageA/orderForm/modules/product/index.scss

@@ -1 +1,33 @@
-@import "../../../../static/common-head.scss";
+.head {
+  display: flex;
+  align-items: center;
+  width: 100vw;
+  height: 120rpx;
+  padding: 0 20rpx 0 30rpx;
+  box-sizing: border-box;
+
+  .count {
+      font-size: 28rpx;
+      font-family: PingFang SC-Regular, PingFang SC;
+      color: #333333;
+  }
+
+  .expand {
+      flex: 1;
+      display: flex;
+      justify-content: flex-end;
+
+      .but {
+          display: flex;
+          align-items: center;
+          justify-content: center;
+          width: 80rpx;
+          height: 80rpx;
+          background: #FFFFFF;
+          border-radius: 8rpx;
+          border: 2rpx solid #CCCCCC;
+          margin-left: 20rpx;
+          color: #666666;
+      }
+  }
+}

+ 1 - 1
utils/work/apps.js

@@ -152,7 +152,7 @@ function getcrm() {
 		icon: "work-dingdan",
 		objectname: "sa_order"
 	}, ];
-	let crm = getApp().globalData.queryPer.query(wx.getStorageSync('userauth'), ['CRM'], ['销售预测', '销售线索', '销售目标', '合同管理', '客户管理', '项目管理', '销售订单']),
+	let crm = getApp().globalData.queryPer.query(wx.getStorageSync('userauth'), ['CRM'], ['销售预测', '销售线索', '销售目标', '合同管理', '客户管理', '项目管理', '销售管理']),
 		list = [];
 	crm.forEach(v => {
 		v.apps.forEach(s => {