From 7451c6c636256a531bc6194559ebc821c02d9455 Mon Sep 17 00:00:00 2001 From: yibo <361071264@qq.com> Date: Fri, 30 Nov 2018 20:51:26 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/order/detail/detail.js | 977 +++++++++++--------------------- pages/order/detail/detail.wxml | 197 +++---- pages/order/detail/detail.wxss | 16 +- pages/order/detail1/detail.js | 871 ++++++++++++++++++++++++++++ pages/order/detail1/detail.json | 5 + pages/order/detail1/detail.wxml | 215 +++++++ pages/order/detail1/detail.wxss | 232 ++++++++ 7 files changed, 1726 insertions(+), 787 deletions(-) create mode 100644 pages/order/detail1/detail.js create mode 100644 pages/order/detail1/detail.json create mode 100644 pages/order/detail1/detail.wxml create mode 100644 pages/order/detail1/detail.wxss diff --git a/pages/order/detail/detail.js b/pages/order/detail/detail.js index 087564e..229efe9 100644 --- a/pages/order/detail/detail.js +++ b/pages/order/detail/detail.js @@ -1,26 +1,27 @@ -// pages/orderinfo/orderinfo.js +// pages/order/detail/detail.js var app = getApp() var network = require("../../../utils/net.js") var dateTimePicker = require('../../../utils/dateTimePicker.js'); var utilll = require('../../../utils/util.js'); var timechage = require("../../../utils/dateTimeUtil.js") -var orderID=0; var getAccountingUnit = "/MainSystem/B3MiniProgramRpc/Rpcs/BaseInfoRpc/GetAccountingUnit"; var getCustomer = "/MainSystem/B3MiniProgramRpc/Rpcs/BaseInfoRpc/GetCustomer"; var getDept = "/MainSystem/B3MiniProgramRpc/Rpcs/BaseInfoRpc/GetDepartment"; -var getGoods = "/MainSystem/B3MiniProgramRpc/Rpcs/BaseInfoRpc/GetGoodsWithUnitPrice"; +var getGoods = "/MainSystem/B3MiniProgramRpc/Rpcs/BaseInfoRpc/GetGoods"; var getSaleKind = "/MainSystem/B3MiniProgramRpc/Rpcs/BaseInfoRpc/GetSaleKind"; var getEmployee = "/MainSystem/B3MiniProgramRpc/Rpcs/BaseInfoRpc/GetEmployee"; var getStore = "/MainSystem/B3MiniProgramRpc/Rpcs/BaseInfoRpc/GetStore" var getTakeGoodsType = "/MainSystem/B3MiniProgramRpc/Rpcs/BaseInfoRpc/GetTakeGoods_Type" +var getGoodsDetail = "/MainSystem/B3MiniProgramRpc/Rpcs/BaseInfoRpc/GetGoodsDetailWithPrice" +var getCustomerInfo = "/MainSystem/B3MiniProgramRpc/XuRpcs/Employee/OrderRpc/GetCustomerRefDto" var load = "/MainSystem/B3MiniProgramRpc/XuRpcs/Employee/OrderRpc/Load"; let update = '/MainSystem/B3MiniProgramRpc/XuRpcs/Employee/OrderRpc/Update'; -function setTime(that){ +function setTime(that) { // 获取完整的年月日 时分秒,以及默认显示的数组 - var obj1 = dateTimePicker.dateTimePicker(that.data.startYear, that.data.endYear, that.data.loadTime); + var obj1 = dateTimePicker.dateTimePicker(2018, 2030, that.data.dmo.LoadTime); // 精确到分的处理,将数组的秒去掉 var lastArray = obj1.dateTimeArray.pop(); var lastTime = obj1.dateTime.pop(); @@ -31,146 +32,47 @@ function setTime(that){ }); } -function GetAccountingUnit(that, inputValue) { - let method = getAccountingUnit; - let params = [{ - "InputValue": inputValue, - "PageIndex": 0, - "PageSize": 100 - }]; - network.transfer_request(method, params, function (res) { +function GetBaseInfoList(that, method, params) { + network.transfer_request(method, params, function(res) { that.setData({ - currency: res.result, - unit: res.result - }) - }) - that.setData({ - which: "会计部门" - }) -} - -function GetCustomer(that, inputValue) { - let method = getCustomer; - let params = [{ - "InputValue": inputValue, - "PageIndex": 0, - "PageSize": 100 - }]; - network.transfer_request(method, params, function (res) { - that.setData({ - currency: res.result, - customer: res.result - }) - }) - that.setData({ - which: "购货客户" - }) -} - -function GetDepartment(that, inputValue) { - let method = getDept; - let params = [{ - "InputValue": inputValue, - "PageIndex": 0, - "PageSize": 100 - }]; - network.transfer_request(method, params, function (res) { - that.setData({ - currency: res.result, - department: res.result - }) - }) - that.setData({ - which: "部门" - }) -} - -function GetSaleKind(that, v) { - let method = getSaleKind; - let params = [{ - "InputValue": v, - "PageIndex": 0, - "PageSize": 100 - }]; - network.transfer_request(method, params, function (res) { - that.setData({ - currency: res.result, - saletype: res.result - }) - }) - that.setData({ - which: "销售类型" - }) -} - -function GetEmployee(that, v) { - let method = getEmployee; - let params = [{ - "InputValue": v, - "PageIndex": 0, - "PageSize": 100 - }]; - network.transfer_request(method, params, function (res) { - that.setData({ - currency: res.result, - employee: res.result - }) - }) - that.setData({ - which: "业务员" - }) -} - -function GetStore(that, v) { - let method = getStore; - let params = [{ - "InputValue": v, - "PageIndex": 0, - "PageSize": 100 - }]; - network.transfer_request(method, params, function (res) { - that.setData({ - currency: res.result, - store: res.result - }) - }) - that.setData({ - which: "仓库" - }) + currency: res.result + }); + }); } -function GetTakeGoodsType(that, v) { - let method = getTakeGoodsType; - let params = []; - network.transfer_request(method, params, function (res) { - console.log(res); - that.setData({ - currency: res.result, - takeGoodsType: res.result - }) - }) - that.setData({ - which: "配送方式" - }) +function GetGoodsInfo(dmo, detail) { + let timestamp = Date.parse(dmo.LoadTime); + let date = "/Date(" + timestamp + "+0800)/"; + var params = [{ + "Goods_ID": detail.SaleGoods_ID, + "Customer_ID": dmo.Customer_ID, + "AccountingUnit_ID": dmo.AccountingUnit_ID, + "Date": date + }] + network.transfer_request(getGoodsDetail, params, function(res) { + detail.Goods_SecondUnit = res.result.Goods_SecondUnit; + detail.Goods_UnitConvertDirection = res.result.Goods_UnitConvertDirection; + detail.Goods_MainUnitRatio = res.result.Goods_MainUnitRatio; + detail.Goods_SecondUnitRatio = res.result.Goods_SecondUnitRatio; + detail.Unit = res.result.Unit; + detail.LeftRatio = res.result.LeftRatio; + detail.RightRatio = res.result.RightRatio; + detail.Price = res.result.Price; + detail.PolicyPrice = res.result.PolicyPrice; + }); } -function GetGoodsWithUnitPrice(that, v, date) { - let unitID = that.data.unit[that.data.isUnit].ID; - let customerID = that.data.customer[that.data.customerIndex].ID; - let method = getGoods; - let params = [{ - "Input": v, - "PageIndex": 0, - "PageSize": 100, - "Customer_ID": customerID, - "AccountingUnit_ID": unitID, - "Date": date - }]; - network.transfer_request(method, params, function (res) { - that.setData({ - goods: res.result, - }) - }) +function GetCustomerInfo(dmo) { + var params = [dmo.Customer_ID, ["Department_ID", "Department_Name", "Employee_ID", "Employee_Name", "TakeGoods_Type", "Address"]] + network.transfer_request(getCustomerInfo, [dmo.Customer_ID], function(res) { + var obj = JSON.parse(res.result); + dmo.Department_ID = obj.Department_ID; + dmo.Department_Name = obj.Department_Name; + dmo.Employee_ID = obj.Employee_ID; + dmo.Employee_Name = obj.Employee_Name; + dmo.TakeGoods_Type = obj.TakeGoods_Type; + dmo.DeliverAddress = obj.Address; + }); } Page({ @@ -179,203 +81,83 @@ Page({ * 页面的初始数据 */ data: { - /** - * 页面配置 - */ - which: "", - winWidth: 0, - winHeight: app.globalData.winHeight, - // tab切换 currentTab: 0, - obj: [], - goods: [], - idx: 0, - currency: [], - saletypeIndex: 0, - saletype: [{ - ID: 0, - Name: "请选择销售类型" - }], - departmentIndex: 0, - department: [{ - ID: 0, - Name: "请选择销售部门" - }], - customerIndex: 0, - customer: [{ - ID: 0, - Name: "请选择客户" - }], - isUnit: 0, - unit: [{ - ID: 0, - Name: "请选择会计单位" - }], - empIndex: 0, - employee: [{ - ID: 0, - Name: "请选择业务员" - }], - storeIndex: 0, - store: [{ - ID: 0, - Name: "请选择仓库" - }], - takeGoodsTypeIndex: 0, - takeGoodsType: [{ - ID: 0, - Name: "请选择配送方式" - }], - addrs: "", - remark: "", + winHeight: app.globalData.winHeight, + which: '', + rowIdx: -1, + dmo: {}, dateTimeArray1: null, - dateTime1: null, - startYear: 2018, - endYear: 2030, - loadTime:"" + dateTime1: null }, /** * 生命周期函数--监听页面加载 */ - onLoad: function (options) { + onLoad: function(options) { var that = this; - let ID = Number(options.ID); - orderID = ID; - - let method = load; - let params = [ID]; - network.transfer_request(method, params, function (res) { - let customerOld=[{ - ID: res.result.Customer_ID, - Name: res.result.Customer_Name - }] - - let unitOld=[{ - ID: res.result.AccountingUnit_ID, - Name: res.result.AccountingUnit_Name - }] - - let departmentOld=[{ - ID: res.result.Department_ID, - Name: res.result.Department_Name - }] - - let saletypeOld =[{ - ID: res.result.SaleKind_ID, - Name: res.result.SaleKind_Name - }] - - let employeeOld = [{ - ID: res.result.Employee_ID, - Name: res.result.Employee_Name - }] - - let storeOld = [{ - ID: res.result.Store_ID, - Name: res.result.Store_Name - }] - - let takeGoodsTypeOld = [{ - Name: res.result.TakeGoods_Type - }] - - let addrrrr = res.result.DeliverAddress - let remark=res.result.Remark - let loadtimee = timechage.formatTimeTwo(res.result.LoadTime.substring(6, 19), 'Y-M-D h:m') - - let details=[]; - - for(var i =0;i 购货客户 - - - {{customer[customerIndex].Name}} + + {{dmo.Customer_Name?dmo.Customer_Name:"请选择客户"}} @@ -24,7 +21,7 @@ 发货时间 - + {{dateTimeArray1[0][dateTime1[0]]}}-{{dateTimeArray1[1][dateTime1[1]]}}-{{dateTimeArray1[2][dateTime1[2]]}} {{dateTimeArray1[3][dateTime1[3]]}}:{{dateTimeArray1[4][dateTime1[4]]}} @@ -34,66 +31,48 @@ 会计单位 - - - {{unit[isUnit].Name}} + + {{dmo.AccountingUnit_Name?dmo.AccountingUnit_Name:"请选择会计单位"}} 销售部门 - - - {{department[departmentIndex].Name}} + + {{dmo.Department_Name?dmo.Department_Name:"请选择销售部门"}} - + 业务员 - - - {{employee[empIndex].Name}} + + {{dmo.Employee_Name?dmo.Employee_Name:"请选择业务员"}} - + 仓库 - - - {{store[storeIndex].Name}} + + {{dmo.Store_Name?dmo.Store_Name:"请选择业务员"}} 销售类型 - - - {{saletype[saletypeIndex].Name}} + + {{dmo.SaleKind_Name?dmo.SaleKind_Name:"请选择销售类型"}} - + 配送方式 - - - {{takeGoodsType[takeGoodsTypeIndex].Name}} + + {{dmo.TakeGoods_Type?dmo.TakeGoods_Type:"请选择配送方式"}} @@ -101,115 +80,81 @@ 送货地址 - + - + 摘要 - + - - - - - - - - - - - - - - - - - {{item.Name}} - - - - 取消 - + - - - - - - 存货名称 - - {{obj[idx].Goods_Name}} - - - - - - 报货数量 - + + + + 存货名称 + + {{item.Goods_Name?item.Goods_Name:"请选择存货"}} - + + + + 报货数量 + + + - - 辅 数 量 - - - - - 单 价 - - - + + 辅 数 量 + + + - - 政策单价 - {{obj[idx].PolicyPrice}} - - + + 单 价 + + + + + 政策单价 + {{item.PolicyPrice}} - 删除 + - - - - + 删除 + + + + + - - - - - - - - - - - - - - - {{item.Goods_Name}} - - - - 取消 - - \ No newline at end of file + + + + + + + + + + + {{item.Name}} + + + + 取消 + \ No newline at end of file diff --git a/pages/order/detail/detail.wxss b/pages/order/detail/detail.wxss index 987952e..cecf8a0 100644 --- a/pages/order/detail/detail.wxss +++ b/pages/order/detail/detail.wxss @@ -1,7 +1,7 @@ /* pages/orderinfo/orderinfo.wxss */ page { - background:#EAF1F8; + background: #eaf1f8; height: calc(100%-10px); } @@ -26,7 +26,7 @@ page { } .on { - background-color:#2E8CF5 ; + background-color: #2e8cf5; color: white; } @@ -51,15 +51,14 @@ page { } .baseitem { - height: 60rpx; - background: #fff; + height: 60rpx; + background: #fff; /* border-bottom: 0.1px solid #dbdbdb; */ display: flex; flex-direction: row; align-items: center; padding: 20rpx 20rpx; font-size: 30rpx; - } .horizontallineView { @@ -80,6 +79,7 @@ page { /* margin-left: 20rpx; margin-right: 20rpx; */ width: 70%; + height: 100%; text-align: right; } @@ -111,7 +111,6 @@ page { text-align: right; } - .add { display: flex; flex-direction: row; @@ -150,9 +149,8 @@ page { background-color: #fff; } -.main-body{ - background-color: #fff; - +.main-body { + background-color: #fff; } .submit { diff --git a/pages/order/detail1/detail.js b/pages/order/detail1/detail.js new file mode 100644 index 0000000..087564e --- /dev/null +++ b/pages/order/detail1/detail.js @@ -0,0 +1,871 @@ +// pages/orderinfo/orderinfo.js +var app = getApp() +var network = require("../../../utils/net.js") +var dateTimePicker = require('../../../utils/dateTimePicker.js'); +var utilll = require('../../../utils/util.js'); +var timechage = require("../../../utils/dateTimeUtil.js") +var orderID=0; + +var getAccountingUnit = "/MainSystem/B3MiniProgramRpc/Rpcs/BaseInfoRpc/GetAccountingUnit"; +var getCustomer = "/MainSystem/B3MiniProgramRpc/Rpcs/BaseInfoRpc/GetCustomer"; +var getDept = "/MainSystem/B3MiniProgramRpc/Rpcs/BaseInfoRpc/GetDepartment"; +var getGoods = "/MainSystem/B3MiniProgramRpc/Rpcs/BaseInfoRpc/GetGoodsWithUnitPrice"; +var getSaleKind = "/MainSystem/B3MiniProgramRpc/Rpcs/BaseInfoRpc/GetSaleKind"; +var getEmployee = "/MainSystem/B3MiniProgramRpc/Rpcs/BaseInfoRpc/GetEmployee"; +var getStore = "/MainSystem/B3MiniProgramRpc/Rpcs/BaseInfoRpc/GetStore" +var getTakeGoodsType = "/MainSystem/B3MiniProgramRpc/Rpcs/BaseInfoRpc/GetTakeGoods_Type" + +var load = "/MainSystem/B3MiniProgramRpc/XuRpcs/Employee/OrderRpc/Load"; +let update = '/MainSystem/B3MiniProgramRpc/XuRpcs/Employee/OrderRpc/Update'; + +function setTime(that){ + // 获取完整的年月日 时分秒,以及默认显示的数组 + var obj1 = dateTimePicker.dateTimePicker(that.data.startYear, that.data.endYear, that.data.loadTime); + // 精确到分的处理,将数组的秒去掉 + var lastArray = obj1.dateTimeArray.pop(); + var lastTime = obj1.dateTime.pop(); + + that.setData({ + dateTimeArray1: obj1.dateTimeArray, + dateTime1: obj1.dateTime + }); +} + +function GetAccountingUnit(that, inputValue) { + let method = getAccountingUnit; + let params = [{ + "InputValue": inputValue, + "PageIndex": 0, + "PageSize": 100 + }]; + network.transfer_request(method, params, function (res) { + that.setData({ + currency: res.result, + unit: res.result + }) + }) + that.setData({ + which: "会计部门" + }) +} + +function GetCustomer(that, inputValue) { + let method = getCustomer; + let params = [{ + "InputValue": inputValue, + "PageIndex": 0, + "PageSize": 100 + }]; + network.transfer_request(method, params, function (res) { + that.setData({ + currency: res.result, + customer: res.result + }) + }) + that.setData({ + which: "购货客户" + }) +} + +function GetDepartment(that, inputValue) { + let method = getDept; + let params = [{ + "InputValue": inputValue, + "PageIndex": 0, + "PageSize": 100 + }]; + network.transfer_request(method, params, function (res) { + that.setData({ + currency: res.result, + department: res.result + }) + }) + that.setData({ + which: "部门" + }) +} + +function GetSaleKind(that, v) { + let method = getSaleKind; + let params = [{ + "InputValue": v, + "PageIndex": 0, + "PageSize": 100 + }]; + network.transfer_request(method, params, function (res) { + that.setData({ + currency: res.result, + saletype: res.result + }) + }) + that.setData({ + which: "销售类型" + }) +} + +function GetEmployee(that, v) { + let method = getEmployee; + let params = [{ + "InputValue": v, + "PageIndex": 0, + "PageSize": 100 + }]; + network.transfer_request(method, params, function (res) { + that.setData({ + currency: res.result, + employee: res.result + }) + }) + that.setData({ + which: "业务员" + }) +} + +function GetStore(that, v) { + let method = getStore; + let params = [{ + "InputValue": v, + "PageIndex": 0, + "PageSize": 100 + }]; + network.transfer_request(method, params, function (res) { + that.setData({ + currency: res.result, + store: res.result + }) + }) + that.setData({ + which: "仓库" + }) +} + +function GetTakeGoodsType(that, v) { + let method = getTakeGoodsType; + let params = []; + network.transfer_request(method, params, function (res) { + console.log(res); + that.setData({ + currency: res.result, + takeGoodsType: res.result + }) + }) + that.setData({ + which: "配送方式" + }) +} + +function GetGoodsWithUnitPrice(that, v, date) { + let unitID = that.data.unit[that.data.isUnit].ID; + let customerID = that.data.customer[that.data.customerIndex].ID; + let method = getGoods; + let params = [{ + "Input": v, + "PageIndex": 0, + "PageSize": 100, + "Customer_ID": customerID, + "AccountingUnit_ID": unitID, + "Date": date + }]; + network.transfer_request(method, params, function (res) { + that.setData({ + goods: res.result, + }) + }) +} + +Page({ + + /** + * 页面的初始数据 + */ + data: { + /** + * 页面配置 + */ + which: "", + winWidth: 0, + winHeight: app.globalData.winHeight, + // tab切换 + currentTab: 0, + obj: [], + goods: [], + idx: 0, + currency: [], + saletypeIndex: 0, + saletype: [{ + ID: 0, + Name: "请选择销售类型" + }], + departmentIndex: 0, + department: [{ + ID: 0, + Name: "请选择销售部门" + }], + customerIndex: 0, + customer: [{ + ID: 0, + Name: "请选择客户" + }], + isUnit: 0, + unit: [{ + ID: 0, + Name: "请选择会计单位" + }], + empIndex: 0, + employee: [{ + ID: 0, + Name: "请选择业务员" + }], + storeIndex: 0, + store: [{ + ID: 0, + Name: "请选择仓库" + }], + takeGoodsTypeIndex: 0, + takeGoodsType: [{ + ID: 0, + Name: "请选择配送方式" + }], + addrs: "", + remark: "", + dateTimeArray1: null, + dateTime1: null, + startYear: 2018, + endYear: 2030, + loadTime:"" + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + var that = this; + let ID = Number(options.ID); + orderID = ID; + + let method = load; + let params = [ID]; + network.transfer_request(method, params, function (res) { + let customerOld=[{ + ID: res.result.Customer_ID, + Name: res.result.Customer_Name + }] + + let unitOld=[{ + ID: res.result.AccountingUnit_ID, + Name: res.result.AccountingUnit_Name + }] + + let departmentOld=[{ + ID: res.result.Department_ID, + Name: res.result.Department_Name + }] + + let saletypeOld =[{ + ID: res.result.SaleKind_ID, + Name: res.result.SaleKind_Name + }] + + let employeeOld = [{ + ID: res.result.Employee_ID, + Name: res.result.Employee_Name + }] + + let storeOld = [{ + ID: res.result.Store_ID, + Name: res.result.Store_Name + }] + + let takeGoodsTypeOld = [{ + Name: res.result.TakeGoods_Type + }] + + let addrrrr = res.result.DeliverAddress + let remark=res.result.Remark + let loadtimee = timechage.formatTimeTwo(res.result.LoadTime.substring(6, 19), 'Y-M-D h:m') + + let details=[]; + + for(var i =0;i + + + 基本信息 + 订单明细 + + + + + + + + + 购货客户 + + + {{customer[customerIndex].Name}} + + + + + + + 发货时间 + + + {{dateTimeArray1[0][dateTime1[0]]}}-{{dateTimeArray1[1][dateTime1[1]]}}-{{dateTimeArray1[2][dateTime1[2]]}} {{dateTimeArray1[3][dateTime1[3]]}}:{{dateTimeArray1[4][dateTime1[4]]}} + + + + + + + 会计单位 + + + {{unit[isUnit].Name}} + + + + + + 销售部门 + + + {{department[departmentIndex].Name}} + + + + + + 业务员 + + + {{employee[empIndex].Name}} + + + + + + 仓库 + + + {{store[storeIndex].Name}} + + + + + + 销售类型 + + + {{saletype[saletypeIndex].Name}} + + + + + + 配送方式 + + + {{takeGoodsType[takeGoodsTypeIndex].Name}} + + + + + + + 送货地址 + + + + + + 摘要 + + + + + + + + + + + + + + + + + + + + + + {{item.Name}} + + + + 取消 + + + + + + + + + + + 存货名称 + + {{obj[idx].Goods_Name}} + + + + + + 报货数量 + + + + + + + 辅 数 量 + + + + + + 单 价 + + + + + + 政策单价 + {{obj[idx].PolicyPrice}} + + + + + 删除 + + + + + + + + + + + + + + + + + + + + + + + + {{item.Goods_Name}} + + + + 取消 + + + \ No newline at end of file diff --git a/pages/order/detail1/detail.wxss b/pages/order/detail1/detail.wxss new file mode 100644 index 0000000..987952e --- /dev/null +++ b/pages/order/detail1/detail.wxss @@ -0,0 +1,232 @@ +/* pages/orderinfo/orderinfo.wxss */ + +page { + background:#EAF1F8; + height: calc(100%-10px); +} + +.swiper-tab { + /* height: 30px; */ + margin: 10px 20px; + text-align: center; + line-height: 30px; + background: white; + display: flex; + flex-direction: row; + border-radius: 5px; + border: 1px solid#2E8CF5; + overflow: hidden; +} + +.swiper-tab-list { + height: 100%; + width: 50%; + font-size: 30rpx; + color: #777; +} + +.on { + background-color:#2E8CF5 ; + color: white; +} + +.swiper-box { + display: block; + height: 100%; + width: 100%; + overflow: hidden; +} + +.swiper-items1 { + height: 100%; + padding-top: 3%; +} + +.swiper-items2 { + height: 100%; +} + +.scroll-views { + height: 100%; +} + +.baseitem { + height: 60rpx; + background: #fff; + /* border-bottom: 0.1px solid #dbdbdb; */ + display: flex; + flex-direction: row; + align-items: center; + padding: 20rpx 20rpx; + font-size: 30rpx; + +} + +.horizontallineView { + height: 1rpx; + background-color: #dbdbdb; + margin-left: 20rpx; + margin-right: 0rpx; +} + +.baseitem_key { + color: #666; + width: 30%; + /* margin-left: 20rpx; */ +} + +.baseitem_value { + color: rgb(48, 48, 48); + /* margin-left: 20rpx; + margin-right: 20rpx; */ + width: 70%; + text-align: right; +} + +.baseitem_key2 { + color: #666; + width: 30%; + /* margin-left: 20rpx; */ +} + +.baseitem_value2 { + color: rgb(48, 48, 48); + /* margin-left: 20rpx; + margin-right: 20rpx; */ + width: 70%; + text-align: right; +} + +.baseitem_key1 { + color: #666; + width: 30%; + margin-left: 20rpx; +} + +.baseitem_value1 { + color: rgb(48, 48, 48); + /* margin-left: 20rpx; + margin-right: 20rpx; */ + width: 70%; + text-align: right; +} + + +.add { + display: flex; + flex-direction: row; + align-items: center; + justify-content: center; + border-left: none; + background: #fff; + width: 100%; + margin-top: 20rpx; + border-top: 0.5px solid #e0e0e0; + border-bottom: 0.5px solid #e0e0e0; + padding-top: 20rpx; + padding-bottom: 20rpx; +} + +.ico { + height: 42rpx; + width: 42rpx; +} + +.delete { + width: 100%; + padding-top: 20rpx; + padding-bottom: 20rpx; + color: red; + display: flex; + flex-direction: row; + align-items: center; + justify-content: center; + background: #fff; + font-size: 30rpx; +} + +.itemView { + margin-top: 20rpx; + background-color: #fff; +} + +.main-body{ + background-color: #fff; + +} + +.submit { + margin-left: 5%; + margin-top: 10%; + width: 90%; + margin-right: 5%; + color: #fff; + background: linear-gradient(to right, #39c4fd, #539eef); +} + +.drawer_screen { + width: 100%; + height: 100%; + position: fixed; + top: 0; + left: 0; + z-index: 1000; + background: #000; + opacity: 0.5; + overflow: hidden; +} + +.sousuo { + /* margin-right: 10%; + margin-left: 10%; */ + text-align: center; + background: #d6d8da; + height: 40px; + font-size: 28rpx; +} + +.drawer_content { + height: 500rpx; + overflow-y: scroll; /*超出父盒子高度可滚动*/ +} + +.drawer_box { + width: 650rpx; + overflow: hidden; + position: fixed; + top: 50%; + left: 0; + z-index: 1001; + background: #fafafa; + margin: -150px 50rpx 0 50rpx; + border-radius: 3px; +} + +.btn_ok { + padding: 10px; + font: 20px "microsoft yahei"; + text-align: center; + border-top: 1px solid #e8e8ea; + color: #2788f8; +} + +.top { + height: 20%; + justify-content: center; + align-items: center; +} + +.grid1 { + width: 100%; + border-bottom: 1px solid #c3c3c3; + /* padding-top: 5px; + padding-bottom: 10px; */ + padding-top: 16rpx; + padding-bottom: 16rpx; + text-align: center; +} + +.text3 { + font-size: 18px; + color: rgb(48, 48, 48); +}