代码更新

This commit is contained in:
2023-02-19 17:31:34 +08:00
parent 47df45110b
commit dd547b846f
6 changed files with 117 additions and 57 deletions

View File

@@ -56,6 +56,7 @@
>
<el-option
v-for="item in dict.ST_INV_IN_TYPE"
:disabled="item.value === '0003'"
:key="item.value"
:label="item.label"
:value="item.value"

View File

@@ -453,10 +453,12 @@ export default {
if (!this.flagnow) {
item.edit = true
this.form.tableData.splice(-1, 0, item)
this.form.total_qty = parseFloat(this.form.total_qty) + parseFloat(item.plan_qty)
}
} else {
item.edit = true
this.form.tableData.splice(-1, 0, item)
this.form.total_qty = parseFloat(this.form.total_qty) + parseFloat(item.plan_qty)
}
})
this.form.detail_count = this.form.tableData.length

View File

@@ -465,8 +465,14 @@ export default {
}
},
printExcel(jo) {
if (jo.shd_dtl_num === '') {
return this.crud.notify('客户为空!', CRUD.NOTIFICATION_TYPE.INFO)
if (jo.bill_type !== '1004') {
if (jo.shd_dtl_num === '') {
return this.crud.notify('客户为空!', CRUD.NOTIFICATION_TYPE.INFO)
}
}
if (jo.bill_type === '1004') {
jo.shd_dtl_num = 44
}
checkoutbill.getDisNum({ 'iostorinv_id': jo.iostorinv_id }).then(res => {
const j = Math.ceil(res.num / jo.shd_dtl_num)