From 036dd5123cb4e700d6e0f707d9eac342bbe191fc Mon Sep 17 00:00:00 2001
From: lty <876263681@qq.com>
Date: 星期二, 29 七月 2025 17:37:30 +0800
Subject: [PATCH] #
---
pages/pakin/boxPakin.vue | 852 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 852 insertions(+), 0 deletions(-)
diff --git a/pages/pakin/boxPakin.vue b/pages/pakin/boxPakin.vue
new file mode 100644
index 0000000..01ea126
--- /dev/null
+++ b/pages/pakin/boxPakin.vue
@@ -0,0 +1,852 @@
+<template>
+ <view>
+ <view class="code">
+ <view class="text-box">
+ <view class="text-title">鍏ュ簱绔�:</view>
+ <input type="text-title" placeholder=" 鎵爜 / 杈撳叆" v-model="sta" disabled="">
+ </view>
+ <view class="text-box">
+ <view class="text-title">鎵樼洏鐮�:</view>
+ <input type="text-title" placeholder=" 鎵爜 / 杈撳叆" v-model="barcode" :focus="barcodeFocus"
+ @input="barcodeInput()">
+ </view>
+ <view class="text-box">
+ <view class="text-title">鏈ㄧ灏哄:</view>
+ <view class="attr-row">
+ <picker
+ :range="batchOptions"
+ :value="selectedBatchIndex"
+ @change="onPropChangeBatch"
+ class="half-box"
+ >
+ <view class="picker-box">
+ <text>{{ matData.batch || '璇烽�夋嫨灏哄' }}</text>
+ </view>
+ </picker>
+
+ <input
+ type="text"
+ v-model="matData.batch"
+ placeholder="鎵嬪姩杈撳叆鍏朵粬灏哄"
+ class="half-box"
+ />
+
+ </view>
+ </view>
+ <view class="text-box">
+ <view class="text-title">鏈ㄧ澶囨敞:</view>
+ <view class="attr-row">
+ <picker
+ :range="memoOptions"
+ :value="selectedMemoIndex"
+ @change="onPropChangeMemo"
+ class="half-box"
+ >
+ <view class="picker-box">
+ <text>{{ matData.memo || '璇烽�夋嫨澶囨敞' }}</text>
+ </view>
+ </picker>
+
+ <input
+ type="text"
+ v-model="matData.memo"
+ placeholder="鎵嬪姩杈撳叆鍏朵粬澶囨敞"
+ class="half-box"
+ />
+
+ </view>
+ </view>
+ <view class="text-box">
+ <view class="text-title"><text>鏁伴噺</text></view>
+ <view class="text-title">
+ <view>
+ <uni-number-box :value="matData.anfme" :max="2" :step="1" color="#747474" @change="changeValue"/>
+ </view>
+ </view>
+ </view>
+ </view>
+ <!-- 搴曢儴鎿嶄綔鎸夐挳 -->
+ <view class="buttom">
+ <button size="mini" @click="reset('warn')">閲嶇疆</button>
+ <button size="mini" type="primary" @click="combConfirm('warn')">纭</button>
+ </view>
+ <!-- 纭缁勬墭 -->
+ <view>
+ <uni-popup ref="combConfirm" type="dialog">
+ <uni-popup-dialog :type="msgType" cancelText="鍙栨秷" confirmText="纭" :title="title" :content="content"
+ @confirm="comb" @close="combClose"></uni-popup-dialog>
+ </uni-popup>
+ </view>
+ <!-- 纭閲嶇疆 -->
+ <view>
+ <uni-popup ref="resetConfirm" type="dialog">
+ <uni-popup-dialog :type="msgType" cancelText="鍙栨秷" confirmText="纭" :title="title" :content="content"
+ @confirm="resetConfirm" @close="resetClose"></uni-popup-dialog>
+ </uni-popup>
+ </view>
+ <view>
+ <!-- 鎻愮ず淇℃伅寮圭獥 -->
+ <uni-popup ref="message" type="message">
+ <uni-popup-message :type="msgType1" :message="messageText" :duration="2000"></uni-popup-message>
+ </uni-popup>
+ </view>
+ </view>
+</template>
+
+<script>
+ export default {
+ data() {
+ return {
+ batchOptions: [], // 瀵瑰簲 tagId=7 灏哄
+ memoOptions: [], // 瀵瑰簲 tagId=8 澶囨敞
+ matData: {
+ batch: '',
+ memo: '',
+ anfme: 0
+ },
+ selectedBatchIndex: 0,
+ selectedMemoIndex: 0,
+ baseUrl: '',
+ token: '',
+ barcode: '',
+ dataList: [],
+ count: 0,
+ rowNum: '',
+ matnr: '',
+ batch: '',
+ weight: '',
+ msgType1: 'success',
+ msgType: 'success',
+ messageText: '',
+ title: '',
+ content: '',
+ barcodeFocus: true,
+ matFocus: false,
+ removeNum: 0,
+ specs:'',
+ manuDate:'',
+ model:'',
+ length:'',
+ volume:'',
+ sta:3050,
+ list:["宸�","涓�","鍙�"],
+ index:0,
+ selectedValue:'宸�'
+ }
+ },
+ onLoad() {
+
+ },
+ onShow() {
+ this.baseUrl = uni.getStorageSync('baseUrl');
+ this.token = uni.getStorageSync('token');
+ },
+ mounted() {
+ this.getMemoOptions();
+ },
+ methods: {
+ onPropChangeBatch(e) {
+ this.selectedBatchIndex = e.detail.value;
+ this.matData.batch = this.batchOptions[e.detail.value];
+ },
+ onPropChangeMemo(e) {
+ this.selectedMemoIndex = e.detail.value;
+ this.matData.memo = this.memoOptions[e.detail.value];
+ },
+ getMemoOptions() {
+ const that = this;
+ uni.request({
+ url: that.baseUrl + '/mobile/pdaGetMemo',
+ method: 'POST',
+ header: {
+ 'token': uni.getStorageSync('token')
+ },
+ success(res) {
+ if (res.statusCode === 200) {
+ let data = res.data;
+ data.forEach(item => {
+ if (item.tagId === '7') {
+ that.batchOptions = item.memos;
+ } else if (item.tagId === '8') {
+ that.memoOptions = item.memos;
+ }
+ });
+ } else {
+ uni.showToast({ title: '鑾峰彇涓嬫媺鏁版嵁澶辫触', icon: 'none' });
+ }
+ }
+ });
+ },
+ analysis2() {
+ const data = this.matnr
+ const parseData = (data) => {
+ const lines = data.split('\n');
+ const t = {
+ boxPos: '宸�',
+ packageGroupNo: '',
+ rollType: '',
+ boxType: '',
+ thickness: '',
+ wideInWidth: '',
+ totalGrossWeight: '',
+ totalNetWeight: '',
+ rolls: []
+ };
+
+ // console.log(lines);
+ // 瑙f瀽鍩烘湰淇℃伅
+ lines.forEach(line => {
+ if (line.startsWith('鍖呰缁勫彿锛�')) t.packageGroupNo = line.split('锛�')[1].trim();
+ else if (line.startsWith('绠¤姱绫诲瀷锛�')) t.rollType = line.split('锛�')[1].trim();
+ else if (line.startsWith('鏈ㄧ绫诲瀷锛�')) t.boxType = line.split('锛�')[1].trim();
+ else if (line.startsWith('鍘氬害锛�')) t.thickness = line.split('锛�')[1].trim();
+ else if (line.startsWith('瀹藉箙锛�')) t.wideInWidth = line.split('锛�')[1].trim();
+ else if (line.startsWith('鎬绘瘺閲嶏細')) t.totalGrossWeight = line.split('锛�')[1].trim();
+ else if (line.startsWith('鎬诲噣閲嶏細')) t.totalNetWeight = line.split('锛�')[1].trim();
+ });
+
+ // 瑙f瀽鍗峰彿淇℃伅
+ let rollData = {};
+ let roll = {
+ rollNo: '',
+ boxNo: '',
+ specs: '',
+ length: '',
+ splices: '',
+ netWeight: '',
+ grossWeight: '',
+ fqTime: '',
+ }
+ lines.forEach(line => {
+ const match = line.match(/鍗峰彿(\d+)锛�(.+)/) || line.match(/绠卞彿(\d+)锛�(.+)/) || line.match(/瑙勬牸(\d+)锛�(.+)/) ||
+ line.match(/闀垮害(\d+)锛�(.+)/) || line.match(/鍑�閲�(\d+)锛�(.+)/) || line.match(/姣涢噸(\d+)锛�(.+)/) ||
+ line.match(/鎺ュご(\d+)锛�(.+)/) || line.match(/鍒嗗垏鏃堕棿(\d+)锛�(.+)/);
+
+ if (match) {
+ const index = match[1]; // 鑾峰彇搴忓彿
+ const key = match[0].split('锛�')[0]; // 鑾峰彇鍙傛暟鍚嶇О
+ const value = match[2].trim(); // 鑾峰彇鍙傛暟鍊�
+
+
+ // 鍒濆鍖栧嵎淇℃伅瀵硅薄
+ if (!rollData[index]) rollData[index] = {};
+ rollData[index][key] = value;
+ if (!roll[index]) roll[index] = {};
+ if (key.startsWith('鍗峰彿')) roll[index].rollNo = value;
+ else if (key.startsWith('绠卞彿')) roll[index].boxNo = value;
+ else if (key.startsWith('瑙勬牸')) roll[index].specs = value;
+ else if (key.startsWith('闀垮害')) roll[index].length = value.replace(/[^0-9]/ig, "");
+ else if (key.startsWith('鍑�閲�')) roll[index].netWeight = value.replace(/[^0-9]/ig, "");
+ else if (key.startsWith('姣涢噸')) roll[index].grossWeight = value.replace(/[^0-9]/ig, "");
+ else if (key.startsWith('鎺ュご')) roll[index].splices = value.replace(/[^0-9]/ig, "");
+ else if (key.startsWith('鍒嗗垏鏃堕棿')) roll[index].fqTime = value;
+
+ // 濡傛灉鏈夋墍鏈夊弬鏁帮紝鍒欏皢鍏舵帹鍏� rolls 鏁扮粍
+ if (Object.keys(rollData[index]).length === 8) { // 鎵�鏈夊瓧娈甸兘宸茬粡濉厖
+ t.rolls.push(rollData[index]);
+ rollData[index] = {}; // 閲嶇疆浠ュ噯澶囦笅涓�涓嵎
+ }
+
+ }
+ });
+ return t;
+ };
+
+ const result = parseData(data);
+ // console.log(result);
+ this.secAnalysis(result)
+ // if (this.dataList.length > 0) this.checkAdd(result)
+ // else this.dataList.push(result);
+ // this.focuss()
+
+ },
+ oo() {
+ let pp = {
+ palletizingNo: 3050,
+ barcode: 80009991,
+ boxList: {
+ boxPos: '宸�',
+ packageGroupNo: data.packageGroupNo,
+ rollType: data.rollType,
+ boxType: data.boxType,
+ thickness: data.thickness,
+ wideInWidth: data.wideInWidth,
+ totalGrossWeight: data.totalGrossWeight,
+ totalNetWeight: data.totalNetWeight,
+ rolls: [
+ {
+ rollNo: '',
+ boxNo: '',
+ specs: '',
+ length: '',
+ splices: '',
+ netWeight: '',
+ grossWeight: '',
+ fqTime: '',
+ },
+ {}
+ ],
+ }
+ }
+
+
+ },
+ // 浜屾瑙f瀽
+ secAnalysis(data) {
+ let rolls = data.rolls
+ let nedata = {
+ boxPos: '宸�',
+ packageGroupNo: data.packageGroupNo,
+ rollType: data.rollType,
+ boxType: data.boxType,
+ thickness: data.thickness,
+ wideInWidth: data.wideInWidth,
+ totalGrossWeight: data.totalGrossWeight,
+ totalNetWeight: data.totalNetWeight,
+ rolls: [],
+ }
+
+
+ for (let item of rolls) {
+ let roll = {
+ rollNo: '',
+ boxNo: '',
+ specs: '',
+ length: '',
+ splices: '',
+ netWeight: '',
+ grossWeight: '',
+ fqTime: '',
+ }
+ Object.keys(item).forEach(key=>{
+ if (key.startsWith('鍗峰彿')) roll.rollNo = item[key];
+ else if (key.startsWith('绠卞彿')) roll.boxNo = item[key];
+ else if (key.startsWith('瑙勬牸')) roll.specs = item[key];
+ else if (key.startsWith('闀垮害')) roll.length = item[key].replace(/[^0-9]/ig, "");
+ else if (key.startsWith('鍑�閲�')) roll.netWeight = item[key].replace(/[^0-9]/ig, "");
+ else if (key.startsWith('姣涢噸')) roll.grossWeight = item[key].replace(/[^0-9]/ig, "");
+ else if (key.startsWith('鎺ュご')) roll.splices = item[key].replace(/[^0-9]/ig, "");
+ else if (key.startsWith('鍒嗗垏鏃堕棿')) roll.fqTime = item[key];
+ })
+ nedata.rolls.push(roll)
+ }
+ if (this.dataList.length > 0) this.checkAdd(nedata)
+ else this.dataList.push(nedata);
+ this.focuss()
+ },
+ // 纭娣诲姞
+ checkAdd(newMat) {
+ // let mats = this.dataList
+ // for (let item of mats) {
+ // if (item.packagingGroupNumber != newMat.packagingGroupNumber) {
+ // if (item.rollNo == newMat.rollNo)
+ // } this.dataList.push(newMat);
+ // }
+
+ var len = this.dataList.length
+ var add = true
+ for (let k of this.dataList) {
+ if (newMat.packageGroupNo == k.packageGroupNo) {
+ add = false
+ }
+ }
+ if (add) {
+ if (this.dataList.length == 2) return
+ this.dataList.unshift(newMat)
+ }
+ if (this.dataList.length == 2) {
+ this.dataList[0].boxPos = '宸�'
+ this.dataList[1].boxPos = '鍙�'
+ this.list = ['宸�','鍙�']
+ }
+ },
+ onChange(e,index) {
+ if (this.dataList.length == 2) {
+ this.list = ['宸�','鍙�']
+ } else {
+ this.list = ['宸�','涓�','鍙�']
+ }
+ if (this.dataList.length == 2) {
+ this.dataList[index].boxPos = this.list[e.detail.value];
+ if (index == 0) {
+ if (e.detail.value == 0) {
+ this.dataList[1].boxPos = this.list[1];
+ } else {
+ this.dataList[1].boxPos = this.list[0];
+ }
+ } else {
+ if (e.detail.value == 0) {
+ this.dataList[0].boxPos = this.list[1];
+ } else {
+ this.dataList[0].boxPos = this.list[0];
+ }
+ }
+ } else {
+ this.dataList[index].boxPos = this.list[e.detail.value];
+ }
+ console.log(e,index)
+
+ },
+ // onChange(e,item) {
+ // console.log(e,item)
+ // this.item.boxPos = this.list[e.detail.value];
+ // },
+ messageToggle(type) {
+ this.msgType1 = type
+ this.$refs.message.open()
+ },
+ // barcode input 浜嬩欢
+ barcodeInput() {
+ // 涓嶈缃畾鏃跺櫒 浼氬嚭鐜版壂鍏ョ殑瀛楃涓蹭笉鍏�
+ setTimeout(() => {
+ var len = this.barcode.length
+ // if (len != 6) {
+ // uni.showToast({
+ // title: '鎵樼洏鐮佹湁璇閲嶈瘯',
+ // icon: "none",
+ // position: 'top'
+ // });
+ // this.barcodeFocuss()
+ // return;
+ // }
+ this.focuss()
+ }, 200)
+ },
+ // 鎵樼洏鐮佹湁璇噸缃�
+ barcodeFocuss() {
+ let that = this;
+ that.barcodeFocus = false;
+ setTimeout(() => {
+ that.barcode = '';
+ that.barcodeFocus = true;
+ }, 100);
+ },
+ // 鍟嗗搧鍏夋爣娓呯┖閲嶇疆
+ focuss() {
+ this.barcodeFocus = false;
+ this.matFocus = false;
+ setTimeout(() => {
+ this.matnr = '';
+ this.matFocus = true;
+ }, 100);
+ },
+ // 鎼滅储鐗╂枡
+ findMat() {
+ let that = this
+ let barcode = this.matnr.split(" ")
+ let packageGroupNo = barcode[11].slice(5)
+ console.log(barcode)
+ let mat = {}
+ mat.packageGroupNo = packageGroupNo
+ mat.boxPos = '宸�'
+ that.dataList.unshift(mat)
+ setTimeout(() => {
+ this.matnr = '';
+ this.matFocus = true;
+ }, 100);
+
+ },
+ selectMat() {
+ let that = this
+ uni.navigateTo({
+ url: "../mat/matQuery",
+ success: function(res) {
+ // 閫氳繃eventChannel鍚戣鎵撳紑椤甸潰浼犻�佹暟鎹� 鍚戝彟澶栦竴涓〉闈紶閫掑�肩殑
+ res.eventChannel.emit('commonUrl', {
+ commonUrl: ''
+ })
+ },
+ events: {
+ // 涓烘寚瀹氫簨浠舵坊鍔犱竴涓洃鍚櫒锛岃幏鍙栬鎵撳紑椤甸潰浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹� 鍙﹀涓�涓〉闈紶杩囨潵鐨�
+ acceptDataFromOpenedPage: function(data) {
+ that.matnr = data.data
+ that.findMat(that.matnr)
+ },
+ },
+
+
+ });
+ that.matnr = ''
+ },
+ checkMat(mat) {
+ var len = this.dataList.length
+ var add = true ,sameItem = false
+ for (var i = 0; i < len; i++) {
+ if (mat.matnr == this.dataList[i].matnr) {
+ for (var j = 0; j < len; j++) {
+ if (mat.batch == this.dataList[j].batch) {
+ sameItem = true
+ }
+ }
+ // 鐩稿悓鐗╂枡 涓嶅悓鎵瑰彿 鏂板姞鍒楄〃
+ if (mat.batch != this.dataList[i].batch) {
+ this.$forceUpdate() // 寮哄埗鍒锋柊
+ if (sameItem) {
+ add = false
+ } else {
+ add = true
+ }
+
+ } else {
+ // 鐩稿悓鐗╂枡鐩稿悓鎵瑰彿 鏁伴噺绱姞
+ this.dataList[i].anfme += mat.anfme
+ this.$forceUpdate() // 寮哄埗鍒锋柊
+ add = false
+ }
+ }
+ }
+ if (add) {
+ this.dataList.unshift(mat)
+ }
+ this.$forceUpdate() // 寮哄埗鍒锋柊
+ },
+ // 淇敼鎵瑰彿
+ revise(item, i) {
+ this.matnr = this.dataList[i].matnr
+ this.batch = this.dataList[i].batch
+ this.weight = this.dataList[i].weight
+ this.specs = this.dataList[i].specs
+ this.manuDate = this.dataList[i].manuDate
+ this.model = this.dataList[i].model
+ this.length = this.dataList[i].length
+ this.volume = this.dataList[i].volume
+ this.rowNum = i
+ this.eject()
+ },
+ eject(type) {
+ this.type = type
+ this.$refs.revise.open(type)
+ },
+ // 鍒楄〃绉婚櫎鎸夐挳
+ remove(item, i, type) {
+ this.removeNum = i
+ this.msgType = type
+ this.title = '璀﹀憡'
+ this.content = '鏄惁绉婚櫎褰撳墠鍟嗗搧!'
+ this.$refs.alertDialog.open(i)
+ },
+ // 纭绉婚櫎
+ removeConfirm() {
+ this.messageText = "绉婚櫎鎴愬姛"
+ this.messageToggle('success')
+ this.dataList.splice(this.removeNum, 1)
+ },
+ // 鍙栨秷绉婚櫎
+ removeClose() {
+ this.$refs.alertDialog.close()
+ },
+ reviseConfirm() {
+ this.dataList[this.rowNum].anfme = this.count
+ this.dataList[this.rowNum].batch = this.batch
+ this.dataList[this.rowNum].weight = this.weight
+ this.matnr = ''
+ this.messageText = "淇敼鎴愬姛"
+ this.messageToggle('success')
+ this.$refs.revise.close()
+ },
+ reviseClose() {
+ this.$refs.revise.close()
+ },
+ changeValue(value) {
+ this.matData.anfme = value
+ },
+ combConfirm(type) {
+ this.msgType = type
+ this.title = '璀﹀憡'
+ this.content = '鏄惁纭!'
+ this.$refs.combConfirm.open()
+ },
+ combClose() {
+ this.$refs.combConfirm.close()
+ },
+ comb() {
+ uni.vibrateShort();
+ let that = this;
+ if (that.barcode === '') {
+ this.messageText = "璇锋壂鎻忔墭鐩樻潯鐮�"
+ this.messageToggle('error')
+ return;
+ }
+ if (that.matData.batch.length === 0) {
+ this.messageText = "璇烽�夋嫨鏈ㄧ灏哄"
+ this.messageToggle('error')
+ return;
+ }
+ if (that.matData.memo.length === 0) {
+ this.messageText = "璇烽�夋嫨鏈ㄧ澶囨敞"
+ this.messageToggle('error')
+ return;
+ }
+ uni.request({
+ url: that.baseUrl + '/mobile/pdaBoxIn',
+ data: JSON.stringify({
+ palletizingNo: that.sta,
+ barcode: that.barcode,
+ batch: that.matData.batch,
+ memo: that.matData.memo,
+ anfme: that.matData.anfme
+ }),
+ method: 'POST',
+ header: {
+ 'token': uni.getStorageSync('token')
+ },
+ success(result) {
+ var res = result.data
+ if (res.code === 200) {
+ that.resst();
+ that.messageText = "鎴愬姛"
+ that.messageToggle('success')
+ } else if (res.code == 403) {
+ that.messageText = res.msg
+ that.messageToggle('error')
+ setTimeout(() => {
+ uni.reLaunch({
+ url: '../login/login'
+ });
+ }, 1000);
+ } else {
+ that.messageText = res.msg
+ that.messageToggle('error')
+ }
+ }
+ });
+ },
+ reset(type) {
+ this.msgType = type
+ this.title = '璀﹀憡'
+ this.content = '鏄惁閲嶇疆!'
+ this.$refs.resetConfirm.open()
+ },
+ // 纭閲嶇疆
+ resetConfirm() {
+ this.matData = []
+ this.messageText = "閲嶇疆瀹屾垚"
+ this.messageToggle('success')
+ },
+ // 鍙栨秷閲嶇疆
+ resetClose() {
+
+ },
+ // 娓呯┖
+ resst() {
+ this.matData = []
+ this.barcode = ''
+ this.barcodeFocuss()
+ },
+ }
+ }
+</script>
+
+<style>
+ @import url('../../static/css/wms.css/wms.css');
+
+ .picker {
+ padding: 10px;
+ height: 40rpx;
+ width: 40rpx;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ background-color: #5fbf8e;
+ color: #FFF;
+ border-radius: 50%;
+ }
+ .desc {
+ min-height: 40rpx;
+ display: flex;
+ align-items: center;
+ width: 20%;
+ }
+ .left-item {
+ display: flex;
+ flex-wrap: wrap;
+ width: 75%;
+ margin: 1px 1px 1px 1px;
+ /* color: #409EFF; */
+ }
+
+ .list:first-child {
+ margin-top: 350rpx;
+ }
+
+ .code {
+ width: 100%;
+ position: fixed;
+ min-height: 100rpx;
+ background-color: #FFF;
+ z-index: 10;
+ }
+
+ .item {
+ display: flex;
+ align-items: center;
+ margin-left: 20rpx;
+ border-bottom: 1px solid #DCDFE6;
+ }
+
+ .item input {
+ height: 50rpx;
+ line-height: 50rpx;
+ /* font-family: PingFang SC; uniapp 榛樿瀛椾綋涓嶅眳涓� */
+ font-size: 36upx;
+ font-family: PingFang SC;
+ width: 55vw;
+
+ }
+
+ .code-decs {
+ width: 20vw;
+ font-size: 18px;
+ color: #303133;
+ }
+
+ .item-right {
+ margin-left: auto;
+ margin-right: 20rpx;
+ }
+
+ .mat-list-title {
+ height: 80rpx;
+ line-height: 80rpx;
+ width: 100%;
+ background-color: white;
+ position: fixed;
+ margin-top: 230rpx;
+ z-index: 9;
+ /* border-top: 1px solid #DCDFE6; */
+ text-align: center;
+ box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
+ }
+ .attr-row {
+ display: flex;
+ flex-direction: row;
+ justify-content: space-between;
+ align-items: center;
+ }
+
+ .half-box {
+ width: 50%;
+ box-sizing: border-box;
+ border: 1rpx solid #ccc;
+ height: 60rpx;
+ border-radius: 8rpx;
+ background-color: #f9f9f9;
+ font-size: 24rpx;
+ display: flex;
+ align-items: center;
+ padding: 0 10rpx;
+ /* 缁熶竴瀛椾綋澶у皬锛屽乏鍙冲唴杈硅窛锛屽幓鎺変笂涓嬪唴杈硅窛纭繚鍨傜洿灞呬腑 */
+ }
+
+ .picker-box {
+ width: 100%;
+ /* 璁﹑icker鍐呭鎾戞弧鐩掑瓙 */
+ height: 60rpx;
+ line-height: 60rpx;
+ /* 琛岄珮鍨傜洿灞呬腑 */
+ }
+
+ input.half-box {
+ border: none;
+ outline: none;
+ /* 鍘绘帀input榛樿杈规 */
+ background-color: transparent;
+ /* 鑳屾櫙閫忔槑锛岃input鑳屾櫙璺熺埗鐩掑瓙涓�鑷� */
+ font-size: 24rpx;
+ /* 缁ф壙瀛椾綋澶у皬 */
+ height: 60rpx;
+ line-height: 60rpx;
+ /* 璁╂枃瀛楀瀭鐩村眳涓� */
+ }
+
+ .container {
+ width: 100%;
+ height: 100%;
+ background-color: #ffffff;
+ }
+ .text-box {
+ height: 100rpx;
+ line-height: 100rpx;
+ margin-top: 20rpx;
+ margin-left: 10%;
+ width: 80%;
+ font-size: 32rpx;
+ font-weight: 400;
+ color: #434343;
+ border-bottom: 1rpx solid #e8e8e8;
+ }
+ .text-box:last-child {
+ border-bottom: none;
+ }
+ .text-box .text-title {
+ width: 30%;
+ height: 100rpx;
+ float: left;
+ display: inline-block;
+ }
+ .text-box .text-title:last-child {
+ display: inline-block;
+ margin-left: 2%;
+ width: 72%;
+ font-size: 30rpx;
+ font-weight: 400;
+ color: #747474;
+ display: flex;
+ align-items: center;
+ }
+ .text-box .text-title:last-child input {
+ border-bottom: 1rpx solid #e8e8e8 ;
+ width: 100%;
+ }
+ .text-title input {
+ text-align: center;
+ border: 1rpx solid #e8e8e8;
+ border-radius: 5rpx;
+ padding: 5rpx;
+ font-size: 28rpx;
+ color: #747474;
+ }
+ .text-title text {
+ font-size: 28rpx;
+ color: #434343;
+ }
+ .text-title year{
+ display: inline-block;
+ margin-left: 2%;
+ width: 72%;
+ font-size: 30rpx;
+ font-weight: 400;
+ color: #747474;
+ }
+
+
+
+
+ .foot {
+ width: 100%;
+ height: 100rpx;
+ line-height: 100rpx;
+ background-color: rgba(255,255,255,1);
+ position: fixed;
+ bottom: 0%;
+ border-top: 1px solid #d8d8d8;
+ z-index: 1;
+ }
+ .text-box {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ margin-top: 20rpx;
+ margin-left: 10%;
+ width: 80%;
+ border-bottom: 1rpx solid #e8e8e8;
+ padding-bottom: 10rpx;
+ }
+
+ /* 鏍囩閮ㄥ垎鏍峰紡 */
+ .label {
+ width: 20%;
+ font-size: 30rpx;
+ color: #434343;
+ }
+</style>
--
Gitblit v1.9.1