Commit 96ce959c authored by honghy's avatar honghy

需求124 PDA-集运包裹验货

parent 5e431348
...@@ -77,3 +77,12 @@ export const getByWarehouseId = (params) => { ...@@ -77,3 +77,12 @@ export const getByWarehouseId = (params) => {
method: 'GET', method: 'GET',
}) })
} }
/**
* 创建集运验货明细
*/
export const createConsInspectionDetails = (params) => {
return http('/ecw/cons-inspection-details/create', params, {
method: 'post',
})
}
...@@ -443,6 +443,13 @@ ...@@ -443,6 +443,13 @@
{ {
"navigationBarTitleText": "包裹信息" "navigationBarTitleText": "包裹信息"
} }
},
{
"path" : "pages/cons/components/cargoInformation",
"style" :
{
"navigationBarTitleText": "货物信息"
}
} }
], ],
"globalStyle": { "globalStyle": {
......
This diff is collapsed.
...@@ -103,27 +103,10 @@ ...@@ -103,27 +103,10 @@
</uni-forms> </uni-forms>
<uni-row class="padding-xl text-center"> <uni-row class="padding-xl text-center">
<button type="primary" @click="consModel='show'"> <button type="primary" @click="goList">
{{ $t('下一步') }} {{ $t('下一步') }}
</button> </button>
</uni-row> </uni-row>
<view class="cu-modal" :class="consModel ? 'show' : ''" style="z-index: 999;">
<view class="cu-dialog">
<view class="cu-bar bg-white justify-end">
<view class="content">提示</view>
</view>
<view class="padding-xl">
包裹已签收,是否更新信息
</view>
<view class="cu-bar bg-white justify-end">
<view class="action">
<button class="cu-btn bg-blue margin-left" @tap="submitModel('form')">提交</button>
<button class="cu-btn bg-grey margin-left" @tap="consModel=!consModel">取消</button>
</view>
</view>
</view>
</view>
</view> </view>
</template> </template>
...@@ -173,7 +156,6 @@ export default { ...@@ -173,7 +156,6 @@ export default {
transportList: [], transportList: [],
expressList: [], expressList: [],
productIndex: null, productIndex: null,
consModel: false,
cons: {}, cons: {},
id: null, id: null,
keyword: '', keyword: '',
...@@ -364,42 +346,10 @@ export default { ...@@ -364,42 +346,10 @@ export default {
console.log('err', err); console.log('err', err);
}) })
}, },
submitModel(ref) {
this.consModel = false
this.$refs[ref].validate().then(res => {
var form = {
...this.cons,
mediaUrl: this.cons.mediaUrl.map(e => e.url).join(',')
}
console.log(form.mediaUrl)
if (form.mediaUrl === "") {
uni.showToast({
title: `请拍照`,
icon: 'none'
})
return
}
signedPda(form).then(() => {
uni.showToast({
title: `保存成功`
})
this.getList()
})
console.log(form)
}).catch(err => {
console.log('err', err);
})
},
goList() { goList() {
uni.navigateBack({ uni.navigateTo({
delta: 1 url: '/pages/cons/components/cargoInformation?consId=' + this.id
}) });
},
delProduct(index) {
this.consItemVOList.splice(index, 1)
},
addProduct() {
this.consItemVOList.push({prodId: 0, titleZh: "", quantity: 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