Browse Source

Merge branch 'hella_online_20240904' into master_hella

hella_online_20240911
陈薪名 3 months ago
parent
commit
7fa7443c2a
  1. 8
      src/api/wms/demandforecastingDetail/index.ts
  2. 6
      src/api/wms/demandforecastingMain/index.ts
  3. 4
      src/components/Annex/src/Annex.vue
  4. 57
      src/views/qms/inspectionQ2/index.vue
  5. 2
      src/views/qms/inspectionQ2/inspectionQ2.data.ts
  6. 4
      src/views/wms/inventoryManage/balanceSummary/balanceSummary.data.ts
  7. 9
      src/views/wms/inventoryManage/balanceSummary/index.vue
  8. 6
      src/views/wms/inventoryjobManage/scrap/scrapJobMain/scrapJobMain.data.ts
  9. 14
      src/views/wms/inventoryjobManage/scrap/scrapRecordMain/scrapRecordMain.data.ts
  10. 6
      src/views/wms/inventoryjobManage/scrap/scrapRequestMain/scrapRequestMain.data.ts
  11. 2
      src/views/wms/inventoryjobManage/unplannedissue/unplannedissueJobMain/unplannedissueJobMain.data.ts
  12. 152
      src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRecordMain/unplannedissueRecordMain.data.ts
  13. 80
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptJobMain/unplannedreceiptJobMain.data.ts
  14. 124
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRecordMain/unplannedreceiptRecordMain.data.ts
  15. 10
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts
  16. 3
      src/views/wms/issueManage/issue/issueRequestMain/index.vue
  17. 90
      src/views/wms/productionManage/productscrap/productscrapRecordMain/productscrapRecordMain.data.ts
  18. 3
      src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue
  19. 8
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnJobMain/purchasereturnJobMain.data.ts
  20. 2
      src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/demandforecastingMain.data.ts
  21. 1
      src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue
  22. 2
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverInspectionDetail/supplierdeliverInspectionDetail.data.ts
  23. 67
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

8
src/api/wms/demandforecastingDetail/index.ts

@ -35,7 +35,12 @@ const getPageParams = (params)=>{
params.endDate = params.dueDate[1].format('YYYY-MM-DD') params.endDate = params.dueDate[1].format('YYYY-MM-DD')
} }
} }
params.dueDate = '' console.log(params.dueDate)
if (!params.dueDate || params.dueDate.length == 0) {
params.startDate = ''
params.endDate = ''
}
// params.dueDate = ''
//计划员 //计划员
if(params.planerId&&params.planerId.length>0){ if(params.planerId&&params.planerId.length>0){
@ -79,7 +84,6 @@ export const getDemandforecastingDetailPage = async (params) => {
return await request.post({ url: '/wms/demandforecasting-detail/senior', data }) return await request.post({ url: '/wms/demandforecasting-detail/senior', data })
} else { } else {
params = getPageParams(params) params = getPageParams(params)
console.log('params',params)
return await request.get({ url: `/wms/demandforecasting-detail/page`, params }) return await request.get({ url: `/wms/demandforecasting-detail/page`, params })
} }
} }

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

@ -85,7 +85,11 @@ const getPageParams = (params)=>{
params.endDate = params.dueDate[1].format('YYYY-MM-DD') params.endDate = params.dueDate[1].format('YYYY-MM-DD')
} }
} }
params.dueDate = '' if (!params.dueDate || params.dueDate.length == 0) {
params.startDate = ''
params.endDate = ''
}
// params.dueDate = ''
//计划员 //计划员
if(params.planerId&&params.planerId.length>0){ if(params.planerId&&params.planerId.length>0){

4
src/components/Annex/src/Annex.vue

@ -4,7 +4,9 @@
<div class="title flex items-center"> <div class="title flex items-center">
<!-- <div class="title-txt">附件</div> --> <!-- <div class="title-txt">附件</div> -->
<UploadFile :isShowFile="false" :isShowTip="false" :fileType="fileType" :fileSize="fileSize" :title="t('ts.添加附件')" :upData="upData" :limit="10" <UploadFile :isShowFile="false" :isShowTip="false" :fileType="fileType" :fileSize="fileSize" :title="t('ts.添加附件')" :upData="upData" :limit="10"
@update:modelValue="handleAnnexSuccess" v-if="showAddBtn&&annexData.annexList.length<5"/> @update:modelValue="handleAnnexSuccess" v-if="showAddBtn"/>
<!-- HL-5838 5条限制影响了供应商发货申请上传质检报告这个限制没找到认领的需求所以放开 -->
<!-- @update:modelValue="handleAnnexSuccess" v-if="showAddBtn&&annexData.annexList.length<5"/> -->
</div> </div>
<div class="list"> <div class="list">
<div class="item flex items-start" v-for="(item, index) in annexData.annexList" :key="index"> <div class="item flex items-start" v-for="(item, index) in annexData.annexList" :key="index">

57
src/views/qms/inspectionQ2/index.vue

@ -131,13 +131,20 @@ const clearSearchInput = (formField) => {
if (formField == 'itemCode') { if (formField == 'itemCode') {
basicFormRef.value.formRef.setValues({ basicFormRef.value.formRef.setValues({
itemName: '', itemName: '',
SupplierCode: '', supplierCode: '',
SupplierName: '' supplierName: '',
purchaseReceiptNumber: ''
})
Q2.allSchemas.formSchema.forEach((item) => {
if (item.field == 'supplierCode') {
item.componentProps.options = []
}
}) })
} }
if (formField == 'lightItemCode') { if (formField == 'lightItemCode') {
basicFormRef.value.formRef.setValues({ basicFormRef.value.formRef.setValues({
standardCostPrice: '', standardCostPrice: '',
lightItemName: '',
lightQty: 0, lightQty: 0,
claimAmount: '', claimAmount: '',
otherClaimAmount: 0, otherClaimAmount: 0,
@ -147,7 +154,9 @@ const clearSearchInput = (formField) => {
}) })
const params2 = { const params2 = {
by: 'ASC', by: 'ASC',
filters: [{ column: 'itemCode', action: '==', value: basicFormRef.value.formRef.formModel.itemCode }], filters: [
{ column: 'itemCode', action: '==', value: basicFormRef.value.formRef.formModel.itemCode }
],
pageNo: 1, pageNo: 1,
pageSize: 500, pageSize: 500,
sort: '' sort: ''
@ -212,22 +221,22 @@ const searchTableSuccess = (formField, searchField, val, formRef) => {
setV['summaryAmount'] = 0 setV['summaryAmount'] = 0
setV['disbursementAmount'] = 0 setV['disbursementAmount'] = 0
setV['remainingAmount'] = 0 setV['remainingAmount'] = 0
 const params2 = { const params2 = {
        by: 'ASC', by: 'ASC',
        filters: [{ column: 'itemCode', action: '==', value: val[0].code }], filters: [{ column: 'itemCode', action: '==', value: val[0].code }],
        pageNo: 1, pageNo: 1,
        pageSize: 500, pageSize: 500,
        sort: '' sort: ''
      } }
      params2.isSearch = true params2.isSearch = true
      StdcostpriceApi.getStdcostpricePage(params2).then((res) => { StdcostpriceApi.getStdcostpricePage(params2).then((res) => {
        if (res.list?.length > 0) { if (res.list?.length > 0) {
          priceObj.value = res.list[0] priceObj.value = res.list[0]
          formRef.setValues({ formRef.setValues({
            standardCostPrice: priceObj.value.price standardCostPrice: priceObj.value.price
          }) })
        } }
      }) })
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
formRef.setValues(setV) formRef.setValues(setV)
} }
@ -245,9 +254,10 @@ const searchTableSuccess = (formField, searchField, val, formRef) => {
} }
if (formField == 'itemCode') { if (formField == 'itemCode') {
setV['SupplierCode'] = '' setV['supplierCode'] = ''
setV['SupplierName'] = '' setV['supplierName'] = ''
setV['itemName'] = '' setV['itemName'] = ''
setV['purchaseReceiptNumber'] = ''
setV['uom'] = val[0].supplierUom setV['uom'] = val[0].supplierUom
Q2Api.getEmail().then((res) => { Q2Api.getEmail().then((res) => {
@ -293,8 +303,9 @@ const searchTableSuccess = (formField, searchField, val, formRef) => {
}) })
} }
}) })
if (basicFormRef.value.formRef.formModel.lightItemCode == null||
if (val[0].lightItemCode == null) { basicFormRef.value.formRef.formModel.lightItemCode == ''
) {
setV['standardCostPrice'] = '' setV['standardCostPrice'] = ''
setV['lightQty'] = 0 setV['lightQty'] = 0
setV['claimAmount'] = '' setV['claimAmount'] = ''

2
src/views/qms/inspectionQ2/inspectionQ2.data.ts

@ -23,7 +23,7 @@ export const Q2Rules = reactive({
itemCode: [{ required: true, message: '请选择供应商物料代码', trigger: 'change' }], itemCode: [{ required: true, message: '请选择供应商物料代码', trigger: 'change' }],
supplierCode: [{ required: true, message: '请选择供应商代码', trigger: 'change' }], supplierCode: [{ required: true, message: '请选择供应商代码', trigger: 'change' }],
purchaseReceiptNumber: [ purchaseReceiptNumber: [
{ required: true, message: '请选择采购收货单号', trigger: 'change' }, // { required: true, message: '请选择采购收货单号', trigger: 'change' },
{ max: 255, message: '不得超过255个字符', trigger: 'blur' } { max: 255, message: '不得超过255个字符', trigger: 'blur' }
], ],
claimTime: [{ required: true, message: '请选择索赔日期', trigger: 'change' }], claimTime: [{ required: true, message: '请选择索赔日期', trigger: 'change' }],

4
src/views/wms/inventoryManage/balanceSummary/balanceSummary.data.ts

@ -63,6 +63,10 @@ export const BalanceSummary = useCrudSchemas(
label: ' ', label: ' ',
field: 'name', field: 'name',
sort: 'custom', sort: 'custom',
align: 'left',
table:{
width: 350
}
}, },
{ {
label: '总数', label: '总数',

9
src/views/wms/inventoryManage/balanceSummary/index.vue

@ -26,6 +26,7 @@
</el-table> </el-table>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
//
import * as BalanceApi from '@/api/wms/balance' import * as BalanceApi from '@/api/wms/balance'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { formatDate } from '@/utils/formatTime' import { formatDate } from '@/utils/formatTime'
@ -77,9 +78,15 @@ let defaultParams = {
itemCode:itemCode.value itemCode:itemCode.value
} }
const getList = async (params)=>{ const getList = async (params)=>{
loadStart()
try {
let res = await BalanceApi.getBalanceSummaryPageAll(params) let res = await BalanceApi.getBalanceSummaryPageAll(params)
tableData.value = res tableData.value = res
console.log('库存汇总list',res) console.log('库存汇总list',res)
} finally {
loadDone()
}
} }
@ -152,7 +159,7 @@ const searchQueryTableSuccess = (formField, searchField, val, formRef, type, row
// //
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultExportBtn({hasPermi:'wms:balance:export'}), // defaultButtons.defaultExportBtn({hasPermi:'wms:balancesummary:export'}), //
defaultButtons.defaultFreshBtn(null),// defaultButtons.defaultFreshBtn(null),//
] ]
// //

6
src/views/wms/inventoryjobManage/scrap/scrapJobMain/scrapJobMain.data.ts

@ -370,8 +370,8 @@ export const ScrapJobMain = useCrudSchemas(
} }
}, },
{ {
label: '备注', label: '单据备注',
field: 'remark', field: 'remarkMain',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -904,7 +904,7 @@ export const ScrapJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
// }, // },
// }, // },
{ {
label: '备注', label: '明细备注',
field: 'remark', field: 'remark',
sort: 'custom', sort: 'custom',
table: { table: {

14
src/views/wms/inventoryjobManage/scrap/scrapRecordMain/scrapRecordMain.data.ts

@ -373,8 +373,8 @@ export const ScrapRecordMain = useCrudSchemas(
} }
}, },
{ {
label: '备注', label: '单据备注',
field: 'remark', field: 'remarkMain',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -399,6 +399,14 @@ export const ScrapRecordMain = useCrudSchemas(
// } // }
} }
}, },
{
label: '关联单据号',
field: 'relateRecordNumber',
sort: 'custom',
table: {
width: 150
},
},
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
@ -728,7 +736,7 @@ export const ScrapRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
// }, // },
// }, // },
{ {
label: '备注', label: '明细备注',
field: 'remark', field: 'remark',
sort: 'custom', sort: 'custom',
table: { table: {

6
src/views/wms/inventoryjobManage/scrap/scrapRequestMain/scrapRequestMain.data.ts

@ -625,8 +625,8 @@ export const ScrapRequestMain = useCrudSchemas(
} }
}, },
{ {
label: '备注', label: '单据备注',
field: 'remark', field: 'remarkMain',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -1171,7 +1171,7 @@ export const ScrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
isForm: false, isForm: false,
}, },
{ {
label: '备注', label: '明细备注',
field: 'remark', field: 'remark',
sort: 'custom', sort: 'custom',
table: { table: {

2
src/views/wms/inventoryjobManage/unplannedissue/unplannedissueJobMain/unplannedissueJobMain.data.ts

@ -907,7 +907,7 @@ export const UnplannedissueJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '备注', label: '明细备注',
field: 'remark', field: 'remark',
sort: 'custom', sort: 'custom',
table: { table: {

152
src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRecordMain/unplannedissueRecordMain.data.ts

@ -409,43 +409,43 @@ export const UnplannedissueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
}, },
{ // {
label: '创建时间', // label: '创建时间',
field: 'createTime', // field: 'createTime',
formatter: dateFormatter, // formatter: dateFormatter,
detail: { // detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' // dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, // },
sort: 'custom', // sort: 'custom',
table: { // table: {
width: 180 // width: 180
}, // },
form: { // form: {
component: 'DatePicker', // component: 'DatePicker',
componentProps: { // componentProps: {
type: 'datetime', // type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', // dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', // valueFormat: 'x',
} // }
}, // },
isSearch: true, // isSearch: true,
search: { // search: {
component: 'DatePicker', // component: 'DatePicker',
componentProps: { // componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss', // valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange', // type: 'daterange',
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')]
} // }
}, // },
}, // },
{ // {
label: '创建者', // label: '创建者',
field: 'creator', // field: 'creator',
sort: 'custom', // sort: 'custom',
table: { // table: {
width: 150 // width: 150
}, // },
}, // },
{ {
label: '最后更新时间', label: '最后更新时间',
field: 'updateTime', field: 'updateTime',
@ -488,26 +488,26 @@ export const UnplannedissueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
// width: 150 // width: 150
// }, // },
// }, // },
{ // {
label: '是否可用', // label: '是否可用',
field: 'available', // field: 'available',
dictType: DICT_TYPE.TRUE_FALSE, // dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', // dictClass: 'string',
isSearch: false, // isSearch: false,
isTable: true, // isTable: true,
sort: 'custom', // sort: 'custom',
table: { // table: {
width: 150 // width: 150
}, // },
form: { // form: {
component: 'Switch', // component: 'Switch',
value: 'TRUE', // value: 'TRUE',
componentProps: { // componentProps: {
inactiveValue: 'FALSE', // inactiveValue: 'FALSE',
activeValue: 'TRUE' // activeValue: 'TRUE'
} // }
} // }
}, // },
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',
@ -757,25 +757,25 @@ export const UnplannedissueRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
width: 150 width: 150
}, },
}, },
{ // {
label: '项目代码', // label: '项目代码',
field: 'projectCode', // field: 'projectCode',
sort: 'custom', // sort: 'custom',
table: { // table: {
width: 150 // width: 150
}, // },
}, // },
{ // {
label: '接口类型', // label: '接口类型',
field: 'interfaceType', // field: 'interfaceType',
dictType: DICT_TYPE.INTERFACE_TYPE, // dictType: DICT_TYPE.INTERFACE_TYPE,
dictClass: 'string', // dictClass: 'string',
isTable: true, // isTable: true,
sort: 'custom', // sort: 'custom',
table: { // table: {
width: 150 // width: 150
}, // },
}, // },
{ {
label: '明细备注', label: '明细备注',
field: 'remark', field: 'remark',

80
src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptJobMain/unplannedreceiptJobMain.data.ts

@ -351,13 +351,13 @@ export const UnplannedreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
// }, // },
// }, // },
{ {
label: '备注', label: '单据备注',
field: 'remarkMain', field: 'remarkMain',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
isTable: false, isTable: true,
}, },
{ {
label: '自动完成', label: '自动完成',
@ -625,43 +625,43 @@ export const UnplannedreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
}, },
{ // {
label: '创建时间', // label: '创建时间',
field: 'createTime', // field: 'createTime',
formatter: dateFormatter, // formatter: dateFormatter,
detail: { // detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' // dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, // },
sort: 'custom', // sort: 'custom',
table: { // table: {
width: 180 // width: 180
}, // },
form: { // form: {
component: 'DatePicker', // component: 'DatePicker',
componentProps: { // componentProps: {
type: 'datetime', // type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', // dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', // valueFormat: 'x',
} // }
}, // },
isSearch: true, // isSearch: true,
search: { // search: {
component: 'DatePicker', // component: 'DatePicker',
componentProps: { // componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss', // valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange', // type: 'daterange',
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')]
} // }
}, // },
}, // },
{ // {
label: '创建者', // label: '创建者',
field: 'creator', // field: 'creator',
sort: 'custom', // sort: 'custom',
table: { // table: {
width: 150 // width: 150
}, // },
}, // },
{ {
label: '最后更新时间', label: '最后更新时间',
field: 'updateTime', field: 'updateTime',
@ -1026,7 +1026,7 @@ export const UnplannedreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '备注', label: '明细备注',
field: 'remark', field: 'remark',
sort: 'custom', sort: 'custom',
table: { table: {

124
src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRecordMain/unplannedreceiptRecordMain.data.ts

@ -358,9 +358,9 @@ export const UnplannedreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>(
}, },
}, },
{ {
label: '备注', label: '单据备注',
field: 'remarkMain', field: 'remarkMain',
isTable:false, isTable:true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -393,45 +393,45 @@ export const UnplannedreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>(
width: 150 width: 150
}, },
}, },
{ // {
label: '创建时间', // label: '创建时间',
field: 'createTime', // field: 'createTime',
formatter: dateFormatter, // formatter: dateFormatter,
isTable:false, // isTable:false,
detail: { // detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' // dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, // },
sort: 'custom', // sort: 'custom',
table: { // table: {
width: 180 // width: 180
}, // },
form: { // form: {
component: 'DatePicker', // component: 'DatePicker',
componentProps: { // componentProps: {
type: 'datetime', // type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', // dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', // valueFormat: 'x',
} // }
}, // },
isSearch: true, // isSearch: true,
search: { // search: {
component: 'DatePicker', // component: 'DatePicker',
componentProps: { // componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss', // valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'datetimerange', // type: 'datetimerange',
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')]
} // }
}, // },
}, // },
{ // {
label: '创建者', // label: '创建者',
field: 'creator', // field: 'creator',
sort: 'custom', // sort: 'custom',
isTable:false, // isTable:false,
table: { // table: {
width: 150 // width: 150
}, // },
}, // },
{ {
label: '最后更新时间', label: '最后更新时间',
field: 'updateTime', field: 'updateTime',
@ -474,26 +474,26 @@ export const UnplannedreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>(
// width: 150 // width: 150
// }, // },
// }, // },
{ // {
label: '是否可用', // label: '是否可用',
field: 'available', // field: 'available',
dictType: DICT_TYPE.TRUE_FALSE, // dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', // dictClass: 'string',
isSearch: false, // isSearch: false,
isTable: false, // isTable: false,
sort: 'custom', // sort: 'custom',
table: { // table: {
width: 150 // width: 150
}, // },
form: { // form: {
component: 'Switch', // component: 'Switch',
value: 'TRUE', // value: 'TRUE',
componentProps: { // componentProps: {
inactiveValue: 'FALSE', // inactiveValue: 'FALSE',
activeValue: 'TRUE' // activeValue: 'TRUE'
} // }
} // }
}, // },
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',
@ -840,7 +840,7 @@ export const UnplannedreceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]
}, },
}, },
{ {
label: '备注', label: '明细备注',
field: 'remark', field: 'remark',
sort: 'custom', sort: 'custom',
table: { table: {

10
src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts

@ -538,14 +538,14 @@ export const UnplannedreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>
} }
}, },
{ {
label: '备注', label: '单据备注',
field: 'remarkMain', field: 'remarkMain',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
isTable:false, isTable:true,
sortTableDefault: 1000, //sortTableDefault: 1000,
}, },
{ {
label: '创建时间', label: '创建时间',
@ -668,7 +668,7 @@ export const UnplannedreceiptRequestMainRules = reactive({
directCreateRecord: [ directCreateRecord: [
{ required: true, message: '请选择是否跳过任务直接生成记录', trigger: 'change' } { required: true, message: '请选择是否跳过任务直接生成记录', trigger: 'change' }
], ],
remark: [ remarkMain: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
usageDescription:[ usageDescription:[
@ -1244,7 +1244,7 @@ export const UnplannedreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[
} }
}, },
{ {
label: '备注', label: '明细备注',
field: 'remark', field: 'remark',
sort: 'custom', sort: 'custom',
table: { table: {

3
src/views/wms/issueManage/issue/issueRequestMain/index.vue

@ -487,6 +487,9 @@ const submitForm = async (formType, submitData) => {
if(data.masterId){ if(data.masterId){
data.id = data.masterId data.id = data.masterId
} }
tableData.value.forEach((item,index)=>{
item['orderNumber'] = index+1
})
data.subList = tableData.value // data.subList = tableData.value //
if(tableData.value.find(item => (item.qty <= 0))) { if(tableData.value.find(item => (item.qty <= 0))) {
message.warning('数量必须大于0') message.warning('数量必须大于0')

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

@ -100,22 +100,22 @@ export const ProductscrapRecordMain = useCrudSchemas(
width: 150 width: 150
} }
}, },
{ // {
label: '班组', // label: '班组',
field: 'team', // field: 'team',
sort: 'custom', // sort: 'custom',
table: { // table: {
width: 150 // width: 150
} // }
}, // },
{ // {
label: '班次', // label: '班次',
field: 'shift', // field: 'shift',
sort: 'custom', // sort: 'custom',
table: { // table: {
width: 150 // width: 150
} // }
}, // },
{ {
label: '报废原因', label: '报废原因',
field: 'scrappingReason', field: 'scrappingReason',
@ -270,15 +270,15 @@ export const ProductscrapRecordMain = useCrudSchemas(
}, },
isTable: false isTable: false
}, },
{ // {
label: '备注', // label: '备注',
field: 'remark', // field: 'remark',
sort: 'custom', // sort: 'custom',
table: { // table: {
width: 150 // width: 150
}, // },
isTable: false // isTable: false
}, // },
{ {
label: '是否已撤销', label: '是否已撤销',
field: 'revokeFlag', field: 'revokeFlag',
@ -298,6 +298,14 @@ export const ProductscrapRecordMain = useCrudSchemas(
// } // }
} }
}, },
{
label: '关联单据号',
field: 'relateRecordNumber',
sort: 'custom',
table: {
width: 150
},
},
{ {
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
@ -721,22 +729,22 @@ export const ProductscrapRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isTable: false, isTable: false,
}, },
{ // {
label: '备注', // label: '备注',
field: 'remark', // field: 'remark',
sort: 'custom', // sort: 'custom',
table: { // table: {
width: 150 // width: 150
}, // },
isSearch: true, // isSearch: true,
search: { // search: {
component: 'Input', // component: 'Input',
componentProps: { // componentProps: {
placeholder: '请输入备注' // placeholder: '请输入备注'
} // }
}, // },
isTable: true, // isTable: true,
}, // },
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',

3
src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue

@ -390,6 +390,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
// //
if(formField == 'productionLineCode'){ if(formField == 'productionLineCode'){
row['productionLineCode'] = val[0]['code'] row['productionLineCode'] = val[0]['code']
tableData.value = []
}else if(formField == 'fromLocationCode'){ }else if(formField == 'fromLocationCode'){
// val.forEach(item=>{ // val.forEach(item=>{
// const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) // const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item}))
@ -458,6 +459,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
// //
// //
setV['costCenterType'] = val[0]['costcentreType'] setV['costCenterType'] = val[0]['costcentreType']
}else if(formField == 'productionLineCode'){
tableData.value = []
} }
formRef.setValues(setV) formRef.setValues(setV)
} }

8
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnJobMain/purchasereturnJobMain.data.ts

@ -723,7 +723,8 @@ export const PurchasereturnJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isSearch: true, isTable:false,
isSearch: false,
sortTableDefault: 10, sortTableDefault: 10,
}, },
{ {
@ -733,6 +734,8 @@ export const PurchasereturnJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isTable:false,
isSearch: false,
sortTableDefault: 10, sortTableDefault: 10,
}, },
{ {
@ -746,6 +749,7 @@ export const PurchasereturnJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
hiddenInMain:true, hiddenInMain:true,
isTableForm: false, isTableForm: false,
isForm: false, isForm: false,
isTable:false,
}, },
// { // {
// label: '器具号', // label: '器具号',
@ -820,6 +824,7 @@ export const PurchasereturnJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
sortTableDefault: 16, sortTableDefault: 16,
hiddenInMain:true, hiddenInMain:true,
isTable:false,
}, },
{ {
label: '到货主代码', label: '到货主代码',
@ -830,6 +835,7 @@ export const PurchasereturnJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
sortTableDefault: 16, sortTableDefault: 16,
hiddenInMain:true, hiddenInMain:true,
isTable:false,
}, },
{ {
label: '订单号', label: '订单号',

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

@ -76,7 +76,7 @@ export const Supplier1 = useCrudSchemas(reactive<CrudSchema[]>([
export const Version = useCrudSchemas(reactive<CrudSchema[]>([ export const Version = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '供应商代码', label: '供应商代码',
field: 'supplerCodes', field: 'supplierCodes',
sort: 'custom', sort: 'custom',
isSearch:true, isSearch:true,
}, },

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

@ -171,7 +171,6 @@ const onSearchChange = (field, value)=>{
} }
} }
const searchClick = async (data)=>{ const searchClick = async (data)=>{
console.log('searchClick',data)
await setSearchParamsHead(data) await setSearchParamsHead(data)
// updateDateTableColumns() // updateDateTableColumns()
setSearchParams(data) setSearchParams(data)

2
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverInspectionDetail/supplierdeliverInspectionDetail.data.ts

@ -15,7 +15,7 @@ export const SupplierdeliverInspectionDetail = useCrudSchemas(reactive<CrudSchem
tableId: '', tableId: '',
tableName: 'SupplierdeliverInspectionDetail', tableName: 'SupplierdeliverInspectionDetail',
}, },
fileType:['pdf','png','jpg','jpeg'], fileType:['pdf'],
fileSize:100, fileSize:100,
limit:20000 limit:20000
} }

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

@ -100,43 +100,7 @@
<Detail <Detail
ref="detailRef" ref="detailRef"
:annexTable="[ :annexTable="[
{ annexInspectionDetail
label: '质检明细',
prop: 'uploadFile',
tableName: 'SupplierdeliverInspectionDetail',
hasSubDetail: true, //
showPreview: true, //
hiddenUpload:false,
hiddenDelete:false,
fileType: ['pdf', 'jpg', 'png', 'jpeg'],
align: 'left',
//
subDetailTableData: {
queryParams: [
{
queryField: 'masterId',
rowField: 'masterId'
}
], //
getSubList: SupplierdeliverInspectionDetailApi.getSupplierdeliverInspectionDetailPage, //
tableColumns: SupplierdeliverInspectionDetail.allSchemas.tableColumns,
tableList: [], //
total: 1,
pageSize: 10,
currentPage: 1
}
}
,{
label: '履历表',
prop: 'uploadFile',
tableName: 'SupplierdeliverInspectionDetail',
hasSubDetail: true, //
showPreview: true, //
hiddenUpload:false,
hiddenDelete:false,
fileType: ['pdf'],
align: 'left'
}
]" ]"
:isBasic="false" :isBasic="false"
:allSchemas="SupplierdeliverRequestMain.allSchemas" :allSchemas="SupplierdeliverRequestMain.allSchemas"
@ -250,12 +214,38 @@ const route = useRoute() // 路由信息
const routeName = ref() const routeName = ref()
const count = ref(0) const count = ref(0)
routeName.value = route.name routeName.value = route.name
const annexInspectionDetail = ref({
label: '质检明细',
prop: 'uploadFile',
tableName: 'SupplierdeliverInspectionDetail',
hasSubDetail: true, //
showPreview: true, //
hiddenUpload:false,
hiddenDelete:false,
fileType: ['pdf'],
align: 'left',
//
subDetailTableData: {
queryParams: [
{
queryField: 'masterId',
rowField: 'masterId'
}
], //
getSubList: SupplierdeliverInspectionDetailApi.getSupplierdeliverInspectionDetailPage, //
tableColumns: SupplierdeliverInspectionDetail.allSchemas.tableColumns,
tableList: [], //
total: 1,
pageSize: 10,
currentPage: 1
}
})
const tableColumns = ref([ const tableColumns = ref([
...SupplierdeliverRequestMain.allSchemas.tableColumns, ...SupplierdeliverRequestMain.allSchemas.tableColumns,
...SupplierdeliverRequestDetail.allSchemas.tableMainColumns ...SupplierdeliverRequestDetail.allSchemas.tableMainColumns
]) ])
// //
const updataTableColumns = (val) => { const updataTableColumns = (val) => {
tableColumns.value = val tableColumns.value = val
@ -801,6 +791,7 @@ const openDetail = (row: any, titleName: any, titleValue: any) => {
.get(CACHE_KEY.DEPT) .get(CACHE_KEY.DEPT)
.find((account) => account.id == row.departmentCode)?.name .find((account) => account.id == row.departmentCode)?.name
if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode))
annexInspectionDetail.value.hiddenDelete = row.status==8 //HL-5838-status=8
detailRef.value.openDetail(row, titleName, titleValue, 'requestSupplierdeliverMain') detailRef.value.openDetail(row, titleName, titleValue, 'requestSupplierdeliverMain')
} }
/// ///

Loading…
Cancel
Save