Commit 0c27ea9f by LJM

理货备注

parent 60c62ffb
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
<text class="label">待理货数量:</text> <text class="label">待理货数量:</text>
<text class="ttt">{{ item.wait_tally_qty }}</text> <text class="ttt">{{ item.wait_tally_qty }}</text>
</view> </view>
<navigator class="btn-box row" :url="'/pages/tallyReceive/operate?stock_in_item_id=' + item.stock_in_item_id" hover-class="none"><view class="btn row rowCenter verCenter">理货</view></navigator> <navigator class="btn-box row" :url="'/pages/tallyReceive/operate?stock_in_item_id=' + item.stock_in_item_id + '&stock_in_id=' + item.stock_in_id" hover-class="none"><view class="btn row rowCenter verCenter">理货</view></navigator>
</view> </view>
</view> </view>
<view class="no-date column rowCenter verCenter" v-else> <view class="no-date column rowCenter verCenter" v-else>
...@@ -197,7 +197,7 @@ export default { ...@@ -197,7 +197,7 @@ export default {
watch: { watch: {
image_list(arr) { image_list(arr) {
if (arr.length > 0) { if (arr.length > 0) {
this.formParams.image_ids = JSON.stringify(arr); this.formParams.image_ids = arr.join(',');
} }
} }
}, },
......
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
<text class="input-title-t1">*</text> <text class="input-title-t1">*</text>
<text class="input-title-t2">理货数量:</text> <text class="input-title-t2">理货数量:</text>
</view> </view>
<view class="input-box"><input type="text" class="uni-input" placeholder-style="color:#919399" placeholder="请输入" /></view> <view class="input-box"><input type="text" class="uni-input" placeholder-style="color:#919399" placeholder="请输入理货数量" v-model="formParams.tally_qty" /></view>
</view> </view>
<view class="row verCenter" style="flex: 0 0 278rpx;margin-top: 38rpx;"> <view class="row verCenter" style="flex: 0 0 278rpx;margin-top: 38rpx;">
<text class="input-title-p1">待理货数量:</text> <text class="input-title-p1">待理货数量:</text>
...@@ -110,17 +110,17 @@ ...@@ -110,17 +110,17 @@
<view class="row bothSide verCenter input-box-wrap"> <view class="row bothSide verCenter input-box-wrap">
<view> <view>
<view class="input-title"><text class="input-title-t2">D / C:</text></view> <view class="input-title"><text class="input-title-t2">D / C:</text></view>
<view class="input-box"><input type="text" class="uni-input" placeholder-style="color:#919399" placeholder="请输入" /></view> <view class="input-box"><input type="text" class="uni-input" placeholder-style="color:#919399" placeholder="请输入D/C" v-model="formParams.date_code" /></view>
</view> </view>
<view> <view>
<view class="input-title"><text class="input-title-t2">产 地:</text></view> <view class="input-title"><text class="input-title-t2">产 地:</text></view>
<view class="input-box"><input type="text" class="uni-input" placeholder-style="color:#919399" placeholder="请输入" /></view> <view class="input-box"><input type="text" class="uni-input" placeholder-style="color:#919399" placeholder="请输入产 地" v-model="formParams.coo" /></view>
</view> </view>
</view> </view>
<view class="row bothSide verCenter input-box-wrap"> <view class="row bothSide verCenter input-box-wrap">
<view> <view>
<view class="input-title"><text class="input-title-t2">其它批次属性:</text></view> <view class="input-title"><text class="input-title-t2">其它批次属性:</text></view>
<view class="input-box"><input type="text" class="uni-input" placeholder-style="color:#919399" placeholder="请输入" /></view> <view class="input-box"><input type="text" class="uni-input" placeholder-style="color:#919399" placeholder="请输入" v-model="formParams.other_batch_attr" /></view>
</view> </view>
<view></view> <view></view>
</view> </view>
...@@ -149,7 +149,7 @@ ...@@ -149,7 +149,7 @@
<text class="tt">整单照片</text> <text class="tt">整单照片</text>
</view> </view>
<view class="h2">理货备注:</view> <view class="h2">理货备注:</view>
<view class="textarea-box"><textarea placeholder-style="color:#919399" placeholder="请输入" /></view> <view class="textarea-box"><textarea placeholder-style="color:#919399" placeholder="请输入理货备注" v-model="formParams.tally_remark" /></view>
</view> </view>
<view class="fix-btn row verCenter"> <view class="fix-btn row verCenter">
<view class="btn1 row rowCenter verCenter"> <view class="btn1 row rowCenter verCenter">
...@@ -170,6 +170,7 @@ export default { ...@@ -170,6 +170,7 @@ export default {
data() { data() {
return { return {
stock_in_item_id: '', stock_in_item_id: '',
stock_in_id: '',
noexebshowFalg: true, //控制是否会触发生命周期 noexebshowFalg: true, //控制是否会触发生命周期
print_flag: true, //是否打印 print_flag: true, //是否打印
input_flag: false, input_flag: false,
...@@ -189,15 +190,18 @@ export default { ...@@ -189,15 +190,18 @@ export default {
container_id: '' //容器 container_id: '' //容器
}, },
formParams: { formParams: {
container_id: '', tally_qty: '', //理货数量,
tally_remark: '', date_code: '', //D/C
image_ids: '', coo: '', //产地
is_print: 1 other_batch_attr: '', //其他批次属性
image_ids: [], //图片
tally_remark: '' //理货备注
} }
}; };
}, },
onLoad(options) { onLoad(options) {
this.stock_in_item_id = options.stock_in_item_id || ''; this.stock_in_item_id = options.stock_in_item_id || '';
this.stock_in_id = options.stock_in_id || '';
}, },
onShow() { onShow() {
this.getData(); this.getData();
...@@ -206,7 +210,7 @@ export default { ...@@ -206,7 +210,7 @@ export default {
watch: { watch: {
image_list(arr) { image_list(arr) {
if (arr.length > 0) { if (arr.length > 0) {
this.formParams.image_ids = JSON.stringify(arr); this.formParams.image_ids = arr.join(',');
} }
} }
}, },
...@@ -365,16 +369,34 @@ export default { ...@@ -365,16 +369,34 @@ export default {
* 理货提交 * 理货提交
*/ */
createTallyReceive() { createTallyReceive() {
if (this.searchParams.container_id == '') {
uni.showModal({
itle: '提示',
content: '请选择容器',
showCancel: false
});
return false;
}
if (!this.formParams.tally_qty) {
uni.showModal({
itle: '提示',
content: '请填写理货数量',
showCancel: false
});
return false;
}
var params = { var params = {
container_id: container_id, container_id: this.searchParams.container_id,
stock_in_id: layui.form.val('tallyReceiveForm').stock_in_id, stock_in_id: this.stock_in_id,
stock_in_item_id: this.stock_in_item_id, stock_in_item_id: this.stock_in_item_id,
tally_qty: layui.form.val('tallyReceiveForm').tally_qty, tally_qty: this.formParams.tally_qty,
date_code: layui.form.val('tallyReceiveForm').date_code, date_code: this.formParams.date_code,
other_batch_attr: layui.form.val('tallyReceiveForm').other_batch_attr, other_batch_attr: this.formParams.other_batch_attr,
tally_remark: layui.form.val('tallyReceiveForm').tally_remark, tally_remark: this.formParams.tally_remark,
image_ids: image_ids.join(','), image_ids: this.formParams.image_ids,
coo: layui.form.val('tallyReceiveForm').coo coo: this.formParams.coo
}; };
this.request(API.createTallyReceive, 'POST', params, true).then(res => { this.request(API.createTallyReceive, 'POST', params, true).then(res => {
......
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 sign in to comment