Browse Source

Merge remote-tracking branch 'origin/master_hella' into master_hella

hella_online_20240829
gaojs 4 months ago
parent
commit
c3fffbe726
  1. 4
      .env.prod
  2. 4
      README.md
  3. 4
      public/systemConfig.js
  4. 4
      src/api/qms/inspectionRecord/inspectionRecordMain/index.ts
  5. 5
      src/api/qms/inspectionScheme/index.ts
  6. 7
      src/api/qms/inspectionTemplate/index.ts
  7. 2
      src/components/Descriptions/src/Descriptions.vue
  8. 4
      src/hooks/web/useCrudSchemas.ts
  9. 23
      src/utils/systemParam.ts
  10. 11
      src/views/login/components/LoginForm.vue
  11. 2
      src/views/qms/inspectionQ2/inspectionQ2.data.ts
  12. 2
      src/views/qms/inspectionQ3/inspectionQ3.data.ts
  13. 4
      src/views/qms/inspectionRecordFirst/index.vue
  14. 19
      src/views/qms/inspectionScheme/index.vue
  15. 18
      src/views/qms/inspectionTemplate/index.vue
  16. 2
      src/views/qms/selectedSet/index.vue
  17. 11
      src/views/wms/basicDataManage/documentSetting/businesstype/businesstype.data.ts
  18. 92
      src/views/wms/basicDataManage/documentSetting/businesstype/index.vue
  19. 26
      src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/inventoryinitRequestMain.data.ts
  20. 1
      src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue
  21. 1
      src/views/wms/purchasereceiptManage/purchasereturnspare/purchasereturnRecordSpareMain/purchasereturnRecordSpareMain.data.ts
  22. 2
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue
  23. 3
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts

4
.env.prod

@ -41,3 +41,7 @@ VITE_TENANT='["长春1379","成都1397","长春2379"]'
# 查看质检报告环境 # 查看质检报告环境
VITE_REPORT_URL = 'http://dev.ccwin-in.com:25400' VITE_REPORT_URL = 'http://dev.ccwin-in.com:25400'
# 登录系统升级的提示
VITE_SYSTERM_UPDATE_ALERT = true
VITE_SYSTERM_UPDATE_URL = 'https://scptest.faway-hella.com/'

4
README.md

@ -1,5 +1,9 @@
## dev发布2024-06-01-002 ## dev发布2024-06-01-002
**xxxx.data.ts 文件配置说明** **xxxx.data.ts 文件配置说明**
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
dictAllOption:true,// true 字典中--下拉框中展示全选按钮
dictAllValue:'全选', // 全选按钮的value值
**form表单查询弹窗配置** **form表单查询弹窗配置**
form: { form: {
labelMessage: '信息提示说明!!!', labelMessage: '信息提示说明!!!',

4
public/systemConfig.js

@ -10,5 +10,7 @@ let systemConfig = {
// 查看质检报告环境 // 查看质检报告环境
reportUrl: 'https://scp.faway-hella.com', reportUrl: 'https://scp.faway-hella.com',
// 租户配置 // 租户配置
tenant: '["成都"]' tenant: '["成都"]',
systermUpdateAlert: true,
systermUpdateUrl: 'https://scptest.faway-hella.com/'
} }

4
src/api/qms/inspectionRecord/inspectionRecordMain/index.ts

@ -46,6 +46,10 @@ export const createInspectionRecordMain = async (data: InspectionRecordMainVO) =
// 修改检验申请 // 修改检验申请
export const updateInspectionRecordMain = async (data: InspectionRecordMainVO) => { export const updateInspectionRecordMain = async (data: InspectionRecordMainVO) => {
return await request.put({ url: `/qms/inspection-record-main/update`, data })
}
// 首件检验保存
export const updateInspectionRecordFirstMain = async (data: InspectionRecordMainVO) => {
return await request.put({ url: `/qms/inspection-record-main/firstInspectionUpdate`, data }) return await request.put({ url: `/qms/inspection-record-main/firstInspectionUpdate`, data })
} }

5
src/api/qms/inspectionScheme/index.ts

@ -31,6 +31,11 @@ export const disableInspectionScheme = async (id: number) => {
return await request.disable({ url: `/qms/inspection-scheme/disable?id=` + id }) return await request.disable({ url: `/qms/inspection-scheme/disable?id=` + id })
} }
// 导出检验阶段 Excel
export const exportInspectionScheme = async (params) => {
return await request.download({ url: `/qms/inspection-scheme/export-excel`, params })
}
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {
return request.download({ url: '/qms/inspection-scheme/get-import-template' }) return request.download({ url: '/qms/inspection-scheme/get-import-template' })

7
src/api/qms/inspectionTemplate/index.ts

@ -1,7 +1,5 @@
import request from '@/config/axios' import request from '@/config/axios'
// 列表 // 列表
export const getListByTempleteCode = async (code) => { export const getListByTempleteCode = async (code) => {
return await request.get({ url: `/qms/inspection-process/getListByTempleteCode?code=` + code }) return await request.get({ url: `/qms/inspection-process/getListByTempleteCode?code=` + code })
@ -38,6 +36,11 @@ export const disableInspectionTemplate = async (id: number) => {
return await request.disable({ url: `/qms/programme-template/disable?id=` + id }) return await request.disable({ url: `/qms/programme-template/disable?id=` + id })
} }
// 导出检验模版 Excel
export const exportInspectionTemplate = async (params) => {
return await request.download({ url: `/qms/programme-template/export-excel`, params })
}
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {
return request.download({ url: '/qms/programme-template/get-import-template' }) return request.download({ url: '/qms/programme-template/get-import-template' })

2
src/components/Descriptions/src/Descriptions.vue

@ -149,7 +149,7 @@ const showAll = () =>{
<div v-if="data[item.field]&&Array.isArray(data[item.field])" > <div v-if="data[item.field]&&Array.isArray(data[item.field])" >
<DictTag :type="item.dictType" :value="cur" v-for="(cur,key) in data[item.field]" :key="key" style="margin-right: 6px;margin-bottom: 6px;"/> <DictTag :type="item.dictType" :value="cur" v-for="(cur,key) in data[item.field]" :key="key" style="margin-right: 6px;margin-bottom: 6px;"/>
</div> </div>
<DictTag :type="item.dictType" :value="data[item.field] + ''" v-if="data[item.field]&&!Array.isArray(data[item.field])"/> <DictTag :type="item.dictType" :value="data[item.field] + ''" v-if="(data[item.field]||data[item.field]==0)&&!Array.isArray(data[item.field])"/>
</slot> </slot>
<slot v-else :name="item.field" :row="data">{{ data[item.field] }}</slot> <slot v-else :name="item.field" :row="data">{{ data[item.field] }}</slot>
</template> </template>

4
src/hooks/web/useCrudSchemas.ts

@ -264,6 +264,10 @@ const filterFormSchema = (crudSchema: CrudSchema[], allSchemas: AllSchemas): For
options.push(dict) options.push(dict)
}) })
} else { } else {
if(schemaItem.dictAllOption){
const allOptions: ComponentOptions = { label: '全选', value: schemaItem.dictAllValue||'' }
options.push(allOptions)
}
getDictOptions(schemaItem.dictType).forEach((dict) => { getDictOptions(schemaItem.dictType).forEach((dict) => {
options.push(dict) options.push(dict)
}) })

23
src/utils/systemParam.ts

@ -4,6 +4,9 @@ const interfaceUrl = ref(import.meta.env.VITE_INTERFACE_URL)
const jmreportBaseUrl = ref(import.meta.env.VITE_JMREPORT_BASE_URL) const jmreportBaseUrl = ref(import.meta.env.VITE_JMREPORT_BASE_URL)
const reportUrl = ref(import.meta.env.VITE_REPORT_URL) const reportUrl = ref(import.meta.env.VITE_REPORT_URL)
const tenant = ref(import.meta.env.VITE_TENANT) const tenant = ref(import.meta.env.VITE_TENANT)
const systermUpdateAlert = ref(import.meta.env.VITE_SYSTERM_UPDATE_ALERT)
const systermUpdateUrl = ref(import.meta.env.VITE_SYSTERM_UPDATE_URL)
const mode = ref(import.meta.env.MODE) const mode = ref(import.meta.env.MODE)
// 获取baseUrl // 获取baseUrl
export const getBaseUrl = () => { export const getBaseUrl = () => {
@ -53,3 +56,23 @@ export const getTenant = () => {
return tenant.value return tenant.value
} }
} }
// 获取系统升级是否弹出alert
export const getSystermUpdateAlert = () => {
if(mode.value === 'prod') {
return systemConfig.systermUpdateAlert
} else {
return systermUpdateAlert.value
}
}
// 获取系统升级是否弹出alert地址
export const getSystermUpdateUrl = () => {
if(mode.value === 'prod') {
return systemConfig.systermUpdateUrl
} else {
return systermUpdateUrl.value
}
}

11
src/views/login/components/LoginForm.vue

@ -96,6 +96,7 @@
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import * as DeptApi from '@/api/system/dept' import * as DeptApi from '@/api/system/dept'
import { getTenant } from '@/utils/systemParam' import { getTenant } from '@/utils/systemParam'
import { getSystermUpdateAlert,getSystermUpdateUrl } from '@/utils/systemParam'
defineOptions({ name: 'LoginForm' }) defineOptions({ name: 'LoginForm' })
@ -211,6 +212,16 @@
// //
const handleLogin = async (params) => { const handleLogin = async (params) => {
console.log('登录-185') console.log('登录-185')
if(getSystermUpdateAlert()){
await ElMessageBox.alert(
'<strong>系统迁移,请移步至</strong>' +
`<a href=${getSystermUpdateUrl()} target="_blank">${getSystermUpdateUrl()}</a>`,
'重要提示',
{
dangerouslyUseHTMLString: true,
}
)
}
loginLoading.value = true loginLoading.value = true
try { try {
await getTenantId() await getTenantId()

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

@ -50,7 +50,7 @@ export const Q2 = useCrudSchemas(
} }
}, },
{ {
label: 'q1通知单号', label: 'Q1通知单号',
field: 'q1Number', field: 'q1Number',
sort: 'custom', sort: 'custom',
table: { table: {

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

@ -44,7 +44,7 @@ export const Q3 = useCrudSchemas(
} }
}, },
{ {
label: 'q1通知单号', label: 'Q1通知单号',
field: 'q1Number', field: 'q1Number',
sort: 'custom', sort: 'custom',
table: { table: {

4
src/views/qms/inspectionRecordFirst/index.vue

@ -135,7 +135,7 @@ const buttonBaseClick = (val, item) => {
// - // -
const butttondata = (row) => { const butttondata = (row) => {
return [ return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:inspection-recode-first-main:update' }), // defaultButtons.mainListEditBtn({ hide: isShowMainButton(row, 'publish'),hasPermi: 'wms:inspection-recode-first-main:update' }), //
defaultButtons.mainListDeleteBtn({hasPermi: 'wms:inspection-recode-first-main:delete' }), // defaultButtons.mainListDeleteBtn({hasPermi: 'wms:inspection-recode-first-main:delete' }), //
defaultButtons.mainListOrderPubBtn({ hide: isShowMainButton(row, 'publish'), hasPermi:'qms:inspection-recode-first-main:pub'}), // defaultButtons.mainListOrderPubBtn({ hide: isShowMainButton(row, 'publish'), hasPermi:'qms:inspection-recode-first-main:pub'}), //
] ]
@ -228,7 +228,7 @@ const buttonBaseClick = (val, item) => {
await InspectionRecordMainApi.createInspectionRecordMain(data) await InspectionRecordMainApi.createInspectionRecordMain(data)
message.success(t('common.createSuccess')) message.success(t('common.createSuccess'))
}else { }else {
await InspectionRecordMainApi.updateInspectionRecordMain(data) await InspectionRecordMainApi.updateInspectionRecordFirstMain(data)
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
} }
basicFormRef.value.dialogVisible = false basicFormRef.value.dialogVisible = false

19
src/views/qms/inspectionScheme/index.vue

@ -59,6 +59,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download'
import {InspectionSchemeMain } from './inspectionScheme.data' import {InspectionSchemeMain } from './inspectionScheme.data'
import { InspectionTemplateMain,InspectionTemplateProcess,InspectionTemplateFeatures,InspectionTemplateRules } from '../inspectionTemplate/inspectionTemplate.data' import { InspectionTemplateMain,InspectionTemplateProcess,InspectionTemplateFeatures,InspectionTemplateRules } from '../inspectionTemplate/inspectionTemplate.data'
@ -96,7 +97,7 @@ const { getList, setSearchParams } = tableMethods
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'qms:inspection-scheme:create'}), // defaultButtons.defaultAddBtn({hasPermi:'qms:inspection-scheme:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'qms:inspection-scheme:import'}), // defaultButtons.defaultImportBtn({hasPermi:'qms:inspection-scheme:import'}), //
// defaultButtons.defaultExportBtn({hasPermi:'wms:agv-locationrelation:export'}), // defaultButtons.defaultExportBtn({hasPermi:'qms:inspection-scheme:export'}), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null), //
@ -244,6 +245,22 @@ const handleDisable = async (id: number) => {
} catch {} } catch {}
} }
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
const data = await InspectionSchemeApi.exportInspectionScheme(tableObject.params)
download.excel(data, '检验方案.xlsx')
} catch {
} finally {
exportLoading.value = false
}
}
// //
const searchFormClick = (searchData) => { const searchFormClick = (searchData) => {
tableObject.params = { tableObject.params = {

18
src/views/qms/inspectionTemplate/index.vue

@ -103,7 +103,7 @@ const { getList, setSearchParams } = tableMethods
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'qms:programme-template:create'}), // defaultButtons.defaultAddBtn({hasPermi:'qms:programme-template:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'qms:programme-template:import'}), // defaultButtons.defaultImportBtn({hasPermi:'qms:programme-template:import'}), //
// defaultButtons.defaultExportBtn({hasPermi:'wms:agv-locationrelation:export'}), // defaultButtons.defaultExportBtn({hasPermi:'qms:programme-template:export'}), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null), //
@ -133,6 +133,22 @@ const buttonBaseClick = (val, item) => {
} }
} }
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
const data = await InspectionProcessPageApi.exportInspectionTemplate(tableObject.params)
download.excel(data, '检验模板.xlsx')
} catch {
} finally {
exportLoading.value = false
}
}
const isShowMainButton = (row,val) => { const isShowMainButton = (row,val) => {
if (val.indexOf(row.available) > -1) { if (val.indexOf(row.available) > -1) {
return false return false

2
src/views/qms/selectedSet/index.vue

@ -147,7 +147,7 @@ const { getList, setSearchParams } = tableMethods
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'qms:selected-set:query'}), // defaultButtons.defaultAddBtn({hasPermi:'qms:selected-set:query'}), //
defaultButtons.defaultImportBtn({hasPermi:'qms:selected-set:import'}), // defaultButtons.defaultImportBtn({hasPermi:'qms:selected-set:import'}), //
// defaultButtons.defaultExportBtn({hasPermi:'qms:selected-set:export'}), // defaultButtons.defaultExportBtn({hasPermi:'qms:selected-set:export'}), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null), //

11
src/views/wms/basicDataManage/documentSetting/businesstype/businesstype.data.ts

@ -45,6 +45,8 @@ export const Businesstype = useCrudSchemas(reactive<CrudSchema[]>([
field: 'itemTypes', field: 'itemTypes',
dictType: DICT_TYPE.ITEM_TYPE, dictType: DICT_TYPE.ITEM_TYPE,
dictClass: 'string', dictClass: 'string',
dictAllOption:true,// 全选按钮
dictAllValue:'全选',
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
@ -57,6 +59,7 @@ export const Businesstype = useCrudSchemas(reactive<CrudSchema[]>([
}, },
} }
}, },
{ {
label: '可用物料状态范围', label: '可用物料状态范围',
field: 'itemStatuses', field: 'itemStatuses',
@ -73,6 +76,8 @@ export const Businesstype = useCrudSchemas(reactive<CrudSchema[]>([
field: 'outAreaTypes', field: 'outAreaTypes',
dictType: DICT_TYPE.AREA_TYPE, dictType: DICT_TYPE.AREA_TYPE,
dictClass: 'string', dictClass: 'string',
dictAllOption:true,// 全选按钮
dictAllValue:'全选',
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
@ -90,6 +95,8 @@ export const Businesstype = useCrudSchemas(reactive<CrudSchema[]>([
field: 'inAreaTypes', field: 'inAreaTypes',
dictType: DICT_TYPE.AREA_TYPE, dictType: DICT_TYPE.AREA_TYPE,
dictClass: 'string', dictClass: 'string',
dictAllOption:true,// 全选按钮
dictAllValue:'全选',
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
@ -163,6 +170,8 @@ export const Businesstype = useCrudSchemas(reactive<CrudSchema[]>([
field: 'outInventoryStatuses', field: 'outInventoryStatuses',
dictType: DICT_TYPE.INVENTORY_STATUS, dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string', dictClass: 'string',
dictAllOption:true,// 全选按钮
dictAllValue:'全选',
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
@ -180,6 +189,8 @@ export const Businesstype = useCrudSchemas(reactive<CrudSchema[]>([
field: 'inInventoryStatuses', field: 'inInventoryStatuses',
dictType: DICT_TYPE.INVENTORY_STATUS, dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string', dictClass: 'string',
dictAllOption:true,// 全选按钮
dictAllValue:'全选',
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {

92
src/views/wms/basicDataManage/documentSetting/businesstype/index.vue

@ -53,6 +53,7 @@
@searchTableSuccess="searchTableSuccess" @searchTableSuccess="searchTableSuccess"
:isBusiness="false" :isBusiness="false"
:basicFormWidth="75" :basicFormWidth="75"
@onChange="onChange"
/> />
<!-- 详情 --> <!-- 详情 -->
@ -76,6 +77,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict'
// //
defineOptions({ name: 'Businesstype' }) defineOptions({ name: 'Businesstype' })
@ -157,11 +159,44 @@ const buttonTableClick = async (val, row) => {
if (val == 'edit') { if (val == 'edit') {
// //
const rowSplit = JSON.parse(JSON.stringify(row)) const rowSplit = JSON.parse(JSON.stringify(row))
// rowSplit.itemTypes = rowSplit.itemTypes.split(',')
//
const allItemTypesValue = getStrDictOptions(DICT_TYPE.ITEM_TYPE).map(item=>(item.value))
if(rowSplit.itemTypes == allItemTypesValue){
rowSplit.itemTypes = ['全选']
}else{
rowSplit.itemTypes = rowSplit.itemTypes.split(',') rowSplit.itemTypes = rowSplit.itemTypes.split(',')
}
//
const allValue = getStrDictOptions(DICT_TYPE.AREA_TYPE).map(item=>(item.value))
if(rowSplit.outAreaTypes == allValue){
rowSplit.outAreaTypes = ['全选']
}else{
rowSplit.outAreaTypes = rowSplit.outAreaTypes.split(',') rowSplit.outAreaTypes = rowSplit.outAreaTypes.split(',')
}
if(rowSplit.inAreaTypes == allValue){
rowSplit.inAreaTypes = ['全选']
}else{
rowSplit.inAreaTypes = rowSplit.inAreaTypes.split(',') rowSplit.inAreaTypes = rowSplit.inAreaTypes.split(',')
}
// rowSplit.outAreaTypes = rowSplit.outAreaTypes.split(',')
// rowSplit.inAreaTypes = rowSplit.inAreaTypes.split(',')
const allInventoryStatusesValue = getStrDictOptions(DICT_TYPE.INVENTORY_STATUS).map(item=>(item.value))
if(rowSplit.outInventoryStatuses == allInventoryStatusesValue){
rowSplit.outInventoryStatuses = ['全选']
}else{
rowSplit.outInventoryStatuses = rowSplit.outInventoryStatuses.split(',') rowSplit.outInventoryStatuses = rowSplit.outInventoryStatuses.split(',')
}
if(rowSplit.inInventoryStatuses == allInventoryStatusesValue){
rowSplit.inInventoryStatuses = ['全选']
}else{
rowSplit.inInventoryStatuses = rowSplit.inInventoryStatuses.split(',') rowSplit.inInventoryStatuses = rowSplit.inInventoryStatuses.split(',')
}
// rowSplit.outInventoryStatuses = rowSplit.outInventoryStatuses.split(',')
// rowSplit.inInventoryStatuses = rowSplit.inInventoryStatuses.split(',')
openForm('update', rowSplit) openForm('update', rowSplit)
} else if (val == 'delete') { } else if (val == 'delete') {
// //
@ -176,7 +211,8 @@ const openForm = (type: string, row?: any) => {
} }
// form // form
const formsSuccess = async (formType, data) => { const formsSuccess = async (formType, submitData) => {
let data = {...submitData}
var isHave = Businesstype.allSchemas.formSchema.some(function (item) { var isHave = Businesstype.allSchemas.formSchema.some(function (item) {
return item.field === 'activeTime' || item.field === 'expireTime' return item.field === 'activeTime' || item.field === 'expireTime'
}) })
@ -188,11 +224,47 @@ const formsSuccess = async (formType, data) => {
} }
if (data.activeTime == 0) data.activeTime = null if (data.activeTime == 0) data.activeTime = null
if (data.expireTime == 0) data.expireTime = null if (data.expireTime == 0) data.expireTime = null
// data.itemTypes = data.itemTypes.join(',')
const allItemTypesValue = getStrDictOptions(DICT_TYPE.ITEM_TYPE).map(item=>(item.value))
if(data.itemTypes[data.itemTypes.length-1]=='全选'){
data.itemTypes = allItemTypesValue.join(',')
}else{
data.itemTypes = data.itemTypes.join(',') data.itemTypes = data.itemTypes.join(',')
}
// data.outAreaTypes = data.outAreaTypes.join(',')
// data.inAreaTypes = data.inAreaTypes.join(',')
//
const allValue = getStrDictOptions(DICT_TYPE.AREA_TYPE).map(item=>(item.value))
if(data.outAreaTypes[data.outAreaTypes.length-1]=='全选'){
data.outAreaTypes = allValue.join(',')
}else{
data.outAreaTypes = data.outAreaTypes.join(',') data.outAreaTypes = data.outAreaTypes.join(',')
}
if(data.inAreaTypes[data.inAreaTypes.length-1]=='全选'){
data.inAreaTypes = allValue.join(',')
}else{
data.inAreaTypes = data.inAreaTypes.join(',') data.inAreaTypes = data.inAreaTypes.join(',')
}
//
// data.outInventoryStatuses = data.outInventoryStatuses.join(',')
// data.inInventoryStatuses = data.inInventoryStatuses.join(',')
const allInventoryStatusesValue = getStrDictOptions(DICT_TYPE.INVENTORY_STATUS).map(item=>(item.value))
if(data.outInventoryStatuses[data.outInventoryStatuses.length-1]=='全选'){
data.outInventoryStatuses = allInventoryStatusesValue.join(',')
}else{
data.outInventoryStatuses = data.outInventoryStatuses.join(',') data.outInventoryStatuses = data.outInventoryStatuses.join(',')
}
if(data.inInventoryStatuses[data.inInventoryStatuses.length-1]=='全选'){
data.inInventoryStatuses = allInventoryStatusesValue.join(',')
}else{
data.inInventoryStatuses = data.inInventoryStatuses.join(',') data.inInventoryStatuses = data.inInventoryStatuses.join(',')
}
if (formType === 'create') { if (formType === 'create') {
await BusinesstypeApi.createBusinesstype(data) await BusinesstypeApi.createBusinesstype(data)
.then(async () => { .then(async () => {
@ -224,6 +296,24 @@ const formsSuccess = async (formType, data) => {
} }
} }
const onChange = (field, value)=>{
console.log('onChange',field,value)
if(field=='outAreaTypes'||field=='inAreaTypes'||field=='itemTypes'||field=='outInventoryStatuses'||field=='inInventoryStatuses'){
//
if(value.length>0){
if(value[value.length-1]=='全选'){
//
basicFormRef.value.formRef.setValues({
[field]:['全选']
})
}else{
basicFormRef.value.formRef.setValues({
[field]:value.filter(item=>item!='全选')
})
}
}
}
}
// //
const searchTableSuccess = (formField, searchField, val, formRef) => { const searchTableSuccess = (formField, searchField, val, formRef) => {
nextTick(() => { nextTick(() => {

26
src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/inventoryinitRequestMain.data.ts

@ -473,14 +473,14 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
isTableForm: false, isTableForm: false,
isForm: false isForm: false
}, },
// { {
// label: '批次', label: '批次',
// field: 'batch', field: 'batch',
// sort: 'custom', sort: 'custom',
// table: { table: {
// width: 150 width: 150
// }, },
// }, },
// { // {
// label: '包装号', // label: '包装号',
// field: 'packingNumber', // field: 'packingNumber',
@ -816,6 +816,9 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
field: 'packUnit', field: 'packUnit',
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
table: {
width: 150
},
form: { form: {
componentProps: { componentProps: {
enterSearch: true, enterSearch: true,
@ -901,6 +904,9 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
field: 'secondPackUnit', field: 'secondPackUnit',
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
table: {
width: 150
},
form: { form: {
componentProps: { componentProps: {
enterSearch: true, enterSearch: true,
@ -986,8 +992,10 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
label: '入库存包装规格', label: '入库存包装规格',
field: 'balancePackUnit', field: 'balancePackUnit',
sort: 'custom', sort: 'custom',
table: {
width: 150
},
form: { form: {
width: 150,
componentProps: { componentProps: {
enterSearch: true, enterSearch: true,
disabled: true, disabled: true,

1
src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue

@ -128,6 +128,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
tableData.value.push(newRow) tableData.value.push(newRow)
}) })
}else{ }else{
row['toLocationCode'] = val[0]['rawLocationCode']
row[formField] = val[0][searchField] row[formField] = val[0][searchField]
} }

1
src/views/wms/purchasereceiptManage/purchasereturnspare/purchasereturnRecordSpareMain/purchasereturnRecordSpareMain.data.ts

@ -558,7 +558,6 @@ export const PurchasereturnRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
} }
}, },
sortTableDefault: 1004, sortTableDefault: 1004,
hiddenInMain:true,
isForm:false, isForm:false,
tableForm:{ tableForm:{
type:'InputNumber', type:'InputNumber',

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

@ -10,7 +10,7 @@
:allSchemas="PurchasePlanMain.allSchemas" :detailAllSchemas="PurchasePlanDetail.allSchemas"> :allSchemas="PurchasePlanMain.allSchemas" :detailAllSchemas="PurchasePlanDetail.allSchemas">
<template #rightBtn_left> <template #rightBtn_left>
<div style="display:flex;justify-content: center;align-items: center"> <div style="display:flex;justify-content: center;align-items: center">
<span>计划数量包含0</span> <span style="color:var(--el-text-color-regular)">计划数量包含0</span>
<el-switch v-model="isZero" style="margin:0 5px" @change="zeroChange"/> <el-switch v-model="isZero" style="margin:0 5px" @change="zeroChange"/>
</div> </div>
</template> </template>

3
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts

@ -22,10 +22,9 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
table: { table: {
width: 180, width: 180,
fixed: 'left'
}, },
sortSearchDefault:1, sortSearchDefault:1,
sortTableDefault:1, sortTableDefault:99999,
isSearch: true isSearch: true
}, },
{ {

Loading…
Cancel
Save