Commit bcdd32b6 by liangjianmin

fix(tallyReceive): 修改D/C编码字段名称及相关逻辑

- 将D/C编码字段名称从dc_code更改为date_code,以保持一致性
- 更新相关逻辑,确保在提交时正确验证date_code的必填状态
- 清空表单时同步更新字段名称,提升代码可读性
parent c0b87acb
Showing with 5 additions and 5 deletions
......@@ -224,7 +224,7 @@
</view>
<view class="h2" v-else>D / C:</view>
<view class="dc-input-box">
<input class="uni-input" :placeholder="is_dc_required ? '请输入D/C,该项必填' : '请输入D/C'" placeholder-style="color:#919399" v-model="formParams.dc_code" />
<input class="uni-input" :placeholder="is_dc_required ? '请输入D/C,该项必填' : '请输入D/C'" placeholder-style="color:#919399" v-model="formParams.date_code" />
</view>
<view class="h2 row bothSide verCenter" style="margin-top: 25rpx;">
<view>
......@@ -314,7 +314,7 @@
tally_remark: '',
image_ids: '', //理货照片集合
is_print: 1,
dc_code: '' //D/C编码
date_code: '' //D/C编码
},
fastParams: {
flag: '',
......@@ -808,7 +808,7 @@
*/
createTallyReceiveSubmit() {
// 验证D/C是否必填
if (this.is_dc_required && !this.formParams.dc_code) {
if (this.is_dc_required && !this.formParams.date_code) {
uni.showToast({
title: '该理货任务D/C必填,请输入D/C',
icon: 'none',
......@@ -831,7 +831,7 @@
tally_remark: this.formParams.tally_remark,
image_ids: this.formParams.image_ids,
is_print: this.formParams.is_print,
dc_code: this.formParams.dc_code,
date_code: this.formParams.date_code,
stock_in_item_id: this.filter_id.join(',')
};
this.request(API.createTallyReceive, 'POST', params, true).then(res => {
......@@ -896,7 +896,7 @@
this.server_image_list = []; //清空服务器图片列表
this.formParams.image_ids = ''; //每次打开先清空图片集合
this.formParams.tally_remark = ''; //每次打开先清空理货备注
this.formParams.dc_code = ''; //每次打开先清空D/C
this.formParams.date_code = ''; //每次打开先清空D/C
this.$refs.showRight.open();
},
/**
......
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