Browse Source

no message

feature/v1.5
xpz2018 4 years ago
parent
commit
1a9a294902
3 changed files with 6 additions and 5 deletions
  1. 2
      components/calendar/calendar.wxml
  2. 2
      pages/process/index/index.wxml
  3. 7
      pages/process/outside-price/index.js

2
components/calendar/calendar.wxml

@ -3,7 +3,7 @@
<slot name="title" slot="title"></slot>
</header>
<scroll-view class="van-calendar__body" scroll-y="true" scroll-into-view="{{ scrollIntoView }}" scroll-top="{{ top }}">
<scroll-view class="van-calendar__body" scroll-y scroll-into-view="{{ scrollIntoView }}" scroll-top="{{ top }}">
<month wx:for="{{ computed.getMonths(minDate, maxDate) }}" wx:key="index" id="month{{ index }}" class="month"
data-date="{{ item }}" date="{{ item }}" type="{{ type }}" color="{{ color }}" index="{{ index }}" minDate="{{ minDate }}"
maxDate="{{ maxDate }}" showMark="{{ showMark }}" formatter="{{ formatter }}" rowHeight="{{ rowHeight }}"

2
pages/process/index/index.wxml

@ -111,7 +111,7 @@
</scroll-view>
<van-calendar show="{{ show }}" type="range" row-height="50" color="#008AFF" z-index="22" min-date="{{ minDate }}" max-date="{{ maxDate }}" default-date="{{ vdate }}" top="{{ 1500 }}" show-subtitle="{{ false }}" show-confirm="{{ false }}" bind:close="onClose" bind:confirm="onSelect"/>
<van-calendar show="{{ show }}" type="range" row-height="50" color="#008AFF" z-index="22" min-date="{{ minDate }}" max-date="{{ maxDate }}" default-date="{{ vdate }}" title="日期范围选择" show-subtitle="{{ false }}" show-confirm="{{ false }}" bind:close="onClose" bind:confirm="onSelect"/>
<van-action-sheet show="{{ sheet }}" actions="{{ actions }}" bind:cancel="onCancel" bind:close="onCancel"
bind:select="onAction" cancel-text="取消" z-index="22" />

7
pages/process/outside-price/index.js

@ -124,15 +124,16 @@ Scene({
util.showToast('请输入第' + (index + 1) + '项废纸品类毛重')
return
}
if(util.isEmpty(element.weightNoteImage)){
console.log(element.weightNoteImages)
if(util.isEmpty(element.weightNoteImages)){
util.showToast('请上传第' + (index + 1) + '项废纸品类过磅凭证')
return
}
if(element.weightNoteImage.length < 3){
if(element.weightNoteImages.length < 3){
util.showToast('每个品类过磅凭证图片必须3张以上')
return
}
var item = {grossWeight: element.grossWeight, tareWeight: element.tareWeight,weightNoteImage: element.weightNoteImage }
var item = {grossWeight: element.grossWeight, tareWeight: element.tareWeight,weightNoteImage: element.weightNoteImages }
item.scrapPaperPurchaseOrderId = element.scrapPaperPurchaseOrderId
weightNoteList.push(item)
}

Loading…
Cancel
Save