Browse Source

策略按钮置灰

master
zhang_li 12 months ago
parent
commit
e4fc53a66b
  1. 2
      src/components/XButton/src/ButtonBase.vue
  2. 1
      src/utils/disposition/defaultButtons.ts
  3. 1
      src/views/wms/basicDataManage/strategySetting/strategy/arrivalInspectionStrategy/AddForm.vue
  4. 1
      src/views/wms/basicDataManage/strategySetting/strategy/batchStrategy/AddForm.vue
  5. 1
      src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue
  6. 1
      src/views/wms/basicDataManage/strategySetting/strategy/inspectStrategy/AddForm.vue
  7. 1
      src/views/wms/basicDataManage/strategySetting/strategy/manageAccuracyStrategy/AddForm.vue
  8. 1
      src/views/wms/basicDataManage/strategySetting/strategy/purchaseReceiptStrategy/AddForm.vue
  9. 1
      src/views/wms/basicDataManage/strategySetting/strategy/repairMaterialStrategy/AddForm.vue
  10. 1
      src/views/wms/basicDataManage/strategySetting/strategy/storageCapacityStrategy/AddForm.vue
  11. 1
      src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/AddForm.vue
  12. 1
      src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue
  13. 1
      src/views/wms/basicDataManage/strategySetting/strategy/utensilCapacityStrategy/AddForm.vue
  14. 1
      src/views/wms/basicDataManage/strategySetting/strategy/warehouseStorageStrategy/AddForm.vue

2
src/components/XButton/src/ButtonBase.vue

@ -5,6 +5,7 @@
:type="item.type" :type="item.type"
:color="item.color" :color="item.color"
:link="item.link ? item.link : false" :link="item.link ? item.link : false"
:disabled="item.disabled"
v-hasPermi="[item.hasPermi] || []" v-hasPermi="[item.hasPermi] || []"
v-if="item.name != 'set'" v-if="item.name != 'set'"
@click="buttonBaseClick(item.name, item, $event)" @click="buttonBaseClick(item.name, item, $event)"
@ -32,6 +33,7 @@
v-show="!item.hide" v-show="!item.hide"
:type="item.type" :type="item.type"
:color="item.color" :color="item.color"
:disabled="item.disabled"
:link="item.link ? item.link : false" :link="item.link ? item.link : false"
v-hasPermi="[item.hasPermi] || []" v-hasPermi="[item.hasPermi] || []"
@click="buttonBaseClick(item.name, item, $event)" @click="buttonBaseClick(item.name, item, $event)"

1
src/utils/disposition/defaultButtons.ts

@ -703,6 +703,7 @@ export function mainCountAdjustRequesttBtn(option:any) {
function __defaultBtnOption(option:any,specific:any){ function __defaultBtnOption(option:any,specific:any){
return { return {
type:option && option.type ? option.type : specific.type, type:option && option.type ? option.type : specific.type,
disabled:option && option.disabled ? option.disabled : specific.disabled,
plain:option && option.plain ? option.plain : specific.plain, plain:option && option.plain ? option.plain : specific.plain,
icon:option && option.icon ? option.icon : specific.icon, icon:option && option.icon ? option.icon : specific.icon,
label:option && option.label ? option.label : specific.label, label:option && option.label ? option.label : specific.label,

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

@ -283,6 +283,7 @@ const open = async (type: string, strategyCode: string, id?: number) => {
formData.value.status = data.status == 0 ? true : false formData.value.status = data.status == 0 ? true : false
if (formData.value.priority == 0) { if (formData.value.priority == 0) {
Butttondata.value = [ Butttondata.value = [
defaultButtons.formSaveBtn({disabled:true}), //
defaultButtons.formCloseBtn(null) // defaultButtons.formCloseBtn(null) //
] ]
} else { } else {

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

@ -287,6 +287,7 @@ const open = async (type: string, strategyCode: string, id?: number) => {
formData.value.status = data.status == 0 ? true : false formData.value.status = data.status == 0 ? true : false
if (formData.value.priority == 0) { if (formData.value.priority == 0) {
Butttondata.value = [ Butttondata.value = [
defaultButtons.formSaveBtn({disabled:true}), //
defaultButtons.formCloseBtn(null) // defaultButtons.formCloseBtn(null) //
] ]
} else { } else {

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

@ -510,6 +510,7 @@ const open = async (type: string, strategyCode: string, id?: number) => {
formData.value.status = data.status == 0 ? true : false formData.value.status = data.status == 0 ? true : false
if (formData.value.priority == 0) { if (formData.value.priority == 0) {
Butttondata.value = [ Butttondata.value = [
defaultButtons.formSaveBtn({disabled:true}), //
defaultButtons.formCloseBtn(null) // defaultButtons.formCloseBtn(null) //
] ]
} else { } else {

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

@ -404,6 +404,7 @@ const open = async (type: string, strategyCode: string, id?: number) => {
formData.value.status = data.status == 0 ? true : false formData.value.status = data.status == 0 ? true : false
if (formData.value.priority == 0) { if (formData.value.priority == 0) {
Butttondata.value = [ Butttondata.value = [
defaultButtons.formSaveBtn({disabled:true}), //
defaultButtons.formCloseBtn(null) // defaultButtons.formCloseBtn(null) //
] ]
} else { } else {

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

@ -332,6 +332,7 @@ const open = async (type: string, strategyCode: string, id?: number) => {
formData.value.status = data.status == 0 ? true : false formData.value.status = data.status == 0 ? true : false
if (formData.value.priority == 0) { if (formData.value.priority == 0) {
Butttondata.value = [ Butttondata.value = [
defaultButtons.formSaveBtn({disabled:true}), //
defaultButtons.formCloseBtn(null) // defaultButtons.formCloseBtn(null) //
] ]
} else { } else {

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

@ -295,6 +295,7 @@ const open = async (type: string, strategyCode: string, id?: number) => {
formData.value.status = data.status == 0 ? true : false formData.value.status = data.status == 0 ? true : false
if (formData.value.priority == 0) { if (formData.value.priority == 0) {
Butttondata.value = [ Butttondata.value = [
defaultButtons.formSaveBtn({disabled:true}), //
defaultButtons.formCloseBtn(null) // defaultButtons.formCloseBtn(null) //
] ]
console.log(Butttondata) console.log(Butttondata)

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

@ -312,6 +312,7 @@ const open = async (type: string, strategyCode: string, id?: number) => {
formData.value.status = data.status == 0 ? true : false formData.value.status = data.status == 0 ? true : false
if (formData.value.priority == 0) { if (formData.value.priority == 0) {
Butttondata.value = [ Butttondata.value = [
defaultButtons.formSaveBtn({disabled:true}), //
defaultButtons.formCloseBtn(null) // defaultButtons.formCloseBtn(null) //
] ]
} else { } else {

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

@ -450,6 +450,7 @@ const open = async (type: string, strategyCode: string, id?: number) => {
formData.value.status = data.status == 0 ? true : false formData.value.status = data.status == 0 ? true : false
if (formData.value.priority == 0) { if (formData.value.priority == 0) {
Butttondata.value = [ Butttondata.value = [
defaultButtons.formSaveBtn({disabled:true}), //
defaultButtons.formCloseBtn(null) // defaultButtons.formCloseBtn(null) //
] ]
} else { } else {

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

@ -420,6 +420,7 @@ const open = async (type: string, strategyCode: string, id?: number) => {
formData.value.status = data.status == 0 ? true : false formData.value.status = data.status == 0 ? true : false
if (formData.value.priority == 0) { if (formData.value.priority == 0) {
Butttondata.value = [ Butttondata.value = [
defaultButtons.formSaveBtn({disabled:true}), //
defaultButtons.formCloseBtn(null) // defaultButtons.formCloseBtn(null) //
] ]
} else { } else {

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

@ -725,6 +725,7 @@ const open = async (type: string, strategyCode: string, id?: number) => {
formData.value.status = data.status == 0 ? true : false formData.value.status = data.status == 0 ? true : false
if (formData.value.priority == 0) { if (formData.value.priority == 0) {
Butttondata.value = [ Butttondata.value = [
defaultButtons.formSaveBtn({disabled:true}), //
defaultButtons.formCloseBtn(null) // defaultButtons.formCloseBtn(null) //
] ]
console.log(Butttondata) console.log(Butttondata)

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

@ -224,6 +224,7 @@ const open = async (type: string, strategyCode: string, id?: number) => {
formData.value.status = data.status == 0 ? true : false formData.value.status = data.status == 0 ? true : false
if (formData.value.priority == 0) { if (formData.value.priority == 0) {
Butttondata.value = [ Butttondata.value = [
defaultButtons.formSaveBtn({disabled:true}), //
defaultButtons.formCloseBtn(null) // defaultButtons.formCloseBtn(null) //
] ]
} else { } else {

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

@ -400,6 +400,7 @@ const open = async (type: string, strategyCode: string, id?: number) => {
formData.value.status = data.status == 0 ? true : false formData.value.status = data.status == 0 ? true : false
if (formData.value.priority == 0) { if (formData.value.priority == 0) {
Butttondata.value = [ Butttondata.value = [
defaultButtons.formSaveBtn({disabled:true}), //
defaultButtons.formCloseBtn(null) // defaultButtons.formCloseBtn(null) //
] ]
} else { } else {

Loading…
Cancel
Save