affirm.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726
  1. <template>
  2. <view class="app-content">
  3. <view class="affirm-page">
  4. <view class="affirm-view overscroll">
  5. <!-- 花材列表 -->
  6. <form>
  7. <view class="module-com">
  8. <view class="commodity-view">
  9. <view class="commodity-list">
  10. <template v-if="!$util.isEmpty(selectList)">
  11. <view class="commodity-item" v-for="(item, index) in selectList" :key="index">
  12. <!-- #ifdef APP-PLUS -->
  13. <image class="item-icon" :src="item.cover" />
  14. <!-- #endif -->
  15. <!-- #ifdef MP-WEIXIN -->
  16. <image class="item-icon" :src="item.cover" />
  17. <!-- #endif -->
  18. <view class="item-info">
  19. <view class="info-line">
  20. <text class="item-name">{{ item.itemName }}</text>
  21. <text class="item-price">
  22. <text class="unit">¥</text>
  23. <text class="price">{{ parseFloat(item.userPrice)||0 }}</text>
  24. </text>
  25. </view>
  26. <view style="text-align:right;">
  27. <view class="open-bx" >
  28. <i class="iconfont iconjian" @click="reduceItemFn(item)" v-if="item.bigCount > 0 || item.smallCount > 0"></i>
  29. <text class="num" @click="showAddModelFn(item)">
  30. <text v-if="item.bigCount > 0" style="font-size:24upx;font-weight:bold;color:#3385ff;">{{ item.bigCount }}</text>
  31. <text v-if="item.smallCount > 0" style="font-size:24upx;">{{ item.smallCount }}</text>
  32. </text>
  33. <i class="iconfont iconzeng" @click="addItemFn(item)"></i>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. </template>
  39. </view>
  40. <view class="summary-bar">
  41. <view class="operate-view" v-if="isScanEnv" @click="removeFromSave(option.customId)"> <text class="iconfont iconshanchu1"></text>清除花材 </view>
  42. <view class="operate-view" v-else @click="gobackEvent"><text class="iconfont icongouwuche"></text>重选花材</view>
  43. <view class="describe-view">共{{ selectList.length }}种,合计 ¥<text class="price">{{ allPrice }}</text></view>
  44. </view>
  45. <view class="summary-bar">
  46. <view class="operate-view" v-if="isScanEnv" @click="pageToItemList()"> <text class="iconfont iconzeng"></text>手动添加花材 </view>
  47. </view>
  48. </view>
  49. </view>
  50. <modal-module :show="isAddModel" @cancel="addItemModelHidden" @click="confirmAddItemModel" :title="customData.itemName" color="#333" :size="32" padding="30rpx 30rpx" >
  51. <template slot="customContent">
  52. <view class="select-cmd_bx" v-if="customData">
  53. <view class="kc"><text class="unit_price">库存 {{ parseFloat(customData.stock) }}</text><text class="unit_price"> 单价 {{ parseFloat(customData.price) }}</text>1扎={{customData.ratio}}支</view>
  54. <view class="num_bx">
  55. <input style="width: 430upx" v-model="customData.userPrice" @focus="customData.userPrice = null"
  56. v-if="getLoginInfo.staff && getLoginInfo.staff.super == 1" type="number" placeholder="单价" :disabled="false" />
  57. <input style="width: 430upx" v-model="customData.userPrice" v-else @focus="customData.userPrice = null" type="number" :disabled="true" placeholder="单价" />
  58. <text style="font-size:35upx;font-weight:bold;color:#666666;">元</text>
  59. </view>
  60. <view class="num_bx">
  61. <!-- #ifdef APP-PLUS -->
  62. <input style="width: 430upx" v-model="customData.bigCount" v-if="globalUnitType == 0" type="number" />
  63. <text style="font-size:35upx;font-weight:bold;color:#666666;" v-if="globalUnitType == 0">扎</text>
  64. <input style="width: 430upx" v-model="customData.smallCount" v-if="globalUnitType == 1" type="number" />
  65. <text style="font-size:35upx;font-weight:bold;color:#666666;" v-if="globalUnitType == 1">支</text>
  66. <!-- #endif -->
  67. <!-- #ifdef MP-WEIXIN -->
  68. <input style="width: 430upx" v-model="customData.bigCount" v-if="globalUnitType == 0" :focus="isAddInputFocus" type="number" />
  69. <text style="font-size:35upx;font-weight:bold;color:#666666;" v-if="globalUnitType == 0">扎</text>
  70. <input style="width: 430upx" v-model="customData.smallCount" v-if="globalUnitType == 1" :focus="isAddInputFocus" type="number" />
  71. <text style="font-size:35upx;font-weight:bold;color:#666666;" v-if="globalUnitType == 1">支</text>
  72. <!-- #endif -->
  73. <image @click="switchGlobalUnitType" :src="`${constant.imgUrl}/icon/switch/switch128.png`"
  74. style="width:86upx;height:86upx;position:relative;top:-60upx;right:0upx;" mode="widthFix"></image>
  75. </view>
  76. </view>
  77. </template>
  78. </modal-module>
  79. <view class="module-com input-line-wrap">
  80. <view class="" v-if="isBilling">
  81. <tui-list-cell class="line-cell" :hover="false" :arrow="false">
  82. <view class="tui-title">客户</view>
  83. <view class="tui-input">{{ form.customName }}</view>
  84. </tui-list-cell>
  85. <tui-list-cell class="line-cell" :hover="false" :arrow="false">
  86. <view class="tui-title">配送方式</view>
  87. <button @tap="setSendType(2)" class="admin-button-com middle" :class="form.sendType == 2 ? 'blue' : 'default'">自取</button>
  88. <button @click="setSendType(1)" class="admin-button-com middle" :class="form.sendType == 1 ? 'blue' : 'default'">配送</button>
  89. </tui-list-cell>
  90. <tui-list-cell class="line-cell" :hover="false" :arrow="false" v-show="form.sendType == 1" >
  91. <view class="tui-title">运费</view>
  92. <input type="number" placeholder="请填写,留空免运费" v-model="form.sendCost" placeholder-class="tui-placeholder"/>
  93. </tui-list-cell>
  94. <tui-list-cell class="line-cell" :hover="false" :arrow="false">
  95. <view class="tui-title">结账方式</view>
  96. <button @click="form.hasPay = 2" class="admin-button-com middle" :class="form.hasPay == 2 ? 'blue' : 'default'">欠款</button>
  97. <button @tap="form.hasPay = 1" class="admin-button-com middle" :class="form.hasPay == 1 ? 'blue' : 'default'">已付款</button>
  98. <button @click="form.hasPay = 0" class="admin-button-com middle" :class="form.hasPay == 0 ? 'blue' : 'default'">扫码付</button>
  99. </tui-list-cell>
  100. <tui-list-cell class="line-cell" :arrow="true" v-if="form.hasPay == 1">
  101. <div class="tui-title">收款方式</div>
  102. <picker mode="selector" :value="form.payWay" :range="payWayList" range-key="name" @change="payWayChange" class="tui-input" >
  103. <input v-model="form.payWay" name="payWay" type="text" hidden />
  104. <div style="padding:6upx 0 6upx 0;">{{payWayList[payWayindex].name}}</div>
  105. </picker>
  106. </tui-list-cell>
  107. <tui-list-cell class="line-cell" :hover="false" :arrow="false">
  108. <view class="tui-title">打印小票</view>
  109. <button @click="form.needPrint = 1" class="admin-button-com middle" :class="form.needPrint == 1 ? 'blue' : 'default'">打印</button>
  110. <button @tap="form.needPrint = 2" class="admin-button-com middle" :class="form.needPrint == 2? 'blue' : 'default'">不打</button>
  111. </tui-list-cell>
  112. <!--
  113. <tui-list-cell class="line-cell" :hover="false" :arrow="false" v-if="customInfo.discount && customInfo.discount < 1" >
  114. <view class="tui-title">优惠</view>
  115. <text style="color: red"></text>
  116. </tui-list-cell>
  117. -->
  118. <tui-list-cell class="line-cell" :hover="false" :arrow="false" >
  119. <view class="tui-title">
  120. <text>合计金额</text>
  121. </view>
  122. <text style="color: #3385FF">{{parseFloat(finalPrice)}}</text>
  123. </tui-list-cell>
  124. <tui-list-cell class="line-cell" :hover="false" :arrow="false" >
  125. <view v-if="form.hasPay == 2" class="tui-title">应收金额</view>
  126. <view v-else class="tui-title">实收金额</view>
  127. <input style="border:1upx solid #eee;color:#3385FF;width:150upx;height:70upx;" type="digit" @focus="modifyPrice=''" v-model="modifyPrice" placeholder-class="tui-placeholder"/>
  128. <text v-if="modifyPrice > 0 && modifyPrice > finalPrice" style="font-size:25upx;margin-left:20upx;color:red;">人工资材费 ¥{{parseFloat((modifyPrice-finalPrice).toFixed(2))}}</text>
  129. <text v-if="modifyPrice > 0 && modifyPrice < finalPrice" style="font-size:25upx;margin-left:20upx;color:green;">优惠 ¥{{parseFloat((finalPrice-modifyPrice).toFixed(2))}}</text>
  130. </tui-list-cell>
  131. <tui-list-cell class="line-cell" :arrow="true">
  132. <div class="tui-title">开单人</div>
  133. <picker mode="selector" :value="form.getStaffId" :range="staffList" range-key="name" @change="kdChange" class="tui-input" >
  134. <input v-model="form.getStaffId" name="getStaffId" type="text" hidden />
  135. <div style="padding:6upx 0 6upx 0;">{{form.getStaffName}}</div>
  136. </picker>
  137. </tui-list-cell>
  138. <tui-list-cell class="line-cell" :hover="false" :arrow="false">
  139. <view class="tui-title">备注</view>
  140. <textarea style="height: 100upx" v-model="form.remark" placeholder="选填" />
  141. </tui-list-cell>
  142. </view>
  143. </view>
  144. </form>
  145. </view>
  146. <view class="under-bar">
  147. <view class="price-view">
  148. <text class="price-title">
  149. <text>实际金额</text>
  150. </text>
  151. <text class="price-number">¥<text class="large">{{ modifyPrice }}</text></text>
  152. </view>
  153. <button class="admin-button-com blue big" @click="confirmSubmit">提交</button>
  154. </view>
  155. <view v-if="isScanEnv" @click="changeGet" style="width:125upx;height:125upx;display:flex;justify-content:center;align-items:center;font-size:60upx;
  156. background:#3385ff;color:white;z-index:9999;position:fixed;bottom:230upx;right:40upx;border-radius:60upx;">{{calc=='add'?'+':'-'}}</view>
  157. </view>
  158. </view>
  159. </template>
  160. <script>
  161. import TuiListCell from "@/components/plugin/list-cell";
  162. import AppAvatarModule from "@/components/module/app-avatar";
  163. import SimpleAddress from "@/components/plugin/simple-address";
  164. import AppAreaSel from "@/components/app-area-sel";
  165. import productMins from "@/mixins/product";
  166. import appFormRadioBtn from "@/components/app-formRadio-btn";
  167. import appAddressGroup from "@/components/app-address-group";
  168. import appSendTime from "@/components/app-send-time";
  169. import appFormSend from "@/components/app-form-send";
  170. const formUtil = require("@/utils/formValidation.js");
  171. import { createOrder, updateOrder } from "@/api/order/index";
  172. import { getAllStaff } from "@/api/shop-admin"
  173. import { mapActions, mapGetters } from "vuex";
  174. import { getUserDet} from "@/api/member"
  175. import ModalModule from "@/components/plugin/modal"
  176. export default {
  177. name: "BillingAffirm",
  178. components: {
  179. TuiListCell,
  180. AppAvatarModule,
  181. SimpleAddress,
  182. AppAreaSel,
  183. appFormRadioBtn,
  184. appAddressGroup,
  185. appSendTime,
  186. appFormSend,
  187. ModalModule
  188. },
  189. mixins: [productMins],
  190. data () {
  191. return {
  192. autoLoad: false,
  193. isBilling: true,
  194. staffList:[],
  195. payWayList:[{name:"客服微信",id:0},{name:"现金",id:4},{name:"支付宝",id:1},{name:"银行卡",id:5}],
  196. payWayindex:0,
  197. form: {
  198. shopId: "",
  199. shopName: "",
  200. receiveProvince: "",
  201. receiveCity: "",
  202. receiveFloor: "",
  203. receiveAddress: "",
  204. receiveLong: "",
  205. receiveLat: "",
  206. sendType: 2,
  207. sendSide: "2",
  208. sendDate: "",
  209. sendTimeWant: "",
  210. sendCost: "",
  211. customId: "",
  212. product: "",
  213. remark:"",
  214. payWay:0,
  215. needPrint:1,//订单生成时打印订单1需要2不需要
  216. hasPay:0,
  217. getStaffName:''
  218. },
  219. showCustomer: false,
  220. customInfo:{discount:1},
  221. customData: { bigCount: 0, smallCount: 0, userPrice: 0 },
  222. isAddModel:false,
  223. checkStock:true,
  224. xjData:{},
  225. xjDataInfo:{},
  226. modifyPrice:'',
  227. isScanEnv:false,
  228. calc:'add'
  229. };
  230. },
  231. onLoad (option) {
  232. this.kdType = option.kdType
  233. if (!this.getMerchantInfo) {
  234. this.initMerchantInfo().then((data) => {
  235. uni.setNavigationBarTitle({ title: data.name, })
  236. });
  237. } else {
  238. uni.setNavigationBarTitle({ title: this.getMerchantInfo.name, })
  239. }
  240. //默认自取
  241. this.setSendType(2);
  242. if(Number(option.customId) > 0){
  243. this.form.customId = option.customId
  244. let that = this
  245. getUserDet({ id: option.customId }).then(res => {
  246. that.form.customName = res.data.name
  247. that.customInfo = res.data
  248. that.$forceUpdate()
  249. })
  250. //用于混入product的已选中花材!!!!!
  251. this.selectJobId = option.customId
  252. this.selectJobType = 'bill'
  253. }
  254. //默认欠款是首选项
  255. this.form.hasPay = 2
  256. // #ifdef APP-PLUS
  257. if(this.$util.isScanEnv()){
  258. this.isScanEnv = true
  259. }
  260. //#endif
  261. this.listenScanItem()
  262. },
  263. onShow(){
  264. if(!this.$util.isEmpty(uni.getStorageSync("newClient"))){
  265. this.showCustomer = true;
  266. }
  267. //获取所有在职员工
  268. getAllStaff().then(res=>{
  269. if(res.code == 1){
  270. this.staffList = res.data.list
  271. if(!this.$util.isEmpty(this.staffList)){
  272. for(const ele of this.staffList){
  273. if(this.getLoginInfo.shopAdminId == ele.id){
  274. this.form.getStaffId = ele.id
  275. this.form.getStaffName = ele.name
  276. }
  277. }
  278. }
  279. }
  280. })
  281. },
  282. onUnload(){
  283. uni.removeStorageSync('newClient')
  284. uni.$off('listenGetScanCode')
  285. },
  286. computed: {
  287. ...mapGetters(["getMerchantInfo", "getLoginInfo"]),
  288. finalPrice(){
  289. let totalPrice = this.allPrice.toFixed(2)
  290. let finalPrice = (Number(totalPrice) + Number(this.form.sendCost)).toFixed(2)
  291. let currentPrice = parseFloat(finalPrice)
  292. this.modifyPrice = currentPrice
  293. return currentPrice
  294. }
  295. },
  296. methods: {
  297. ...mapActions(["initMerchantInfo"]),
  298. changeGet(){
  299. this.calc = this.calc == 'add' ? 'sub' : 'add'
  300. },
  301. reduceItemFn(item) {
  302. this.kdType = 'HIT';
  303. this.replaceItemFn(item,0,'sub')
  304. },
  305. addItemFn (item) {
  306. this.kdType = 'HIT';
  307. this.replaceItemFn(item,0,'add')
  308. },
  309. init () {
  310. },
  311. kdChange(e){
  312. let index = e.detail.value
  313. if(!this.$util.isEmpty(this.staffList)){
  314. if(this.staffList[index]){
  315. this.form.getStaffName = this.staffList[index].name
  316. this.form.getStaffId = this.staffList[index].id
  317. }
  318. }
  319. },
  320. payWayChange(e){
  321. let index = e.detail.value
  322. this.payWayindex = index
  323. this.form.payWay = this.payWayList[index].id
  324. },
  325. setPayWay(payWay){
  326. this.form.payWay = payWay
  327. },
  328. setSendType (type) {
  329. this.form.sendType = type;
  330. if (type === 2) {
  331. this.form.sendCost = "";
  332. }
  333. },
  334. changeCustomerFn (info) {
  335. const product = this.selectList.map((ele) => {
  336. return {
  337. productId: ele.id,
  338. bigNum: ele.bigCount,
  339. smallNum: ele.smallCount,
  340. classId: ele.classId,
  341. itemId: ele.itemId,
  342. };
  343. });
  344. let params = {
  345. customId: info.id,
  346. product: JSON.stringify(product),
  347. province: info.province,
  348. city: info.city,
  349. address: info.address,
  350. floor: info.floor,
  351. long: info.long,
  352. lat: info.lat,
  353. };
  354. this.form.sendCost = '';
  355. this.form.customId = info.id;
  356. this.form.customName = info.name;
  357. },
  358. confirmSubmit () {
  359. let self = this;
  360. let rules = [
  361. {
  362. name: "customId",
  363. rule: ["required"],
  364. msg: ["请选择客户"],
  365. },
  366. ];
  367. let hasError = formUtil.validation(this.form, rules);
  368. if (hasError) {
  369. this.$msg(hasError);
  370. return false;
  371. }
  372. let name = '确认提交'
  373. if(this.form.hasPay == 0){
  374. name = '确认待付款?'
  375. }else if(this.form.hasPay == 1){
  376. name = '确认已付款???'
  377. }else if(this.form.hasPay == 2){
  378. name = '确认记欠款??'
  379. }else{
  380. name = '确认提交'
  381. }
  382. self.$util.confirmModal({content:name},() => {
  383. self.formSubmit()
  384. })
  385. },
  386. async formSubmit () {
  387. let formData = this.form;
  388. const product = this.selectList.map((ele) => {
  389. return {productId: ele.id, bigNum: ele.bigCount, smallNum: ele.smallCount, classId: ele.classId, itemId: ele.itemId, price: ele.userPrice}
  390. });
  391. formData.product = JSON.stringify(product);
  392. if (!this.getMerchantInfo) {
  393. await this.initMerchantInfo();
  394. }
  395. formData.shopId = this.getMerchantInfo.id;
  396. if (formData.sendType == 2) {
  397. formData.sendCost = "";
  398. }
  399. if(Number(this.modifyPrice) <= 0){
  400. this.$msg('收款金额必须大于0');
  401. return false
  402. }
  403. let Fn = createOrder
  404. let params = {...formData,modifyPrice: this.modifyPrice,newVersion:1};
  405. if(this.option.orderId && this.option.orderId > 0){
  406. Fn = updateOrder
  407. params = {...params,id:this.option.orderId}
  408. }
  409. Fn(params).then((res) => {
  410. if(res.code == 1){
  411. this.removeFromSaveDirect()
  412. const {data: { id, orderSn,actPrice }} = res;
  413. if(this.form.hasPay == 0){
  414. this.$util.pageTo({ url: '/admin/billing/toPay',type:2,query: {orderId:id,orderSn:orderSn,actPrice:actPrice}})
  415. }else{
  416. this.$util.pageTo({ url: '/admin/billing/result',type:2,query: {orderId:id,orderSn:orderSn,title:'开单成功'}})
  417. }
  418. }
  419. })
  420. },
  421. gobackEvent () {
  422. this.$util.pageTo({url: '/admin/billing/index',type:2,query: {customId: this.option.customId}})
  423. },
  424. pageToItemList() {
  425. this.$util.pageTo({url: '/admin/billing/index',type:2,query: {customId: this.option.customId}})
  426. }
  427. }
  428. };
  429. </script>
  430. <style lang="scss" scoped>
  431. .admin-button-com {
  432. margin-right: 30upx;
  433. }
  434. .affirm-page {
  435. position: relative;
  436. height: 100%;
  437. display: flex;
  438. flex-direction: column;
  439. .affirm-view {
  440. flex: 1;
  441. margin-bottom:90upx;
  442. padding: 20upx;
  443. background-color: #f0f2f6;
  444. .commodity-view {
  445. display: flex;
  446. flex-direction: column;
  447. .commodity-list {
  448. padding: 20upx;
  449. .commodity-item {
  450. display: flex;
  451. margin-bottom: 20upx;
  452. .item-icon {
  453. flex-shrink: 0;
  454. width: 140upx;
  455. height: 140upx;
  456. }
  457. .item-info {
  458. display: flex;
  459. flex-direction: column;
  460. justify-content: center;
  461. flex: 1;
  462. margin-left: 20upx;
  463. .info-line {
  464. margin-bottom: 20upx;
  465. display: flex;
  466. justify-content: space-between;
  467. align-items: flex-end;
  468. .item-name {
  469. color: #666;
  470. font-size: 28upx;
  471. }
  472. .item-price {
  473. color: #333;
  474. font-size: 22upx;
  475. .price {
  476. font-size: 32upx;
  477. font-weight: bold;
  478. }
  479. }
  480. .item-type {
  481. color: #999;
  482. font-size: 24upx;
  483. }
  484. .item-count {
  485. color: #666;
  486. font-size: 24upx;
  487. }
  488. }
  489. & .open-bx {
  490. align-items: center;
  491. & .iconfont {
  492. color: #3385ff;
  493. font-size: 50upx;
  494. }
  495. .position{
  496. display: block;
  497. width: 70upx;
  498. text-align: center;
  499. }
  500. .iconcachu {
  501. margin: 0 6upx 0 20upx;
  502. color: #ccc;
  503. &.edit {
  504. color: #3385ff;
  505. }
  506. }
  507. & > .num {
  508. display: inline-block;
  509. width: 120upx;
  510. height:45upx;
  511. text-align:center;
  512. margin: 0 8upx;
  513. color: #868686;
  514. border-radius: 22upx;
  515. background-color: #f5f5f5;
  516. padding: 3upx 0;
  517. font-size: 25upx;
  518. }
  519. .change-input {
  520. width: 164upx;
  521. height: 60upx;
  522. line-height: 60upx;
  523. text-align: center;
  524. background: #ffffff;
  525. border: 1upx solid #dddddd;
  526. border-radius: 4upx;
  527. font-size: 25upx;
  528. }
  529. .btn-box{
  530. width: 100upx;
  531. height: 60upx;
  532. line-height: 60upx;
  533. color: #ffffff;
  534. background: #3385ff;
  535. text-align: center;
  536. border-radius: 10upx;
  537. }
  538. }
  539. }
  540. }
  541. }
  542. .summary-bar {
  543. padding: 0 20upx;
  544. height: 90upx;
  545. display: flex;
  546. align-items: center;
  547. justify-content: space-between;
  548. border-top: 1upx solid #eeeeee;
  549. .operate-view {
  550. display: flex;
  551. align-items: center;
  552. color: #3385ff;
  553. font-size: 26upx;
  554. .iconfont {
  555. margin-right: 20upx;
  556. font-size: 40upx;
  557. }
  558. }
  559. .describe-view {
  560. display: flex;
  561. align-items: center;
  562. color: #333;
  563. font-size: 24upx;
  564. .price {
  565. font-weight: bold;
  566. font-size: 36upx;
  567. }
  568. }
  569. }
  570. }
  571. .module-com {
  572. background-color: #fff;
  573. margin-bottom: 20upx;
  574. border-radius: 10upx;
  575. overflow: hidden;
  576. .tab-box{
  577. padding: 10upx 30upx 30upx;
  578. .tab{
  579. width: 49%;
  580. height: 70upx;
  581. color: #a2a2a2;
  582. border: 1upx solid #dcdcdc;
  583. border-radius: 10upx;
  584. font-size: 28upx;
  585. font-weight: 700;
  586. &.active{
  587. color: #ff4d4d;
  588. border: 1upx solid #ff4d4d;
  589. }
  590. }
  591. }
  592. .member-wrap {
  593. .member-det {
  594. font-size: 24upx;
  595. margin-left: 20upx;
  596. }
  597. }
  598. .remark-wrap {
  599. align-items: flex-start;
  600. .remark {
  601. height: 240upx;
  602. }
  603. }
  604. // .tui-placeholder,
  605. // .tui-input {
  606. // padding-right: 30upx;
  607. // width: 100%;
  608. // text-align: right;
  609. // }
  610. }
  611. }
  612. .under-bar {
  613. z-index:99999;
  614. display: flex;
  615. justify-content: space-between;
  616. align-items: center;
  617. padding: 0 20upx;
  618. position: fixed;
  619. bottom:0;
  620. /* 手机mobile屏幕小于1000px */
  621. @media screen and (max-width: 1100px) {
  622. width: 100%;
  623. }
  624. /* 收银台cashier屏幕大于1000px */
  625. @media screen and (min-width:1100px) {
  626. width: 40%;
  627. }
  628. height: 100upx;
  629. background-color: #fff;
  630. box-shadow: 0upx -1upx 6upx 0upx rgba(4, 0, 0, 0.06);
  631. .price-view {
  632. display: flex;
  633. align-items: center;
  634. font-size: 24upx;
  635. .price-title {
  636. color: #333;
  637. }
  638. .price-number {
  639. margin: 0 20upx;
  640. color: #ff2842;
  641. .large {
  642. font-size: 40upx;
  643. }
  644. }
  645. }
  646. .admin-button-com {
  647. width: 200upx;
  648. }
  649. }
  650. .select-cmd_bx {
  651. & .kc {
  652. color: #999999;
  653. font-size: 28upx;
  654. font-weight: 400;
  655. margin-bottom: 40upx;
  656. text-align: center;
  657. margin-top: 30upx;
  658. .unit_price{
  659. padding-right:25upx;
  660. }
  661. }
  662. & .num_bx {
  663. display: flex;
  664. align-items: center;
  665. margin-bottom: 40upx;
  666. & > input {
  667. width: 212upx;
  668. height: 80upx;
  669. border: 1upx solid #dddddd;
  670. border-radius: 4upx;
  671. text-align: center;
  672. margin-right: 24upx;
  673. font-size: 40upx;
  674. }
  675. }
  676. }
  677. }
  678. </style>