You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

245 lines
9.2 KiB

<!--pages/specialOrderApplication/creatNewSpecialOrder/creatNewSpecialOrder.wxml-->
<view class="swiper-tab">
<view class="swiper-tab-list {{currentTab==0 ? 'on' : ''}}" data-current="0" bindtap="swichNav">基本信息</view>
<view class="swiper-tab-second {{currentTab==1 ? 'on' : ''}}" data-current="1" bindtap="swichNav">客户明细</view>
<view class="swiper-tab-list {{currentTab==2 ? 'on' : ''}}" data-current="2" bindtap="swichNav">存货明细</view>
</view>
<swiper current="{{currentTab}}" class="swiper-box" duration="300" style="height:{{winHeight - 55}}px" bindchange="bindChange">
<!-- 基本信息 -->
<swiper-item class="swiper-items1">
<view class='backGroundContainer'>
<view class='baseitem'>
<text class='baseitem_key'>名称</text>
<input class='baseitem_value' bindinput='getName' placeholder='请输入单据名称' placeholder-style='color:rgb(202, 202, 202)' value="{{name}}"></input>
</view>
<view class='horizontallineView'></view>
<view class='baseitem'>
<text class='baseitem_key'>日期</text>
<picker class='baseitem_value' mode="multiSelector" value="{{dateTime}}" bindchange="changeDateTime" range="{{dateTimeArray}}">
<view class="tui-picker-detail">
{{dateTimeArray[0][dateTime[0]]}}-{{dateTimeArray[1][dateTime[1]]}}-{{dateTimeArray[2][dateTime[2]]}} {{dateTimeArray[3][dateTime[3]]}}:{{dateTimeArray[4][dateTime[4]]}}
</view>
</picker>
</view>
<view class='horizontallineView'></view>
<view class='baseitem'>
<text class='baseitem_key'>会计单位</text>
<view class="baseitem_value {{unit.length <=1 ? 'viewPlaceHolder' : 'viewSelected'}}" bindtap="powerDrawer" data-statu="open" data-x='会计部门' data-item='{{which}}'>
{{unit[isUnit].Name}}
</view>
</view>
<view class='horizontallineView'></view>
<view class='baseitem'>
<text class='baseitem_key'>销售部门</text>
<view class="baseitem_value {{department.length <=1 ? 'viewPlaceHolder' : 'viewSelected'}}" bindtap="powerDrawer" data-statu="open" data-x='部门' data-item='{{which}}'>
{{department[departmentIndex].Name}}
</view>
</view>
<view class='horizontallineView'></view>
<view class='baseitem'>
<text class='baseitem_key'>摘要</text>
<input class='baseitem_value' bindinput='getRemark' placeholder='请输入摘要信息' placeholder-style='color:rgb(202, 202, 202)' value="{{remark}}"></input>
</view>
<view class='horizontallineView'></view>
<!-- <view class='baseitem'>
<text class='baseitem_key'>销售类型</text>
<view class="baseitem_value {{saletype.length <=1 ? 'viewPlaceHolder' : 'viewSelected'}}" bindtap="powerDrawer" data-statu="open" data-x='销售类型' data-item='{{which}}'>
{{saletype[saletypeIndex].Name}}
</view>
</view>
<view class='horizontallineView'></view> -->
</view>
<!-- 遮罩 -->
<view class="drawer_screen" bindtap="powerDrawer" data-item='{{which}}' data-statu="close" wx:if="{{showModalStatus}}"></view>
<view animation="{{animationData}}" data-item='{{which}}' class="drawer_box" wx:if="{{showModalStatus}}">
<!--drawer content-->
<view class='top' data-item='{{which}}'>
<input data-item='{{which}}' class="sousuo" bindinput="select" placeholder='请输入搜索'>
</input>
</view>
<view class="drawer_content">
<block wx:for="{{currency}}" wx:key="item" wx:for-index="idx">
<view class="grid1" data-item='{{which}}' catchtap='itemclick' data-idx='{{idx}}'>
<text class='text3'>{{item.Name}}</text>
</view>
</block>
</view>
<view class="btn_ok" bindtap="powerDrawer" data-statu="close">取消</view>
</view>
</swiper-item>
<!-- 客户明细 -->
<swiper-item class="swiper-items2">
<scroll-view scroll-x="false" scroll-y="true" class='scroll-views'>
<view class="detaileListContainer {{customerArr.length > 0 ? '' : 'customerImageToTopFar'}}">
<block wx:for="{{customerArr}}" wx:key="item" wx:for-index="idx">
<template is="customerInfoTemplate" data="{{item,idx}}" />
</block>
</view>
<view class="imageView" catchtap='addCustomer'>
<image class='currentImage' src="/imgs/longBlueBtn.png">
<view class='btnTextView'>
<text class='btnText'>添加客户</text>
</view>
</image>
</view>
</scroll-view>
</swiper-item>
<!-- 存货详细 -->
<swiper-item class="swiper-items3">
<scroll-view scroll-x="false" scroll-y="true" class='scroll-views'>
<view class="detaileListContainer {{goodsNameArr.length > 0 ? '' : 'goodsNameImageToTopFar'}}">
<block wx:for="{{goodsNameArr}}" wx:for-item="item" wx:key="item" wx:for-index="idx">
<template is="goodsInfoTemplate" data="{{item,idx}}" />
</block>
</view>
<view class='imageView' catchtap='addGoodsName'>
<image class='currentImage' src="/imgs/longBlueBtn.png">
<view class='btnTextView'>
<text class='btnText'>添加存货</text>
</view>
</image>
</view>
<view class='bottomGroupView'>
<view class='imageViewNoMargin' catchtap='moreBtnClick'>
<image class='currentImage' src="/imgs/blueBtn.png">
<view class='btnTextView'>
<text class='btnText'>更多</text>
</view>
</image>
</view>
<view class='imageViewNoMargin' catchtap='submitOrder'>
<image class='currentImage' src="/imgs/blueBtn.png">
<view class='btnTextView'>
<text class='btnText'>保存</text>
</view>
</image>
</view>
</view>
<!-- <view class='imageViewNoMargin' catchtap='submitOrder'>
<image class='currentImage' src="/imgs/longBlueBtn.png">
<view class='btnTextView'>
<text class='btnText'>保存</text>
</view>
</image>
</view> -->
</scroll-view>
</swiper-item>
</swiper>
<template name="customerInfoTemplate">
<view class='listNumberView'>
客户明细:{{idx+1}}
</view>
<view class='baseitem'>
<text class='baseitem_key'>名称</text>
<view class='baseitem_value'>
{{item.Name}}
</view>
</view>
<view class='horizontallineView'></view>
<view class='baseitem'>
<text class='baseitem_key'>客户类型</text>
<view class='baseitem_value'>
{{item.CustomerCatalog_Name}}
</view>
</view>
<view class='horizontallineView'></view>
<view class='delete' catchtap='deleteCustomerItem' data-idx='{{idx}}'>删除</view>
<view class='horizontallineView'></view>
</template>
<template name="goodsInfoTemplate">
<view class='listNumberView'>
存货明细:{{idx+1}}
</view>
<view class='baseitem'>
<text class='baseitem_key'>存货名称</text>
<view class='baseitem_value'>
{{item.Goods_Name}}
</view>
</view>
<view class='horizontallineView'></view>
<view class='baseitem'>
<text class='baseitem_key'>原单价</text>
<view class='baseitem_value'>{{item.Price}}
<!-- <input class='inputItem' type='digit' value='{{item.Price}}' placeholder='请输入原单价价格' placeholder-style='color:rgb(202, 202, 202)' bindinput='getInputValue' data-index='{{idx}}' data-datastyle='Price'>
</input> -->
</view>
</view>
<view class='horizontallineView'></view>
<view class='baseitem'>
<text class='baseitem_key'>特价</text>
<view class='baseitem_value'>
<input class='inputItem' type='digit' value='{{item.applicationPrice}}' placeholder='请输入申请特价价格' placeholder-style='color:rgb(202, 202, 202)' bindinput='getInputValue' data-index='{{idx}}' data-datastyle='applicationPrice'>
</input>
</view>
</view>
<view class='horizontallineView'></view>
<view class='baseitem'>
<text class='baseitem_key'>开始时间</text>
<picker class='baseitem_value' mode="date" start="2018-01-01" end="2037-12-31" bindchange="bindTimeChange" data-index='{{idx}}' data-datastyle='applicationStartTime'>
<view>
{{item.applicationStartTime}}
</view>
</picker>
</view>
<view class='horizontallineView'></view>
<view class='baseitem'>
<text class='baseitem_key'>结束时间</text>
<picker class='baseitem_value' mode="date" start="2018-01-01" end="2037-12-31" bindchange="bindTimeChange" data-index='{{idx}}' data-datastyle='applicationEndTime'>
<view>
{{item.applicationEndTime}}
</view>
</picker>
</view>
<view class='horizontallineView'></view>
<view class='baseitem'>
<text class='baseitem_key'>申请数量</text>
<view class='baseitem_value'>
<input class='inputItem' placeholder='请输入申请数量' placeholder-style='color:rgb(202, 202, 202)' type='digit' value='{{item.applicationNum}}' bindinput='getInputValue' data-index='{{idx}}' data-datastyle='applicationNum'>
</input>
</view>
</view>
<view class='horizontallineView'></view>
<view class='delete' catchtap='deleteGoodsItem' data-id='{{idx}}'>删除</view>
<view class='horizontallineView'></view>
</template>