Browse Source

YT-751预生产收货任务导出数据问题:1.应该去掉包装号字段 2.包装规格字段没值

intex
zhang_li 1 week ago
parent
commit
27c5cf3fad
  1. 3
      src/components/BasicForm/src/BasicForm.vue
  2. 5
      src/components/Detail/src/Detail.vue
  3. 1
      src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/AddForm.vue

3
src/components/BasicForm/src/BasicForm.vue

@ -441,7 +441,6 @@ const route = useRoute() // 路由信息
const routeName = ref('')
const sureDisabled = ref(false)
const tabSheet = ref('TableForm')
console.log(555,props.tableAllSchemas)
routeName.value = route.name
const formHeight = ref({})
@ -456,7 +455,7 @@ if (!wsCache.get('ShowPackingNumber')) {
delete rules.value.fromPackingNumber
}
if (props.tableAllSchemas) {
tableAllSchemas.value.tableFormColumns = props.tableAllSchemas.tableFormColumns.filter(item => item.field != 'packingNumber' && item.field != 'fromPackingNumber')
tableAllSchemas.value.tableFormColumns =tableAllSchemas.value.tableFormColumns.filter(item => item.field != 'packingNumber' && item.field != 'fromPackingNumber')
if (tableFormRules.value && tableFormRules.value.packingNumber) {
delete tableFormRules.value.packingNumber
}

5
src/components/Detail/src/Detail.vue

@ -480,19 +480,16 @@ const props = defineProps({
const allSchemas = ref(props.allSchemas)
const detailAllSchemasRef = ref(props.detailAllSchemas)
const detailAllSchemasRules = ref(props.detailAllSchemasRules)
console.log(222,wsCache.get('ShowPackingNumber'))
if (!wsCache.get('ShowPackingNumber')) {
if (allSchemas.value) {
allSchemas.value.detailSchema = props.allSchemas.detailSchema.filter(item => item.field != 'packingNumber')
}
if (detailAllSchemasRef.value) {
detailAllSchemasRef.value.tableColumns = props.detailAllSchemas.tableColumns.filter(item => item.field != 'packingNumber')
}
if (detailAllSchemasRules.value&&detailAllSchemasRules.value.packingNumber) {
delete detailAllSchemasRules.value.packingNumber
}
}
const filterPermissionAnnexTable = ()=>{
return props.annexTable.filter(item=>{
const { wsCache } = useCache()

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

@ -382,7 +382,6 @@ const submitForm = async () => {
if (!formRef) return
const valid = await formRef.value.validate()
if (!valid) return
console.log(555,formData.value)
// if (formData.value.priority == 0) {
// message.error('0')
// return

Loading…
Cancel
Save