Commit cc97cef3 authored by chuan.liu's avatar chuan.liu

修复bug

parent 4b073852
...@@ -267,7 +267,7 @@ ...@@ -267,7 +267,7 @@
<image class="swiper-item-img" :src="clueDetail.doorPicUrl" mode="widthFix"> <image class="swiper-item-img" :src="clueDetail.doorPicUrl" mode="widthFix">
</image> </image>
</view> </view>
<text class="des">(点击图片可放大,只能上传一次图片,多次上传至保留最后上传)</text> <text class="des">(只能上传一次图片,多次上传至保留最后上传)</text>
</view> </view>
<view class="upload-area view"> <view class="upload-area view">
<text class="title">产品照片</text> <text class="title">产品照片</text>
...@@ -275,7 +275,7 @@ ...@@ -275,7 +275,7 @@
<image class="swiper-item-img" :src="clueDetail.productPicUrl" mode="widthFix"> <image class="swiper-item-img" :src="clueDetail.productPicUrl" mode="widthFix">
</image> </image>
</view> </view>
<text class="des">(点击图片可放大,只能上传一次图片,多次上传至保留最后上传)</text> <text class="des">(只能上传一次图片,多次上传至保留最后上传)</text>
</view> </view>
<view class="upload-area view"> <view class="upload-area view">
<text class="title">发票/收据照片</text> <text class="title">发票/收据照片</text>
...@@ -283,7 +283,7 @@ ...@@ -283,7 +283,7 @@
<image class="swiper-item-img" :src="clueDetail.receiptPicUrl" mode="widthFix"> <image class="swiper-item-img" :src="clueDetail.receiptPicUrl" mode="widthFix">
</image> </image>
</view> </view>
<text class="des">(点击图片可放大,只能上传一次图片,多次上传至保留最后上传)</text> <text class="des">(只能上传一次图片,多次上传至保留最后上传)</text>
</view> </view>
</view> </view>
......
...@@ -306,7 +306,7 @@ ...@@ -306,7 +306,7 @@
<text>+</text> <text>+</text>
</uni-file-picker> </uni-file-picker>
</view> </view>
<text class="des">(点击图片可放大,只能上传一次图片,多次上传至保留最后上传)</text> <text class="des">(只能上传一次图片,多次上传至保留最后上传)</text>
</view> </view>
<view class="upload-area view"> <view class="upload-area view">
<text class="title">产品照片</text> <text class="title">产品照片</text>
...@@ -317,7 +317,7 @@ ...@@ -317,7 +317,7 @@
<text>+</text> <text>+</text>
</uni-file-picker> </uni-file-picker>
</view> </view>
<text class="des">(点击图片可放大,只能上传一次图片,多次上传至保留最后上传)</text> <text class="des">(只能上传一次图片,多次上传至保留最后上传)</text>
</view> </view>
<view class="upload-area view"> <view class="upload-area view">
<text class="title">发票/收据照片</text> <text class="title">发票/收据照片</text>
...@@ -328,7 +328,7 @@ ...@@ -328,7 +328,7 @@
<text>+</text> <text>+</text>
</uni-file-picker> </uni-file-picker>
</view> </view>
<text class="des">(点击图片可放大,只能上传一次图片,多次上传至保留最后上传)</text> <text class="des">(只能上传一次图片,多次上传至保留最后上传)</text>
</view> </view>
</view> </view>
......
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
</view> </view>
</cell> </cell>
<cell> <cell>
<view class="loading-more" v-if='lists.length>2'> <view class="loading-more" v-if='lists.length>6'>
<text class="loading-more-text">{{loadingText}}</text> <text class="loading-more-text">{{loadingText}}</text>
</view> </view>
</cell> </cell>
...@@ -137,8 +137,14 @@ ...@@ -137,8 +137,14 @@
'name': '全部状态' 'name': '全部状态'
}, },
selectDataOptions: { selectDataOptions: {
'PunishType': [], 'PunishType': [{
'ProcessOrderStatus': [], 'code': '',
'name': '全部类型'
}],
'ProcessOrderStatus': [{
'code': '',
'name': '全部状态'
}],
}, },
typesIndex: 0, typesIndex: 0,
lists: [], lists: [],
...@@ -177,7 +183,7 @@ ...@@ -177,7 +183,7 @@
dictionaryKey: key dictionaryKey: key
} }
const res = await apiGetDictionary(params) const res = await apiGetDictionary(params)
this.selectDataOptions[key] = res.data this.selectDataOptions[key] = [...this.selectDataOptions[key], ...res.data]
}, },
async getProcessOrder(isRefresh) { async getProcessOrder(isRefresh) {
if (this.loadParams.isDone) { if (this.loadParams.isDone) {
...@@ -199,9 +205,12 @@ ...@@ -199,9 +205,12 @@
uni.hideLoading(); uni.hideLoading();
const { const {
currentPage,
totalNumberOfResults, totalNumberOfResults,
numberOfPages numberOfPages
} = res.data.pagination } = res.data.pagination
this.page.currentPage = currentPage
this.loadParams.total = totalNumberOfResults this.loadParams.total = totalNumberOfResults
this.loadParams.totalPage = numberOfPages this.loadParams.totalPage = numberOfPages
...@@ -224,7 +233,6 @@ ...@@ -224,7 +233,6 @@
this.getProcessOrder(true) this.getProcessOrder(true)
// #ifdef APP-NVUE // #ifdef APP-NVUE
try { try {
// console.log('-------', this.$refs.list)
this.$refs.list.resetLoadmore(); this.$refs.list.resetLoadmore();
} catch (e) { } catch (e) {
console.log('onrefresh', e) console.log('onrefresh', e)
...@@ -256,13 +264,22 @@ ...@@ -256,13 +264,22 @@
bindPickerTypesChange(e) { bindPickerTypesChange(e) {
console.log('bindPickerTypesChange', e.detail.value) console.log('bindPickerTypesChange', e.detail.value)
this.punishTypeSelected = this.selectDataOptions['PunishType'][e.detail.value] this.punishTypeSelected = this.selectDataOptions['PunishType'][e.detail.value]
this.condition.punishTypes[0] = this.punishTypeSelected.code if (e.detail.value === 0) {
this.condition.punishTypes = []
} else {
this.condition.punishTypes[0] = this.punishTypeSelected.code
}
this.getProcessOrder(true) this.getProcessOrder(true)
}, },
bindPickerStatusChange(e) { bindPickerStatusChange(e) {
console.log('bindPickerStatusChange', e.detail.value) console.log('bindPickerStatusChange', e.detail.value)
this.orderStatusSelected = this.selectDataOptions['ProcessOrderStatus'][e.detail.value] this.orderStatusSelected = this.selectDataOptions['ProcessOrderStatus'][e.detail.value]
this.condition.statusList[0] = this.orderStatusSelected.code if (e.detail.value === 0) {
this.condition.statusList = []
} else {
this.condition.statusList[0] = this.orderStatusSelected.code
}
this.getProcessOrder(true) this.getProcessOrder(true)
}, },
bindPickerYearChange(e) { bindPickerYearChange(e) {
......
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
</view> </view>
</cell> </cell>
<cell> <cell>
<view class="loading-more" v-if='lists.length>2'> <view class="loading-more" v-if='lists.length>6'>
<text class="loading-more-text">{{loadingText}}</text> <text class="loading-more-text">{{loadingText}}</text>
</view> </view>
</cell> </cell>
...@@ -173,9 +173,14 @@ ...@@ -173,9 +173,14 @@
created() { created() {
this.condition.submitUserId = this.userInfo.code this.condition.submitUserId = this.userInfo.code
// this.reset() // this.reset()
this.getClueList(true)
}, },
methods: { methods: {
async getClueList(isRefresh) { async getClueList(isRefresh) {
if (isRefresh) {
this.lists = []
}
if (this.loadParams.isDone) { if (this.loadParams.isDone) {
return return
} }
...@@ -215,9 +220,11 @@ ...@@ -215,9 +220,11 @@
if (res?.data?.results) { if (res?.data?.results) {
const { const {
currentPage,
totalNumberOfResults, totalNumberOfResults,
numberOfPages numberOfPages
} = res.data.pagination } = res.data.pagination
this.page.currentPage = currentPage
this.loadParams.total = totalNumberOfResults this.loadParams.total = totalNumberOfResults
this.loadParams.totalPage = numberOfPages this.loadParams.totalPage = numberOfPages
......
...@@ -28,10 +28,10 @@ ...@@ -28,10 +28,10 @@
<view class="middle view planout-block-item" v-for="(item,index) in lists" :key='item.PRODUCT_ID' <view class="middle view planout-block-item" v-for="(item,index) in lists" :key='item.PRODUCT_ID'
@click="handleChecked($event,item, index)"> @click="handleChecked($event,item, index)">
<text class="item-name">{{orderDetail.ITEM.DESCRIPTION}}</text> <text class="item-name">{{orderDetail.ITEM[0].DESCRIPTION}}</text>
<view class="text-block"> <view class="text-block">
<text class="middle-date middle-date-select">定制件数</text> <text class="middle-date middle-date-select">定制件数</text>
<text class="middle-date-des middle-date-des-select">{{orderDetail.ITEM.ZZFLD000009}}</text> <text class="middle-date-des middle-date-des-select">{{orderDetail.ITEM[0].ZZFLD000009}}</text>
</view> </view>
<view class="text-block"> <view class="text-block">
<text class="middle-date middle-date-select">收货方名称</text> <text class="middle-date middle-date-select">收货方名称</text>
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
</view> </view>
<view class="text-block"> <view class="text-block">
<text class="middle-date middle-date-select">经销商名称</text> <text class="middle-date middle-date-select">经销商名称</text>
<text class="middle-date-des middle-date-des-select">{{orderDetail.INFO.BUSINAME}}</text> <text class="middle-date-des middle-date-des-select">{{orderDetail.INFO.GRPNAME}}</text>
</view> </view>
<view class="text-block text-block-last"> <view class="text-block text-block-last">
<text class="middle-date middle-date-select">外箱喷码内容</text> <text class="middle-date middle-date-select">外箱喷码内容</text>
...@@ -104,12 +104,12 @@ ...@@ -104,12 +104,12 @@
"Sign": "b4eeef27e8dbb663bab932d742dc425f" "Sign": "b4eeef27e8dbb663bab932d742dc425f"
}, },
orderDetail: { orderDetail: {
ITEM: { ITEM: [{
DESCRIPTION: '', DESCRIPTION: '',
ZZFLD000009: '', ZZFLD000009: '',
DESCRIPTION: '', DESCRIPTION: '',
DESCRIPTION: '', DESCRIPTION: '',
}, }],
INFO: { INFO: {
ZZFLD00008T: '', ZZFLD00008T: '',
ZZFLD00002L: '', ZZFLD00002L: '',
......
...@@ -143,6 +143,9 @@ ...@@ -143,6 +143,9 @@
HEADINFO: {}, HEADINFO: {},
paintDesignIndex: 0, paintDesignIndex: 0,
paintDesignPicker: [{ paintDesignPicker: [{
key: '',
value: ''
}, {
key: 'O', key: 'O',
value: '团购订单' value: '团购订单'
}, },
...@@ -397,6 +400,7 @@ ...@@ -397,6 +400,7 @@
.uni-list-cell { .uni-list-cell {
flex: 1; flex: 1;
height: 96rpx;
} }
.uni-list-cell-db { .uni-list-cell-db {
......
...@@ -138,7 +138,7 @@ ...@@ -138,7 +138,7 @@
intotalComputed() { intotalComputed() {
let money = 0 let money = 0
this.planinnerLists.forEach((item) => { this.planinnerLists.forEach((item) => {
money += item.NET_VALUE money += item.NET_VALUE * 1
}) })
return money return money
}, },
...@@ -360,8 +360,8 @@ ...@@ -360,8 +360,8 @@
"ORDERED_PROD": "", "ORDERED_PROD": "",
"DESCRIPTION": "", "DESCRIPTION": "",
"SHORT_TEXT": "", "SHORT_TEXT": "",
'NET_PRICE': '', 'NET_PRICE': 0,
'NET_VALUE': '', 'NET_VALUE': 0,
'quantity': 0, 'quantity': 0,
'total': 0, 'total': 0,
'product_info': {}, 'product_info': {},
......
...@@ -136,7 +136,7 @@ ...@@ -136,7 +136,7 @@
intotalComputed() { intotalComputed() {
let money = 0 let money = 0
this.planinnerLists.forEach((item) => { this.planinnerLists.forEach((item) => {
money += item.NET_VALUE money += item.NET_VALUE * 1
}) })
return money return money
} }
...@@ -333,11 +333,10 @@ ...@@ -333,11 +333,10 @@
"ORDERED_PROD": "", "ORDERED_PROD": "",
"DESCRIPTION": "", "DESCRIPTION": "",
"SHORT_TEXT": "", "SHORT_TEXT": "",
'NET_PRICE': '', 'NET_PRICE': 0,
'NET_VALUE': '', 'NET_VALUE': 0,
'quantity': 0, 'quantity': 0,
'total': 0, 'total': 0,
NET_VALUE: 0,
'product_info': {} 'product_info': {}
} }
this.planinnerLists.unshift(product) this.planinnerLists.unshift(product)
......
...@@ -524,11 +524,10 @@ ...@@ -524,11 +524,10 @@
"ORDERED_PROD": "", "ORDERED_PROD": "",
"DESCRIPTION": "", "DESCRIPTION": "",
"SHORT_TEXT": "", "SHORT_TEXT": "",
'NET_PRICE': '', 'NET_PRICE': 0,
'NET_VALUE': '', 'NET_VALUE': 0,
'quantity': 0, 'quantity': 0,
'total': 0, 'total': 0,
NET_VALUE: 0,
'product_info': {}, 'product_info': {},
'salesplan_info': {} 'salesplan_info': {}
} }
......
...@@ -209,9 +209,9 @@ ...@@ -209,9 +209,9 @@
const params = { const params = {
...this.page, ...this.page,
"input": { "input": {
BUNAME: '', BUNAME,
OWNERCODE: '', OWNERCODE,
CUNAME: '' CUNAME
}, },
} }
...@@ -228,7 +228,7 @@ ...@@ -228,7 +228,7 @@
DATA, DATA,
TOTAL TOTAL
} = res } = res
this.loadParams.total = TOTAL this.loadParams.total = TOTAL * 1
this.loadParams.totalPage = Math.ceil(TOTAL * 1 / this.page.PAGESIZE * 1) this.loadParams.totalPage = Math.ceil(TOTAL * 1 / this.page.PAGESIZE * 1)
const dataMap = res.DATA.map((item) => { const dataMap = res.DATA.map((item) => {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -18640,11 +18640,7 @@ var render = function() { ...@@ -18640,11 +18640,7 @@ var render = function() {
_c( _c(
"v-uni-text", "v-uni-text",
{ staticClass: _vm._$g(172, "sc"), attrs: { _i: 172 } }, { staticClass: _vm._$g(172, "sc"), attrs: { _i: 172 } },
[ [_vm._v("(只能上传一次图片,多次上传至保留最后上传)")]
_vm._v(
"(点击图片可放大,只能上传一次图片,多次上传至保留最后上传)"
)
]
) )
], ],
1 1
...@@ -18700,11 +18696,7 @@ var render = function() { ...@@ -18700,11 +18696,7 @@ var render = function() {
_c( _c(
"v-uni-text", "v-uni-text",
{ staticClass: _vm._$g(178, "sc"), attrs: { _i: 178 } }, { staticClass: _vm._$g(178, "sc"), attrs: { _i: 178 } },
[ [_vm._v("(只能上传一次图片,多次上传至保留最后上传)")]
_vm._v(
"(点击图片可放大,只能上传一次图片,多次上传至保留最后上传)"
)
]
) )
], ],
1 1
...@@ -18760,11 +18752,7 @@ var render = function() { ...@@ -18760,11 +18752,7 @@ var render = function() {
_c( _c(
"v-uni-text", "v-uni-text",
{ staticClass: _vm._$g(184, "sc"), attrs: { _i: 184 } }, { staticClass: _vm._$g(184, "sc"), attrs: { _i: 184 } },
[ [_vm._v("(只能上传一次图片,多次上传至保留最后上传)")]
_vm._v(
"(点击图片可放大,只能上传一次图片,多次上传至保留最后上传)"
)
]
) )
], ],
1 1
...@@ -21034,11 +21022,7 @@ var render = function() { ...@@ -21034,11 +21022,7 @@ var render = function() {
_c( _c(
"v-uni-text", "v-uni-text",
{ staticClass: _vm._$g(155, "sc"), attrs: { _i: 155 } }, { staticClass: _vm._$g(155, "sc"), attrs: { _i: 155 } },
[ [_vm._v("(只能上传一次图片,多次上传至保留最后上传)")]
_vm._v(
"(点击图片可放大,只能上传一次图片,多次上传至保留最后上传)"
)
]
) )
], ],
1 1
...@@ -21070,11 +21054,7 @@ var render = function() { ...@@ -21070,11 +21054,7 @@ var render = function() {
_c( _c(
"v-uni-text", "v-uni-text",
{ staticClass: _vm._$g(160, "sc"), attrs: { _i: 160 } }, { staticClass: _vm._$g(160, "sc"), attrs: { _i: 160 } },
[ [_vm._v("(只能上传一次图片,多次上传至保留最后上传)")]
_vm._v(
"(点击图片可放大,只能上传一次图片,多次上传至保留最后上传)"
)
]
) )
], ],
1 1
...@@ -21106,11 +21086,7 @@ var render = function() { ...@@ -21106,11 +21086,7 @@ var render = function() {
_c( _c(
"v-uni-text", "v-uni-text",
{ staticClass: _vm._$g(165, "sc"), attrs: { _i: 165 } }, { staticClass: _vm._$g(165, "sc"), attrs: { _i: 165 } },
[ [_vm._v("(只能上传一次图片,多次上传至保留最后上传)")]
_vm._v(
"(点击图片可放大,只能上传一次图片,多次上传至保留最后上传)"
)
]
) )
], ],
1 1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment