Browse Source

Merge remote-tracking branch 'origin/master'

master
zhaoxuebing 11 months ago
parent
commit
cfa6a0f8b5
  1. 7
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts
  2. 14
      src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue
  3. 7
      src/views/wms/productionManage/productionplan/productionMain/productionMain.data.ts
  4. 2
      src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/index.vue
  5. 1
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue
  6. 2
      src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue

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

@ -491,8 +491,11 @@ export const CustomerreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
//表单校验 //表单校验
export const CustomerreturnRequestMainRules = reactive({ export const CustomerreturnRequestMainRules = reactive({
deliverRecordNumber: [ // deliverRecordNumber: [
{ required: true, message: '请选择发货记录单号', trigger: 'change' } // { required: true, message: '请选择发货记录单号', trigger: 'change' }
// ],
customerCode: [
{ required: true, message: '请选择客户代码', trigger: 'blur' }
], ],
departmentCode: [ departmentCode: [
{ required: true, message: '请输入部门', trigger: 'blur' } { required: true, message: '请输入部门', trigger: 'blur' }

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

@ -110,7 +110,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
row[formField] = val[0][searchField] row[formField] = val[0][searchField]
} else { } else {
const setV = {} const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
if(formField == 'deliverPlanNumber') { if(formField == 'deliverPlanNumber') {
setV['deliverPlanNumber'] = val[0]['number'] setV['deliverPlanNumber'] = val[0]['number']
setV['customerCode'] = val[0]['customerCode'] setV['customerCode'] = val[0]['customerCode']
@ -290,8 +290,16 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const formRef = ref() const formRef = ref()
const openForm =async (type: string, row?: number) => { const openForm =async (type: string, row?: number) => {
console.log(9999,row) if(type == "update"){
console.log(996669,type) DeliverRequestMain.allSchemas.formSchema.forEach((item) => {
if (item.field == 'deliverPlanNumber') {
item.componentProps.isSearchList = false
}
})
}else {
item.componentProps.isSearchList = true,
item.componentProps.disabled = true
}
tableData.value = [] // tableData.value = [] //
formRef.value.open(type, row) formRef.value.open(type, row)
} }

7
src/views/wms/productionManage/productionplan/productionMain/productionMain.data.ts

@ -39,6 +39,11 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
form: {
componentProps: {
maxlength: 50
}
}
}, },
{ {
label: '车间', label: '车间',
@ -429,7 +434,7 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([
export const ProductionMainRules = reactive({ export const ProductionMainRules = reactive({
displayOrder: [ displayOrder: [
{ required: true, message: '请输入顺序', trigger: 'blur' }, { required: true, message: '请输入顺序', trigger: 'blur' },
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } // { max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
workshop: [ workshop: [
{ required: true, message: '请选择车间', trigger: 'change' } { required: true, message: '请选择车间', trigger: 'change' }

2
src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/index.vue

@ -137,7 +137,7 @@ const { getList, setSearchParams } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
// defaultButtons.defaultAddBtn({hasPermi:'wms:inspect-request-main:create'}), // defaultButtons.defaultAddBtn({hasPermi:'wms:inspect-request-main:create'}), //
// defaultButtons.defaultImportBtn({hasPermi:'wms:inspect-request-main:import'}), // // defaultButtons.defaultImportBtn({hasPermi:'wms:inspect-request-main:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:inspect-request-main:export'}), // defaultButtons.defaultExportBtn({hasPermi:'wms:inspect-request-main:export'}), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //

1
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue

@ -189,7 +189,6 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) =>
// item.fromLocationGroupCode = item.fromLocationGroupCode // item.fromLocationGroupCode = item.fromLocationGroupCode
}) })
isShowButton.value = false isShowButton.value = false
PurchasereturnRequestMain.allSchemas.formSchema.forEach((item) => { PurchasereturnRequestMain.allSchemas.formSchema.forEach((item) => {
if (item.field == 'supplierCode') { if (item.field == 'supplierCode') {
item.componentProps.disabled = true item.componentProps.disabled = true

2
src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue

@ -142,7 +142,7 @@ const { getList, setSearchParams } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
// defaultButtons.defaultAddBtn({hasPermi:'wms:putaway-request-main:create'}), // defaultButtons.defaultAddBtn({hasPermi:'wms:putaway-request-main:create'}), //
// defaultButtons.defaultImportBtn({hasPermi:'wms:putaway-request-main:import'}), // // defaultButtons.defaultImportBtn({hasPermi:'wms:putaway-request-main:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:putaway-request-main:export'}), // defaultButtons.defaultExportBtn({hasPermi:'wms:putaway-request-main:export'}), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //

Loading…
Cancel
Save