组袋修改
This commit is contained in:
@@ -73,12 +73,20 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="zd-row border-bottom">
|
<view class="zd-row border-bottom">
|
||||||
<view class="zd-col-6">
|
<view class="zd-col-6">
|
||||||
<span class="filter_label">数量</span>
|
<span class="filter_label">净重</span>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-col-18">
|
<view class="zd-col-18">
|
||||||
<input type="number" v-model="num" class="filter_input">
|
<input type="number" v-model="num" class="filter_input">
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="zd-row border-bottom">
|
||||||
|
<view class="zd-col-6">
|
||||||
|
<span class="filter_label">总重</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-18">
|
||||||
|
<input type="number" v-model="totalQty" class="filter_input">
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
<view class="zd-row border-bottom">
|
<view class="zd-row border-bottom">
|
||||||
<view class="zd-col-6">
|
<view class="zd-col-6">
|
||||||
<span class="filter_label">有效期至</span>
|
<span class="filter_label">有效期至</span>
|
||||||
@@ -102,9 +110,9 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="zd-row submit-bar">
|
<view class="zd-row submit-bar">
|
||||||
<!-- <button class="zd-col-5 button-default" @tap="toEmpty">清空</button> -->
|
<!-- <button class="zd-col-5 button-default" @tap="toEmpty">清空</button> -->
|
||||||
<button class="zd-col-7 button-primary" :class="{'button-info': flag || !val1 || !pcsn || !num || JSON.stringify(materialData) === '{}'}" :disabled="disabled" @tap="toZdPrint">组袋并打印</button>
|
<!-- <button class="zd-col-7 button-primary" :class="{'button-info': flag || !val1 || !pcsn || !num || JSON.stringify(materialData) === '{}'}" :disabled="disabled" @tap="toZdPrint">组袋并打印</button> -->
|
||||||
<button class="zd-col-7 button-primary" :class="{'button-info': flag || !val1 || !pcsn || !num || JSON.stringify(materialData) === '{}'}" :disabled="disabled" @tap="handleSubmit">确认组袋</button>
|
<button class="zd-col-10 button-primary" :class="{'button-info': flag || !val1 || !pcsn || !num || JSON.stringify(materialData) === '{}'}" :disabled="disabled" @tap="handleSubmit">确认组袋</button>
|
||||||
<button class="zd-col-7 button-primary" :class="{'button-info': !val1 || !pcsn || !num || JSON.stringify(materialData) === '{}'}" :disabled="disabled1" @tap="tolPrint">标签打印</button>
|
<button class="zd-col-10 button-primary" :class="{'button-info': !val1 || !pcsn || !num || JSON.stringify(materialData) === '{}'}" :disabled="disabled1" @tap="tolPrint">标签打印</button>
|
||||||
</view>
|
</view>
|
||||||
<!-- 自定义弹窗 -->
|
<!-- 自定义弹窗 -->
|
||||||
<view v-if="dialogVisible" class="dialog-mask" @click="closeDialog" @touchmove.stop.prevent>
|
<view v-if="dialogVisible" class="dialog-mask" @click="closeDialog" @touchmove.stop.prevent>
|
||||||
@@ -176,6 +184,7 @@
|
|||||||
recordNo: '',
|
recordNo: '',
|
||||||
materialData: {},
|
materialData: {},
|
||||||
num: '',
|
num: '',
|
||||||
|
totalQty: '',
|
||||||
unit: 'KG',
|
unit: 'KG',
|
||||||
disabled: false,
|
disabled: false,
|
||||||
disabled1: false,
|
disabled1: false,
|
||||||
@@ -192,8 +201,8 @@
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
startDate() {
|
startDate() {
|
||||||
return this.nowDate
|
// return this.nowDate
|
||||||
// return getDate('start');
|
return getDate('start');
|
||||||
},
|
},
|
||||||
endDate() {
|
endDate() {
|
||||||
return getDate('end');
|
return getDate('end');
|
||||||
@@ -282,6 +291,7 @@
|
|||||||
this.materialData = res.data
|
this.materialData = res.data
|
||||||
this.pcsn = this.materialData.pcsn
|
this.pcsn = this.materialData.pcsn
|
||||||
this.num = this.materialData.qty
|
this.num = this.materialData.qty
|
||||||
|
this.totalQty = this.materialData.total_qty
|
||||||
this.date = this.materialData.validity_period
|
this.date = this.materialData.validity_period
|
||||||
// 调用此接口后并成功返回结构后,页面所有操作禁用,【标签打印】按钮可以正常使用。
|
// 调用此接口后并成功返回结构后,页面所有操作禁用,【标签打印】按钮可以正常使用。
|
||||||
this.flag = true
|
this.flag = true
|
||||||
@@ -322,6 +332,7 @@
|
|||||||
this.recordNo = ''
|
this.recordNo = ''
|
||||||
this.materialData = {}
|
this.materialData = {}
|
||||||
this.num = ''
|
this.num = ''
|
||||||
|
this.totalQty = ''
|
||||||
this.unit = 'KG'
|
this.unit = 'KG'
|
||||||
this.pcsn = ''
|
this.pcsn = ''
|
||||||
this.flag = false
|
this.flag = false
|
||||||
@@ -345,14 +356,14 @@
|
|||||||
async _confirmBagAssembly (username, password) {
|
async _confirmBagAssembly (username, password) {
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
try {
|
try {
|
||||||
let res = await confirmBagAssembly(username, password, this.val1, this.materialData.material_id, this.materialData.supp_code, this.num, this.pcsn, this.date)
|
let res = await confirmBagAssembly(username, password, this.totalQty, this.val1, this.materialData.material_id, this.materialData.supp_code, this.num, this.pcsn, this.date)
|
||||||
if (res) {
|
if (res) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
this.toEmpty()
|
this.val1 = ''
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
@@ -491,7 +502,6 @@
|
|||||||
title: '操作成功',
|
title: '操作成功',
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
})
|
})
|
||||||
this.toEmpty()
|
|
||||||
this.disabled1 = false
|
this.disabled1 = false
|
||||||
},
|
},
|
||||||
printTwo (row) {
|
printTwo (row) {
|
||||||
@@ -574,7 +584,6 @@
|
|||||||
title: '操作成功',
|
title: '操作成功',
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
})
|
})
|
||||||
this.toEmpty()
|
|
||||||
this.disabled1 = false
|
this.disabled1 = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -56,7 +56,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="zd-row border-bottom">
|
<view class="zd-row border-bottom">
|
||||||
<view class="zd-col-6">
|
<view class="zd-col-6">
|
||||||
<span class="filter_label filter_input_disabled">数量</span>
|
<span class="filter_label filter_input_disabled">净重</span>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-col-18">
|
<view class="zd-col-18">
|
||||||
<input type="number" v-model="num" class="filter_input filter_input_disabled" disabled>
|
<input type="number" v-model="num" class="filter_input filter_input_disabled" disabled>
|
||||||
|
|||||||
@@ -150,9 +150,9 @@ export const byBagCodeInfo = (mid) => request({
|
|||||||
data: {material_id: mid}
|
data: {material_id: mid}
|
||||||
})
|
})
|
||||||
// 物料组袋
|
// 物料组袋
|
||||||
export const confirmBagAssembly = (username, password, bagNo, mid, suppCode, qty, pcsn, vperiod) => request({
|
export const confirmBagAssembly = (username, password, tqty, bagNo, mid, suppCode, qty, pcsn, vperiod) => request({
|
||||||
url:'api/pdaCommon/confirmBagAssembly',
|
url:'api/pdaCommon/confirmBagAssembly',
|
||||||
data: {username: username, password: RSAencrypt(password), bagNo: bagNo, materialId: mid, suppCode: suppCode, qty: qty, pcsn: pcsn, validity_period: vperiod}
|
data: {username: username, password: RSAencrypt(password), total_qty: tqty, bagNo: bagNo, materialId: mid, suppCode: suppCode, qty: qty, pcsn: pcsn, validity_period: vperiod}
|
||||||
})
|
})
|
||||||
// 物料组袋-打印
|
// 物料组袋-打印
|
||||||
export const printBag = (row, printId) => request({
|
export const printBag = (row, printId) => request({
|
||||||
|
|||||||
Reference in New Issue
Block a user