Browse Source

Merge remote-tracking branch 'origin/master'

master
zhaoxuebing 10 months ago
parent
commit
72f8a760a0
  1. 6
      src/api/wms/supplierinvoiceRequestMain/index.ts
  2. 8
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts
  3. 22
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue
  4. 3
      src/views/wms/deliversettlementManage/customersettle/customersettleRequestMain/index.vue
  5. 4
      src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts
  6. 13
      src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue
  7. 4
      src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/deliverPlanMain.data.ts
  8. 13
      src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue
  9. 13
      src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue
  10. 9
      src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts
  11. 16
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue
  12. 4
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts
  13. 2
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

6
src/api/wms/supplierinvoiceRequestMain/index.ts

@ -82,5 +82,9 @@ export const genRecordsSupplierinvoiceRequestMain = async (id) => {
}
// 导出供应商发票申请主 Excel
export const exportSupplierinvoiceRequestMain = async (params) => {
return await request.download({ url: `/wms/supplierinvoice-request-main/export-excel`, params })
if(params.isSearch){
return await request.downloadPost({ url: `/wms/supplierinvoice-request-main/export-excel-senior`, params })
}else {
return await request.download({ url: `/wms/supplierinvoice-request-main/export-excel`, params })
}
}

8
src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts

@ -497,6 +497,9 @@ export const CustomerreturnRequestMainRules = reactive({
customerCode: [
{ required: true, message: '请选择客户代码', trigger: 'blur' }
],
Customerdock: [
{ required: true, message: '请选择客户月台代码', trigger: 'blur' }
],
departmentCode: [
{ required: true, message: '请输入部门', trigger: 'blur' }
],
@ -737,13 +740,13 @@ export const CustomerreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
form: {
component: 'InputNumber',
componentProps: {
min: 1,
min: 0,
precision: 6
}
},
tableForm: {
type: 'InputNumber',
min: 1,
min: 0,
precision: 6
}
},
@ -952,4 +955,5 @@ export const CustomerreturnRequestDetailRules = reactive({
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
})

22
src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue

@ -69,6 +69,7 @@
:apiDelete="CustomerreturnRequestDetailApi.deleteCustomerreturnRequestDetail"
:Echo="Echo"
@searchTableSuccessDetail="searchTableSuccessDetail"
:detailButtonIsShow = trueFalse
/>
<!-- 导入 -->
@ -176,7 +177,7 @@ const { tableObject, tableMethods } = useTable({
//
const { getList, setSearchParams } = tableMethods
const trueFalse = ref()
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:customerreturn-request-main:create'}), //
@ -302,6 +303,12 @@ const openForm =async (type: string, row?: number) => {
/** 详情操作 */
const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => {
console.log(999,row.deliverPlanNumber);
if(row.deliverPlanNumber != null){
trueFalse.value = false
}else {
trueFalse.value = true
}
detailRef.value.openDetail(row, titleName, titleValue)
}
@ -352,9 +359,22 @@ const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
}
//true0
const flag = ref()
//
const submitForm = async (formType, data) => {
data.subList = tableData.value //
data.subList.forEach(obj => {
if(obj.qty == 0){
message.error(`数量不能为0!`)
flag.value = true
return;
}
})
if(flag){
return
}
try {
if (formType === 'create') {
await CustomerreturnRequestMainApi.createCustomerreturnRequestMain(data)

3
src/views/wms/deliversettlementManage/customersettle/customersettleRequestMain/index.vue

@ -69,6 +69,7 @@
:apiDelete="CustomersettleRequestDetailApi.deleteCustomersettleRequestDetail"
:Echo="Echo"
@searchTableSuccessDetail="searchTableSuccessDetail"
:detailButtonIsShow = true
/>
<!-- 导入 -->
@ -203,7 +204,7 @@ const butttondata = (row) => {
defaultButtons.mainListTurnDownBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:customersettle-request-main:refused'}), //
defaultButtons.mainListApproveBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:customersettle-request-main:agree'}), //
defaultButtons.mainListHandleBtn({hide:isShowMainButton(row,['3']),hasPermi:'wms:customersettle-request-main:handle'}), //
defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:customersettle-request-main:update'}), //
// defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:customersettle-request-main:update'}), //
]
}

4
src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts

@ -724,13 +724,13 @@ export const DeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
form: {
component: 'InputNumber',
componentProps: {
min: 1,
min: 0,
precision: 6
}
},
tableForm: {
type: 'InputNumber',
min: 1,
min: 0,
precision: 6
}
},

13
src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue

@ -373,9 +373,22 @@ const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
}
//true0
const flag = ref()
//
const submitForm = async (formType, data) => {
data.subList = tableData.value //
data.subList.forEach(obj => {
if(obj.qty == 0){
message.error(`数量不能为0!`)
flag.value = true
return;
}
})
if(flag){
return
}
try {
if (formType === 'create') {
await DeliverRequestMainApi.createDeliverRequestMain(data)

4
src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/deliverPlanMain.data.ts

@ -433,13 +433,13 @@ export const DeliverPlanDetail = useCrudSchemas(reactive<CrudSchema[]>([
form: {
component: 'InputNumber',
componentProps: {
min: 1,
min: 0,
precision: 6
}
},
tableForm: {
type: 'InputNumber',
min: 1,
min: 0,
precision: 6
}
},

13
src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue

@ -323,9 +323,22 @@ const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
}
//true0
const flag = ref()
//
const submitForm = async (formType, data) => {
data.subList = tableData.value //
data.subList.forEach(obj => {
if(obj.qty == 0){
message.error(`数量不能为0!`)
flag.value = true
return;
}
})
if(flag){
return
}
var isHave =DeliverPlanMain.allSchemas.formSchema.some(function (item) {
return item.field === 'beginTime' || item.field === 'endTime';
});

13
src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue

@ -360,9 +360,22 @@ const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
}
//true0
const flag = ref()
//
const submitForm = async (formType, data) => {
data.subList = tableData.value //
data.subList.forEach(obj => {
if(obj.toQty == 0){
message.error(`到数量不能为0!`)
flag.value = true
return;
}
})
if(flag){
return
}
try {
if (formType === 'create') {
console.log(data)

9
src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts

@ -447,6 +447,9 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
table: {
width: 150
},
tableForm: {
disabled: true
},
form: {
componentProps: {
disabled: true
@ -503,12 +506,13 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
form: {
component: 'InputNumber',
componentProps: {
min:1,
min:0,
precision: 6
}
},
tableForm: {
type: 'InputNumber',
min:0,
precision: 6
},
},
@ -920,6 +924,9 @@ export const InventorychangeRequestDetailRules = reactive({
toInventoryStatus: [
{ required: true, message: '请选择到库存状态', trigger: 'change' }
],
fromPackingNumber: [
{ required: true, message: '请选择到从包装号', trigger: 'change' }
],
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],

16
src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue

@ -490,15 +490,27 @@ const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
}
//true0
const flag = ref()
//
const submitForm = async (formType, data) => {
data.subList = tableData.value //
data.subList = tableData.value //
data.subList.forEach(item => {
console.log(556565,item);
if(fromInventoryStatus.value){
item.fromInventoryStatus = fromInventoryStatus.value
item.toInventoryStatus = toInventoryStatus.value
}
}
if(item.qty == 0){
message.error(`到数量不能为0!`)
flag.value = true
return;
}
})
if(flag){
return
}
try {
if (formType === 'create') {
await InventorymoveRequestMainApi.createInventorymoveRequestMain(data)

4
src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts

@ -611,13 +611,13 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
form: {
component: 'InputNumber',
componentProps: {
min: 1,
min: 0,
precision: 6
}
},
tableForm: {
type: 'InputNumber',
min: 1,
min: 0,
precision: 6
}
},

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

@ -314,7 +314,7 @@
await message.exportConfirm()
//
exportLoading.value = true
const data = await SupplierinvoiceRequestMainApi.exportSupplierinvoiceRequestMain(setSearchParams)
const data = await SupplierinvoiceRequestMainApi.exportSupplierinvoiceRequestMain(tableObject.params)
download.excel(data, '供应商发票申请主.xlsx')
} catch {
} finally {

Loading…
Cancel
Save