Browse Source

Merge branch 'master_hella' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-ui into master_hella

master_hella_20240701
zhaoxuebing 4 months ago
parent
commit
6501b56d6a
  1. 35
      src/views/mes/item/index.vue
  2. 22
      src/views/wms/inventoryManage/balance/index.vue

35
src/views/mes/item/index.vue

@ -152,7 +152,7 @@ const basicFormRef = ref()
const openForm = (type: string, row?: any) => { const openForm = (type: string, row?: any) => {
if(type == "update"){ if(type == "update"){
Item.allSchemas.formSchema.forEach((item) => { Item.allSchemas.formSchema.forEach((item) => {
if (item.field == 'itemCode') { if (item.field == 'itemCode') {
item.componentProps.disabled = true item.componentProps.disabled = true
} }
@ -168,7 +168,7 @@ const openForm = (type: string, row?: any) => {
item.componentProps.disabled = false item.componentProps.disabled = false
} }
} }
if(row.dataType == 'SWITCH'){ if(row.dataType == 'SWITCH'){
if (item.field == 'dataVerify') { if (item.field == 'dataVerify') {
item.componentProps.disabled = true item.componentProps.disabled = true
@ -177,7 +177,7 @@ const openForm = (type: string, row?: any) => {
item.componentProps.disabled = true item.componentProps.disabled = true
} }
} }
if(row.dataType == 'TEXT'){ if(row.dataType == 'TEXT'){
if (item.field == 'dataVerify') { if (item.field == 'dataVerify') {
item.componentProps.disabled = true item.componentProps.disabled = true
@ -186,8 +186,8 @@ const openForm = (type: string, row?: any) => {
item.componentProps.disabled = true item.componentProps.disabled = true
} }
} }
}) })
}else{ }else{
Item.allSchemas.formSchema.forEach((item) => { Item.allSchemas.formSchema.forEach((item) => {
if (item.field == 'itemCode') { if (item.field == 'itemCode') {
@ -202,9 +202,12 @@ const openForm = (type: string, row?: any) => {
if (item.field == 'dataStandvalue') { if (item.field == 'dataStandvalue') {
item.componentProps.disabled = false item.componentProps.disabled = false
} }
if (item.field == 'status') {
item.componentProps.disabled = true
}
}) })
} }
basicFormRef.value.open(type, row) basicFormRef.value.open(type, row)
} }
@ -293,9 +296,9 @@ const searchFormClick = (searchData) => {
// //
const onChangeQG = (field, cur, item) => { const onChangeQG = (field, cur, item) => {
console.log('cur'+cur) console.log('cur'+cur)
Item.allSchemas.formSchema.forEach((item) => { Item.allSchemas.formSchema.forEach((item) => {
if(cur == 'SWITCH'){ if(cur == 'SWITCH'){
if (item.field == 'dataVerify') { if (item.field == 'dataVerify') {
@ -306,8 +309,8 @@ const onChangeQG = (field, cur, item) => {
} }
if (item.field == 'status') { if (item.field == 'status') {
item.componentProps.disabled = false item.componentProps.disabled = false
} }
} }
if(cur == 'TEXT'){ if(cur == 'TEXT'){
if (item.field == 'dataVerify') { if (item.field == 'dataVerify') {
item.componentProps.disabled = true item.componentProps.disabled = true
@ -317,7 +320,7 @@ const onChangeQG = (field, cur, item) => {
} }
if (item.field == 'status') { if (item.field == 'status') {
item.componentProps.disabled = true item.componentProps.disabled = true
} }
} }
if(cur == 'NUMBER'){ if(cur == 'NUMBER'){
if (item.field == 'dataVerify') { if (item.field == 'dataVerify') {
@ -328,13 +331,13 @@ const onChangeQG = (field, cur, item) => {
} }
if (item.field == 'status') { if (item.field == 'status') {
item.componentProps.disabled = true item.componentProps.disabled = true
} }
} }
}) })
} }
/** 初始化 **/ /** 初始化 **/
onMounted(async () => { onMounted(async () => {

22
src/views/wms/inventoryManage/balance/index.vue

@ -133,17 +133,17 @@ const buttonBaseClick = (val, item) => {
// - // -
const butttondata = [ const butttondata = [
{ // {
label: '标签信息', // label: '',
name: 'bqxx', // name: 'bqxx',
hide: false, // hide: false,
type: 'primary', // type: 'primary',
icon: '', // icon: '',
color: '', // color: '',
link: true, // link: true,
float:'right', // float:'right',
hasPermi: '' // hasPermi: ''
}, // },
defaultButtons.mainListPointBtn(null), // defaultButtons.mainListPointBtn(null), //
// defaultButtons.mainListEditBtn({hasPermi:'wms:balance:update'}), // // defaultButtons.mainListEditBtn({hasPermi:'wms:balance:update'}), //
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:balance:delete'}), // // defaultButtons.mainListDeleteBtn({hasPermi:'wms:balance:delete'}), //

Loading…
Cancel
Save