Browse Source

发票开发

master_hella_20240701
zhaoxuebing 8 months ago
parent
commit
888d3392d5
  1. 10
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue
  2. 130
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts

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

@ -111,20 +111,20 @@
if (type == 'tableForm') {
//
row[formField] = val[0][searchField]
if (formField == 'poNumber') {
row['poNumber'] = val[0]['poNumber']
if (formField == 'poLine') {
row['poLine'] = val[0]['poLine']
row['itemCode'] = val[0]['itemCode']
row['ownerCode'] = val[0]['ownerCode']
row['batch'] = val[0]['batch']
row['singlePrice'] = val[0]['singlePrice']
row['qty'] = val[0]['qty']
row['amount'] = val[0]['amount']
}
} else {
console.log(searchFormRef.formModel);
const setV = {}
if(formField == 'recordNumber'){
setV['recordNumber'] = val[0]['number']
if(formField == 'recvBillNum'){
setV['recvBillNum'] = val[0]['number']
setV['asnBillNum'] = val[0]['asnNumber']
let params = {
'billType':searchFormRef.formModel.billType,
@ -146,7 +146,7 @@
options.push(option)
}
SupplierinvoiceRequestMain.allSchemas.formSchema.forEach(item => {
if (item.field == 'poNumber') {
if (item.field == 'poBillNum') {
item.componentProps.options = options
}
})

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

@ -72,6 +72,10 @@ export const PurchaseReceiptOrReturnRecordDetail = useCrudSchemas(reactive<CrudS
label: '订单号',
field: 'poNumber'
},
{
label: '订单行',
field: 'poLine'
},
{
label: '物料代码',
field: 'itemCode'
@ -84,6 +88,13 @@ export const PurchaseReceiptOrReturnRecordDetail = useCrudSchemas(reactive<CrudS
label: '批次',
field: 'batch'
},
{
label: '数量',
field: 'qty',
form: {
component: 'InputNumber',
}
},
{
label: '单价',
field: 'singlePrice',
@ -91,6 +102,13 @@ export const PurchaseReceiptOrReturnRecordDetail = useCrudSchemas(reactive<CrudS
component: 'InputNumber',
}
},
{
label: '金额',
field: 'amount',
form: {
component: 'InputNumber',
}
},
{
label: '备注',
field: 'remark',
@ -164,7 +182,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
},
{
label: '记录单号',
field: 'recordNumber',
field: 'recvBillNum',
sort: 'custom',
table: {
width: 150
@ -227,7 +245,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
},
{
label: '订单号',
field: 'poNumber',
field: 'poBillNum',
sort: 'custom',
table: {
width: 150
@ -548,18 +566,6 @@ export const SupplierinvoiceRequestMainRules = reactive({
* @returns {Array}
*/
export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '单号类型',
field: 'recordType',
sort: 'custom',
table: {
width: 150
},
tableForm: {
type: 'Select',
initOptions: [{ label: '收货单号', value: '1' }, { label: '退货单号', value: '2' }],
},
},
{
label: '订单行',
field: 'poLine',
@ -575,7 +581,7 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive<CrudSchema[]
searchCondition: [
{
key: 'recordNumber',
value: 'recordNumber',
value: 'recvBillNum',
message: '请填写单号!',
isMainValue: true
},
@ -587,7 +593,7 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive<CrudSchema[]
},
{
key: 'poNumber',
value: 'poNumber',
value: 'poBillNum',
message: '请选择订单号',
isMainValue: true
}
@ -604,7 +610,7 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive<CrudSchema[]
searchCondition: [
{
key: 'recordNumber',
value: 'recordNumber',
value: 'recvBillNum',
message: '请填写单号!',
isMainValue: true
},
@ -616,7 +622,7 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive<CrudSchema[]
},
{
key: 'poNumber',
value: 'poNumber',
value: 'poBillNum',
message: '请选择订单号',
isMainValue: true
}
@ -641,13 +647,47 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive<CrudSchema[]
},
{
label: '批次',
field: 'batch'
field: 'batch',
disabled:true,
},
{
label: '数量',
field: 'qty',
sort: 'custom',
table: {
width: 150
},
form: {
component: 'InputNumber',
componentProps: {
disabled:true,
min: 0,
precision: 6
},
},
tableForm: {
type: 'InputNumber',
disabled:true,
min: 0,
precision: 6
}
},
{
label: '单价',
field: 'singlePrice',
form: {
component: 'InputNumber',
componentProps: {
disabled:true,
min: 0,
precision: 6
},
},
tableForm: {
type: 'InputNumber',
disabled:true,
min: 0,
precision: 6
}
},
{
@ -655,9 +695,59 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive<CrudSchema[]
field: 'amount',
form: {
component: 'InputNumber',
componentProps: {
disabled:true,
min: 0,
precision: 6
},
},
tableForm: {
type: 'InputNumber',
disabled:true,
min: 0,
precision: 6
}
},
{
label: '税率',
field: 'tax',
sort: 'custom',
table: {
width: 150
},
form: {
component: 'InputNumber',
componentProps: {
min: 0,
precision: 6
},
},
tableForm: {
type: 'InputNumber',
min: 0,
precision: 6
}
},
{
label: '比率',
field: 'rate',
sort: 'custom',
table: {
width: 150
},
form: {
component: 'InputNumber',
componentProps: {
min: 0,
precision: 6
},
},
tableForm: {
type: 'InputNumber',
min: 0,
precision: 6
}
},
{
label: '备注',
field: 'remark',

Loading…
Cancel
Save