陈薪名 11 months ago
parent
commit
e1e6fd8107
  1. 4
      src/views/wms/basicDataManage/strategySetting/strategy/arrivalInspectionStrategy/AddForm.vue
  2. 4
      src/views/wms/basicDataManage/strategySetting/strategy/batchStrategy/AddForm.vue
  3. 4
      src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue
  4. 4
      src/views/wms/basicDataManage/strategySetting/strategy/inspectStrategy/AddForm.vue
  5. 4
      src/views/wms/basicDataManage/strategySetting/strategy/manageAccuracyStrategy/AddForm.vue
  6. 4
      src/views/wms/basicDataManage/strategySetting/strategy/purchaseReceiptStrategy/AddForm.vue
  7. 4
      src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/AddForm.vue
  8. 4
      src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue
  9. 2
      src/views/wms/countManage/countadjust/countadjustRequestMain/countadjustRequestMain.data.ts
  10. 6
      src/views/wms/inventoryManage/containerinit/containerBindRecord/containerBindRecordMain.data.ts
  11. 10
      src/views/wms/inventoryManage/containerinit/containerRepair/containerRepairRecordMain.data.ts
  12. 4
      src/views/wms/inventoryManage/containerinit/containerRepair/index.vue
  13. 6
      src/views/wms/inventoryManage/containerinit/containerUnbindRecord/containerUnbindRecordMain.data.ts
  14. 10
      src/views/wms/inventoryManage/containerinit/containerUnbindRecord/index.vue
  15. 11
      src/views/wms/inventoryManage/containerinit/containerinitadd/containerMain.data.ts
  16. 2
      src/views/wms/inventoryManage/containerinit/containerinitadd/index.vue
  17. 6
      src/views/wms/productionManage/productrepair/productrepairRequestMain/productrepairRequestMain.data.ts
  18. 1
      src/views/wms/productionManage/productscrap/productscrapRecordMain/productscrapRecordMain.data.ts
  19. 6
      src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts
  20. 2
      src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/index.vue
  21. 2
      src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue
  22. 194
      src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/demandforecastingMain.data.ts
  23. 5
      src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue
  24. 13
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue
  25. 2
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

4
src/views/wms/basicDataManage/strategySetting/strategy/arrivalInspectionStrategy/AddForm.vue

@ -111,9 +111,9 @@
> >
<el-option <el-option
v-for="cur in options.supplierList" v-for="cur in options.supplierList"
:key="cur.id" :key="cur.code"
:label="cur.name" :label="cur.name"
:value="cur.id" :value="cur.code"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>

4
src/views/wms/basicDataManage/strategySetting/strategy/batchStrategy/AddForm.vue

@ -88,9 +88,9 @@
> >
<el-option <el-option
v-for="cur in options.supplierList" v-for="cur in options.supplierList"
:key="cur.id" :key="cur.code"
:label="cur.name" :label="cur.name"
:value="cur.id" :value="cur.code"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>

4
src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue

@ -89,9 +89,9 @@
> >
<el-option <el-option
v-for="cur in options.supplierList" v-for="cur in options.supplierList"
:key="cur.id" :key="cur.code"
:label="cur.name" :label="cur.name"
:value="cur.id" :value="cur.code"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>

4
src/views/wms/basicDataManage/strategySetting/strategy/inspectStrategy/AddForm.vue

@ -112,9 +112,9 @@
> >
<el-option <el-option
v-for="cur in options.supplierList" v-for="cur in options.supplierList"
:key="cur.id" :key="cur.code"
:label="cur.name" :label="cur.name"
:value="cur.id" :value="cur.code"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>

4
src/views/wms/basicDataManage/strategySetting/strategy/manageAccuracyStrategy/AddForm.vue

@ -88,9 +88,9 @@
> >
<el-option <el-option
v-for="cur in options.supplierList" v-for="cur in options.supplierList"
:key="cur.id" :key="cur.code"
:label="cur.name" :label="cur.name"
:value="cur.id" :value="cur.code"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>

4
src/views/wms/basicDataManage/strategySetting/strategy/purchaseReceiptStrategy/AddForm.vue

@ -112,9 +112,9 @@
> >
<el-option <el-option
v-for="cur in options.supplierList" v-for="cur in options.supplierList"
:key="cur.id" :key="cur.code"
:label="cur.name" :label="cur.name"
:value="cur.id" :value="cur.code"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>

4
src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/AddForm.vue

@ -112,9 +112,9 @@
> >
<el-option <el-option
v-for="cur in options.supplierList" v-for="cur in options.supplierList"
:key="cur.id" :key="cur.code"
:label="cur.name" :label="cur.name"
:value="cur.id" :value="cur.code"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>

4
src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue

@ -89,9 +89,9 @@
> >
<el-option <el-option
v-for="cur in options.supplierList" v-for="cur in options.supplierList"
:key="cur.id" :key="cur.code"
:label="cur.name" :label="cur.name"
:value="cur.id" :value="cur.code"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>

2
src/views/wms/countManage/countadjust/countadjustRequestMain/countadjustRequestMain.data.ts

@ -446,7 +446,7 @@ export const CountadjustRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '数量', label: '差异数量',
field: 'qty', field: 'qty',
sort: 'custom', sort: 'custom',
table: { table: {

6
src/views/wms/inventoryManage/containerinit/containerBindRecord/containerBindRecordMain.data.ts

@ -64,6 +64,8 @@ export const ContainerBindRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '内容物类型', label: '内容物类型',
field: 'containerContentType', field: 'containerContentType',
dictType: DICT_TYPE.CONTAINER_CONTENT_TYPE,
dictClass: 'string',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
form: { form: {
@ -103,6 +105,8 @@ export const ContainerBindRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '库存状态', label: '库存状态',
field: 'inventoryStatus', field: 'inventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
sort: 'custom', sort: 'custom',
form: { form: {
component: 'Radio' component: 'Radio'
@ -114,6 +118,8 @@ export const ContainerBindRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '计量单位', label: '计量单位',
field: 'uom', field: 'uom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150

10
src/views/wms/inventoryManage/containerinit/containerRepair/containerRepairRecordMain.data.ts

@ -80,6 +80,8 @@ export const ContainerRepairRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
{ {
label: '从状态', label: '从状态',
field: 'fromContainerStatus', field: 'fromContainerStatus',
dictType: DICT_TYPE.CONTAINER_STATUS,
dictClass: 'string',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
form: { form: {
@ -92,6 +94,8 @@ export const ContainerRepairRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
{ {
label: '到状态', label: '到状态',
field: 'toContainerStatus', field: 'toContainerStatus',
dictType: DICT_TYPE.CONTAINER_STATUS,
dictClass: 'string',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
form: { form: {
@ -115,6 +119,9 @@ export const ContainerRepairRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
} }
}, },
table: {
width: 150
},
isForm: false, isForm: false,
}, },
{ {
@ -122,6 +129,9 @@ export const ContainerRepairRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
field: 'remark', field: 'remark',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
table: {
width: 150
},
}, },
{ {
label: '操作', label: '操作',

4
src/views/wms/inventoryManage/containerinit/containerRepair/index.vue

@ -154,8 +154,8 @@ const buttonBaseClick = (val, item) => {
// - // -
const butttondata = [ const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'wms:container-repair-record-main:update'}), // //defaultButtons.mainListEditBtn({hasPermi:'wms:container-repair-record-main:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'wms:container-repair-record-main:delete'}), // //defaultButtons.mainListDeleteBtn({hasPermi:'wms:container-repair-record-main:delete'}), //
] ]
// - // -

6
src/views/wms/inventoryManage/containerinit/containerUnbindRecord/containerUnbindRecordMain.data.ts

@ -63,6 +63,8 @@ export const ContainerUnbindRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
{ {
label: '内容物类型', label: '内容物类型',
field: 'containerContentType', field: 'containerContentType',
dictType: DICT_TYPE.CONTAINER_CONTENT_TYPE,
dictClass: 'string',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
form: { form: {
@ -102,6 +104,8 @@ export const ContainerUnbindRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
{ {
label: '库存状态', label: '库存状态',
field: 'inventoryStatus', field: 'inventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
sort: 'custom', sort: 'custom',
form: { form: {
component: 'Radio' component: 'Radio'
@ -113,6 +117,8 @@ export const ContainerUnbindRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
{ {
label: '计量单位', label: '计量单位',
field: 'uom', field: 'uom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150

10
src/views/wms/inventoryManage/containerinit/containerUnbindRecord/index.vue

@ -120,9 +120,9 @@ const { getList, setSearchParams } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:containerUnbindRecordMain:create'}), // // defaultButtons.defaultAddBtn({hasPermi:'wms:container-unbind-record-main:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:containerUnbindRecordMain:import'}), // defaultButtons.defaultImportBtn({hasPermi:'wms:container-unbind-record-main:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:containerUnbindRecordMain:export'}), // defaultButtons.defaultExportBtn({hasPermi:'wms:container-unbind-record-main:export'}), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null), //
@ -154,8 +154,8 @@ const buttonBaseClick = (val, item) => {
// - // -
const butttondata = [ const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'wms:containerUnbindRecordMain:update'}), // //defaultButtons.mainListEditBtn({hasPermi:'wms:container-unbind-record-main:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'wms:containerUnbindRecordMain:delete'}), // //defaultButtons.mainListDeleteBtn({hasPermi:'wms:container-unbind-record-main:delete'}), //
] ]
// - // -

11
src/views/wms/inventoryManage/containerinit/containerinitadd/containerMain.data.ts

@ -8,26 +8,21 @@ import * as BalanceApi from "@/api/wms/balance";
// 表单校验 // 表单校验
export const ContainerMainRules = reactive({ export const ContainerMainRules = reactive({
number: [
{ required: true, message: '请输入号码', trigger: 'blur' }
],
type: [ type: [
{ required: true, message: '请选择类型', trigger: 'change' } { required: true, message: '请选择类型', trigger: 'change' }
], ],
status: [ status: [
{ required: true, message: '请选择状态', trigger: 'change' } { required: true, message: '请选择状态', trigger: 'change' }
], ]
ownerCode: [
{ required: true, message: '请选择货主代码', trigger: 'change' }
],
}) })
export const ContainerMain = useCrudSchemas(reactive<CrudSchema[]>([ export const ContainerMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '号', label: '单据号',
field: 'number', field: 'number',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
isForm: false,
}, },
{ {
label: '类型', label: '类型',

2
src/views/wms/inventoryManage/containerinit/containerinitadd/index.vue

@ -28,7 +28,7 @@
v-model:sort="tableObject.sort" v-model:sort="tableObject.sort"
> >
<template #number="{row}"> <template #number="{row}">
<el-button type="primary" link @click="openDetail(row, '号', row.number)"> <el-button type="primary" link @click="openDetail(row, '单据号', row.number)">
<span>{{ row.number }}</span> <span>{{ row.number }}</span>
</el-button> </el-button>
</template> </template>

6
src/views/wms/productionManage/productrepair/productrepairRequestMain/productrepairRequestMain.data.ts

@ -415,6 +415,12 @@ export const ProductrepairRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
//表单校验 //表单校验
export const ProductrepairRequestMainRules = reactive({ export const ProductrepairRequestMainRules = reactive({
workshopCode: [
{ required: true, message: '请选择车间代码', trigger: 'change' }
],
dueTime: [
{ required: true, message: '请选择截止时间', trigger: 'change' }
],
fromWarehouseCode: [ fromWarehouseCode: [
{ required: true, message: '请选择从仓库代码', trigger: 'change' } { required: true, message: '请选择从仓库代码', trigger: 'change' }
], ],

1
src/views/wms/productionManage/productscrap/productscrapRecordMain/productscrapRecordMain.data.ts

@ -688,6 +688,7 @@ export const ProdcutscrapRecordBomDismantle = useCrudSchemas(reactive<CrudSchema
label: '数量', label: '数量',
field: 'qty', field: 'qty',
tableForm: { tableForm: {
disabled: true,
type: 'InputNumber', type: 'InputNumber',
min: 0, min: 0,
precision: 6 precision: 6

6
src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts

@ -417,6 +417,12 @@ export const ProductscrapRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
//表单校验 //表单校验
export const ProductscrapRequestMainRules = reactive({ export const ProductscrapRequestMainRules = reactive({
workshopCode: [
{ required: true, message: '请选择车间代码', trigger: 'change' }
],
dueTime: [
{ required: true, message: '请选择截止时间', trigger: 'change' }
],
fromWarehouseCode: [ fromWarehouseCode: [
{ required: true, message: '请选择从仓库代码', trigger: 'change' } { required: true, message: '请选择从仓库代码', trigger: 'change' }
], ],

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

@ -187,7 +187,7 @@ const butttondata = (row) => {
defaultButtons.mainListTurnDownBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:purchasereceipt-request-main:refused'}), // defaultButtons.mainListTurnDownBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:purchasereceipt-request-main:refused'}), //
defaultButtons.mainListApproveBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:purchasereceipt-request-main:agree'}), // defaultButtons.mainListApproveBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:purchasereceipt-request-main:agree'}), //
defaultButtons.mainListHandleBtn({hide:isShowMainButton(row,['3']),hasPermi:'wms:purchasereceipt-request-main:handle'}), // defaultButtons.mainListHandleBtn({hide:isShowMainButton(row,['3']),hasPermi:'wms:purchasereceipt-request-main:handle'}), //
defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:purchasereceipt-request-main:update'}), // // defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:purchasereceipt-request-main:update'}), //
] ]
} }

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

@ -192,7 +192,7 @@ const butttondata = (row) => {
defaultButtons.mainListTurnDownBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:purchasereceipt-request-main:refused'}), // defaultButtons.mainListTurnDownBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:purchasereceipt-request-main:refused'}), //
defaultButtons.mainListApproveBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:purchasereceipt-request-main:agree'}), // defaultButtons.mainListApproveBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:purchasereceipt-request-main:agree'}), //
defaultButtons.mainListHandleBtn({hide:isShowMainButton(row,['3']),hasPermi:'wms:purchasereceipt-request-main:handle'}), // defaultButtons.mainListHandleBtn({hide:isShowMainButton(row,['3']),hasPermi:'wms:purchasereceipt-request-main:handle'}), //
defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:purchasereceipt-request-main:update'}), // // defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:purchasereceipt-request-main:update'}), //
] ]
} }

194
src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/demandforecastingMain.data.ts

@ -4,6 +4,9 @@ import * as SupplierApi from '@/api/wms/supplier'
import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data' import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data'
import * as SupplieritemApi from '@/api/wms/supplieritem' import * as SupplieritemApi from '@/api/wms/supplieritem'
import { Supplieritem } from '@/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data' import { Supplieritem } from '@/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data'
import * as PurchaseMainApi from '@/api/wms/purchaseMain'
import * as PurchaseDetailApi from '@/api/wms/purchaseDetail'
import { PurchaseDetail, PurchaseMain } from '../purchaseMain/purchaseMain.data'
const { t } = useI18n() // 国际化 const { t } = useI18n() // 国际化
/** /**
@ -57,7 +60,7 @@ export const DemandforecastingMain = useCrudSchemas(reactive<CrudSchema[]>([
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: {width:'100%'}, style: { width: '100%' },
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
@ -80,7 +83,7 @@ export const DemandforecastingMain = useCrudSchemas(reactive<CrudSchema[]>([
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: {width:'100%'}, style: { width: '100%' },
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
@ -103,7 +106,7 @@ export const DemandforecastingMain = useCrudSchemas(reactive<CrudSchema[]>([
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: {width:'100%'}, style: { width: '100%' },
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
@ -132,7 +135,7 @@ export const DemandforecastingMain = useCrudSchemas(reactive<CrudSchema[]>([
isForm: false, isForm: false,
form: { form: {
value: 'PurchasePrediction', value: 'PurchasePrediction',
componentProps:{ componentProps: {
disabled: true disabled: true
} }
} }
@ -179,7 +182,7 @@ export const DemandforecastingMain = useCrudSchemas(reactive<CrudSchema[]>([
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: {width:'100%'}, style: { width: '100%' },
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
@ -270,7 +273,7 @@ export const DemandforecastingDetail = useCrudSchemas(reactive<CrudSchema[]>([
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: {width:'100%'}, style: { width: '100%' },
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
@ -283,74 +286,140 @@ export const DemandforecastingDetail = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
{ {
label: '单号', label: '单号',
field: 'number', field: 'poNumber',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
isTableForm: false, tableForm: {
isInpuFocusShow: true,
searchListPlaceholder: '请选择订单号',
searchField: 'number',
searchTitle: '采购订单信息',
searchAllSchemas: PurchaseMain.allSchemas,
searchPage: PurchaseMainApi.getPurchaseMainPage,
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
}, {
key: 'supplierCode',
value: 'supplierCode',
isMainValue: true
}
, {
key: 'status',
value: 2,
isMainValue: false
}
]
},
form: { form: {
// labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
disbaled: true isSearchList: true,
searchListPlaceholder: '请选择订单号',
searchField: 'number',
searchTitle: '采购订单信息',
searchAllSchemas: PurchaseMain.allSchemas,
searchPage: PurchaseMainApi.getPurchaseMainPage,
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
} }
} }
}, },
{ {
label: '物品代码', label: '订单行',
field: 'itemCode', field: 'poLine',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
tableForm:{
isInpuFocusShow: true,
searchListPlaceholder: '请选择供应商物品',
searchField: 'itemCode',
searchTitle: '供应商物品信息',
searchAllSchemas: Supplieritem.allSchemas,
searchPage: SupplieritemApi.getSupplieritemPage,
searchCondition: [{
key:'supplierCode',
value:'supplierCode',
isMainValue: true
},{
key: 'available',
value: 'TRUE',
isMainValue: false
}//, //条件,例:isMainValue: true,表示查询条件是主表的字段的值 itemCode:查询列表中字段 supplierCode:指主表某字段
// {
// key:'available',
// value:'TRUE',
// isMainValue: false
// }
] // 条件,例:isMainValue: false,表示查询条件不是主表的字段的值 available:查询列表中字段 TRUE:指查询具体值
},
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
isSearchList: true, isSearchList: true,
searchListPlaceholder: '请选择供应商物品', searchListPlaceholder: '请选择订单行',
searchField: 'itemCode', searchField: 'lineNumber',
searchTitle: '供应商物品信息', searchTitle: '采购订单信息',
searchAllSchemas: Supplieritem.allSchemas, searchAllSchemas: PurchaseDetail.allSchemas,
searchPage: SupplieritemApi.getSupplieritemPage, searchPage: PurchaseDetailApi.getPurchaseDetailPage,
searchCondition: [{ searchCondition: [{
key:'supplierCode', key: 'number',
value:'supplierCode', value: 'poNumber',
isMainValue: true isMainValue: true
},{ }, {
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
}//, //条件,例:isMainValue: true,表示查询条件是主表的字段的值 itemCode:查询列表中字段 supplierCode:指主表某字段 }]
// {
// key:'available',
// value:'TRUE',
// isMainValue: false
// }
] // 条件,例:isMainValue: false,表示查询条件不是主表的字段的值 available:查询列表中字段 TRUE:指查询具体值
} }
},
tableForm: {
isInpuFocusShow: true,
searchListPlaceholder: '请选择订单行',
searchField: 'lineNumber',
searchTitle: '采购订单信息',
searchAllSchemas: PurchaseDetail.allSchemas,
searchPage: PurchaseDetailApi.getPurchaseDetailPage,
searchCondition: [{
key: 'number',
value: 'poNumber',
isMainValue: true
}, {
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}
},
{
label: '单据号',
field: 'number',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
form: {
componentProps: {
disbaled: true
}
}
},
{
label: '物品代码',
field: 'itemCode',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled: true
}
},
tableForm: {
disabled: true
}
},
{
label: '计量单位',
field: 'uom',
sort: 'custom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isSearch: true,
isTable: true,
table: {
width: 150
},
tableForm: {
type: 'Select'
} }
}, },
{ {
@ -375,7 +444,7 @@ export const DemandforecastingDetail = useCrudSchemas(reactive<CrudSchema[]>([
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: {width:'100%'}, style: { width: '100%' },
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
@ -414,20 +483,7 @@ export const DemandforecastingDetail = useCrudSchemas(reactive<CrudSchema[]>([
precision: 6 precision: 6
} }
}, },
{
label: '计量单位',
field: 'uom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
tableForm: {
type: 'Select'
}
},
{ {
label: '最后更新时间', label: '最后更新时间',
field: 'updateTime', field: 'updateTime',
@ -442,7 +498,7 @@ export const DemandforecastingDetail = useCrudSchemas(reactive<CrudSchema[]>([
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: {width:'100%'}, style: { width: '100%' },
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
@ -465,12 +521,12 @@ export const DemandforecastingDetail = useCrudSchemas(reactive<CrudSchema[]>([
label: '操作', label: '操作',
field: 'action', field: 'action',
isDetail: false, isDetail: false,
isForm: false , isForm: false,
table: { table: {
width: 150, width: 150,
fixed: 'right' fixed: 'right'
}, },
isTableForm:false, isTableForm: false,
} }
])) ]))
@ -494,4 +550,4 @@ export const DemandforecastingDetailRules = reactive({
itemCode: [ itemCode: [
{ required: true, message: '请选择物品代码', trigger: 'change' } { required: true, message: '请选择物品代码', trigger: 'change' }
], ],
}) })

5
src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue

@ -105,6 +105,11 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
if (type == 'tableForm') { if (type == 'tableForm') {
// //
row[formField] = val[0][searchField] row[formField] = val[0][searchField]
if (formField == 'poLine') {
row['itemCode'] = val[0]['itemCode']
row['uom'] = val[0]['uom']
row['available'] = val[0]['available']
}
} else { } else {
const setV = {} const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]

13
src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue

@ -88,19 +88,6 @@
row['planQty'] = val[0]['orderQty']-val[0]['plannedQty'] row['planQty'] = val[0]['orderQty']-val[0]['plannedQty']
row['available'] = val[0]['available'] row['available'] = val[0]['available']
} }
// await PurchaseDetailApi.getPurchaseDetailPage({
// number: row['poNumber'],
// available: 'TRUE',
// // poLine: row['lineNumber'],
// }).then(res => {
// if (formField == 'poLine') {
// row['itemCode'] = res.list[0].itemCode
// row['uom'] = res.list[0].uom
// row['orderQty'] = res.list[0].orderQty
// row['planQty'] = res.list[0].orderQty-res.list[0].plannedQty
// row['available'] = res.list[0].available
// }
// })
} else { } else {
const setV = {} const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]

2
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

@ -185,7 +185,7 @@
defaultButtons.mainListPlanSubBtn({ hide: isShowMainButton(row, ['1']) }), // defaultButtons.mainListPlanSubBtn({ hide: isShowMainButton(row, ['1']) }), //
defaultButtons.mainListPlanAppBtn({ hide: isShowMainButton(row, ['2']) }), // defaultButtons.mainListPlanAppBtn({ hide: isShowMainButton(row, ['2']) }), //
defaultButtons.mainListPlanTurBtn({ hide: isShowMainButton(row, ['2']) }), // defaultButtons.mainListPlanTurBtn({ hide: isShowMainButton(row, ['2']) }), //
defaultButtons.mainListEditBtn({ hasPermi: 'wms:supplierdeliver-request-main:update' }), // defaultButtons.mainListEditBtn({ hide: isShowMainButton(row, ['1']),hasPermi: 'wms:supplierdeliver-request-main:update' }), //
// defaultButtons.mainListDeleteBtn({ hasPermi: 'wms:supplierdeliver-request-main:delete' }), // // defaultButtons.mainListDeleteBtn({ hasPermi: 'wms:supplierdeliver-request-main:delete' }), //
{ {
label: '生成标签', label: '生成标签',

Loading…
Cancel
Save