Browse Source

HL-5862供应商开票时可以修改开票数量

hella_online_20240913
yufei_wang 2 months ago
parent
commit
fa53834e92
  1. 1
      src/locales/en-US.ts
  2. 1
      src/locales/zh-CN.ts
  3. 10
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue
  4. 6
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts

1
src/locales/en-US.ts

@ -832,6 +832,7 @@ export default {
:'Untaxed Difference',
:'Difference including tax',
:'Number of tickets available',
0:'The amount invogeable cannot be 0',
:'Procurement Approver',
:'Purchase approval time',
:'Financial approval time',

1
src/locales/zh-CN.ts

@ -833,6 +833,7 @@ export default {
:'未税差额',
:'含税差额',
:'可开票数量',
0:'可开票数量不能为0',
:'采购审批人',
:'采购审批时间',
:'财务审批时间',

10
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

@ -484,7 +484,10 @@ const detailBasicFormOnChange = (field, cur) => {
const handleDetailSubmitForm = async (formType, data) => {
if (formType === 'update') {
console.log('handleDetailSubmitForm',data)
if(data.maxInvoicableQuantity>0){
if(data.invoicableQuantity==0){
message.error(t('ts.可开票数量不能为0'))
return
}else if(data.maxInvoicableQuantity>0){
if(data.invoicableQuantity<0||data.invoicableQuantity>data.maxInvoicableQuantity){
message.error(t('ts.可开票数量范围是')+`:0~${data.maxInvoicableQuantity}`)
return
@ -1375,7 +1378,10 @@ const submitForm = async (formType, submitData) => {
tableData.value.forEach(item => {
// 0
// 0
if(item.maxInvoicableQuantity){
if(item.invoicableQuantity==0){
flagInvoicableQuantity = true
message.error(`${item.itemCode}`+t('ts.可开票数量不能为0'))
}else if(item.maxInvoicableQuantity){
if(item.maxInvoicableQuantity>0){
if(item.invoicableQuantity<0||item.invoicableQuantity>item.maxInvoicableQuantity){
flagInvoicableQuantity = true

6
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts

@ -1806,12 +1806,14 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive<CrudSchema[]
form: {
component: 'InputNumber',
componentProps: {
disabled: false
disabled: false,
precision: 5,
}
},
tableForm:{
type: 'InputNumber',
disabled: false
disabled: false,
precision: 5,
}
},
{

Loading…
Cancel
Save