Browse Source

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

intex_online20241228
ljlong_2630 2 months ago
parent
commit
eac700d923
  1. 4
      src/components/ImportForm/src/ImportCustomerStatementForecastForm.vue
  2. 2
      src/components/ImportForm/src/ImportFormPlanCSV.vue
  3. 30
      src/components/SearchHigh/src/SearchHigh.vue
  4. 4
      src/locales/en-US.ts
  5. 6
      src/locales/zh-CN.ts
  6. 6
      src/views/wms/basicDataManage/labelManage/manufacturePackage/manufacturePackage.data.ts
  7. 6
      src/views/wms/basicDataManage/labelManage/purchasePackage/purchasePackage.data.ts
  8. 17
      src/views/wms/deliversettlementManage/customerSaleInvoiceRecordMain/customerSaleInvoiceRecordMain.data.ts
  9. 2
      src/views/wms/deliversettlementManage/customerSaleInvoiceRecordMain/index.vue
  10. 6
      src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue
  11. 8
      src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/customerSaleInvoiceRequestMain.data.ts
  12. 16
      src/views/wms/deliversettlementManage/moldAllocation/customerStatement/customerStatementMain.data.ts
  13. 1
      src/views/wms/deliversettlementManage/moldAllocation/customerStatement/index.vue
  14. 4
      src/views/wms/deliversettlementManage/moldAllocation/customerStatementShareRecord/customerStatementShareRecordMain.data.ts
  15. 6
      src/views/wms/deliversettlementManage/moldAllocation/customerToolApportStatementForecastMain/customerToolApportStatementForecastMain.data.ts
  16. 16
      src/views/wms/deliversettlementManage/moldAllocation/supplierMoldCostMain/supplierMoldCostMain.data.ts
  17. 2
      src/views/wms/deliversettlementManage/saleEstimate/finishedShipmentMain/index.vue
  18. 2
      src/views/wms/deliversettlementManage/saleEstimate/unfinishedShipmentMain/index.vue
  19. 2
      src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/index.vue
  20. 5
      src/views/wms/issueManage/issue/issueRequestMain/index.vue
  21. 16
      src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/preparetoissueMain.data.ts
  22. 11
      src/views/wms/productionManage/productionplan/productionMain/index.vue
  23. 20
      src/views/wms/productionManage/productionplan/productionMainAssemble/index.vue
  24. 1
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/purchasereceiptRequestMain.data.ts
  25. 13
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue

4
src/components/ImportForm/src/ImportCustomerStatementForecastForm.vue

@ -309,7 +309,7 @@ const verifyData = async () => {
}else if(data.status==2){
try {
//
await message.confirm('已存在相同客户代码及年月的客户对账单,是否确认覆盖?')
await message.confirm('已存在相同客户代码及年月的客户模具分摊对账单预测,是否重新导入?')
//
submitForm();
// await PurchasepriceApi.deletePurchaseprice(id)
@ -321,7 +321,7 @@ const verifyData = async () => {
//
}
}else if(data.status==3){
await message.alertWarning('已存在相同客户代码及年月的客户对账单,且已提交,无法导入。')
await message.alertWarning('已存在相同客户代码及年月的客户模具分摊对账单预测,且已提交,无法导入。')
}
}

2
src/components/ImportForm/src/ImportFormPlanCSV.vue

@ -140,7 +140,7 @@ const props = defineProps({
accept: {
type: String,
required: false,
default: '.xlsx,.xls'
default: '.csv'
},
// .1
mode: {

30
src/components/SearchHigh/src/SearchHigh.vue

@ -49,17 +49,16 @@
/>
</el-select>
<!-- 时间 -->
<el-time-picker v-else-if="getInputType(item.column) == 'time'" range-separator="-" :start-placeholder="t('ts.开始时间')" :end-placeholder="t('ts.结束时间')" v-model="item.value1" style="width: calc(100% - 20px);margin-right: 10px;" :disabled="item.disabled"/>
<el-time-picker v-else-if="getInputType(item.column) == 'time'" range-separator="-" :start-placeholder="t('ts.开始时间')" :end-placeholder="t('ts.结束时间')" v-model="item.value1" style="width: calc(100% - 20px);margin-right: 10px;" :disabled="item.disabled" />
<!-- 日期 -->
<el-date-picker v-else-if="getInputType(item.column) == 'date'" v-model="item.value1" type="daterange"
range-separator="-" :start-placeholder="t('ts.开始日期')" :end-placeholder="t('ts.结束日期')" style="width: calc(100% - 20px);margin-right: 10px;" @change="changeDateTimePicker($event, item,'daterange')" value-format="YYYY-MM-DD" format="YYYY/MM/DD" :disabled="item.disabled"/>
<el-date-picker v-else-if="getInputType(item.column) == 'date'" v-model="item.value1" type="daterange" range-separator="-" :start-placeholder="t('ts.开始日期')" :end-placeholder="t('ts.结束日期')" style="width: calc(100% - 20px);margin-right: 10px;" @change="changeDateTimePicker($event, item,'daterange')" value-format="YYYY-MM-DD" format="YYYY/MM/DD" :disabled="item.disabled" />
<!-- 日期时间 -->
<el-date-picker v-else-if="getInputType(item.column) == 'datePicker'" v-model="item.value1" type="datetimerange"
range-separator="-" :start-placeholder="t('ts.开始时间')" :end-placeholder="t('ts.结束时间')" style="width: calc(100% - 20px);margin-right: 10px;" @change="changeDateTimePicker($event, item, 'datetimerange')" value-format="x" format="YYYY/MM/DD HH:mm:ss" :disabled="item.disabled"/>
<el-date-picker v-else-if="getInputType(item.column) == 'datePicker'" v-model="item.value1" type="datetimerange" range-separator="-" :start-placeholder="t('ts.开始时间')" :end-placeholder="t('ts.结束时间')" style="width: calc(100% - 20px);margin-right: 10px;" @change="changeDateTimePicker($event, item, 'datetimerange')" value-format="x" format="YYYY/MM/DD HH:mm:ss" :disabled="item.disabled" />
<!-- 日期时间 -->
<el-date-picker v-else-if="getInputType(item.column) == 'monthPicker'" v-model="item.value1" type="monthrange" range-separator="-" :start-placeholder="t('ts.开始月份')" :end-placeholder="t('ts.结束月份')"  style="width: calc(100% - 20px);margin-right: 10px;" @change="changeDateTimePicker($event, item, 'monthrange')" value-format="YYYY-MM"  format="YYYY/MM" :disabled="item.disabled" />
</div>
<!-- 删除条件按钮 -->
<el-button type="danger" :icon="Minus" circle size="small"
@click="moreListDelete(index, item, $event)" />
<el-button type="danger" :icon="Minus" circle size="small" @click="moreListDelete(index, item, $event)" />
</el-form-item>
</el-form>
<!-- 添加筛选条件 -->
@ -193,7 +192,9 @@ const moreListOptions = ref({
} else if (type?.form?.component == 'DatePicker') {
if(type?.form?.componentProps?.type=='datetimerange'|| type?.form?.componentProps?.type == 'datetime'){
data = 'datePicker'
}else if(type?.form?.componentProps?.type == 'date'){
} else if(type?.form?.componentProps?.type=='monthrange'|| type?.form?.componentProps?.type == 'month'){
data = 'monthPicker'
} else if(type?.form?.componentProps?.type == 'date'){
data = 'date'
}
}
@ -221,7 +222,7 @@ const getFilterable = (val) => {
// ==,!=,>,<,>=,<=,like,in,notIn,between,isNull,isNotNull
const formatMoreListActions = (val) => {
if (val) {
if(getInputType(val.column)=='datePicker'|| getInputType(val.column) == 'date'){
if(getInputType(val.column)=='datePicker'|| getInputType(val.column) == 'date'|| getInputType(val.column) == 'monthPicker'){
return moreListOptions.value.action.filter(item => item.value == 'between')
}else{
return moreListOptions.value.action.filter(item => item.value != 'between')
@ -255,7 +256,7 @@ const moreListPush = () => {
const lastestType = ref('')
//
const resetSelect = (val) => {
if (getInputType(val.column) == 'datePicker' || getInputType(val.column) == 'date') {
if (getInputType(val.column) == 'datePicker' || getInputType(val.column) == 'date'|| getInputType(val.column) == 'monthPicker') {
val.action = 'between'
val.disabled = false
}else{
@ -285,11 +286,12 @@ const actionSelect = (val)=>{
//
const buttonBaseClick = (val) => {
console.log(moreListData.value.filters)
if (val == 'search') { //
let data = []
moreListData.value.filters.forEach(item => {
let obj = {}
if(item.value1&&item.value1.length>0 || (item.value1&&typeof item.value1 === 'number')){
if(item.value1&&item.value1.length>0&&!item.value || (item.value1&&typeof item.value1 === 'number')){
obj = {
column: item.column,
action: item.action,
@ -363,6 +365,12 @@ const changeDateTimePicker = (e, val,from) =>{
let startTime = new Date(e[0] + ' 00:00:00').getTime()
let endTime = new Date(e[1] + ' 23:59:59').getTime()
val.value = startTime + ',' + endTime
}else if(from == 'monthrange'){
let startTime = new Date(e[0] + '-01 00:00:00').getTime()
const lastDay = new Date(e[1].split('-')[0],e[1].split('-')[1], 0).getDate();
let endTime = new Date(e[1] + '-'+lastDay+' 23:59:59').getTime()
val.value = startTime + ',' + endTime
console.log(val)
}else if(from == 'datetimerange'){
val.value = e.join(',')
}

4
src/locales/en-US.ts

@ -687,7 +687,9 @@ export default {
:'Version Number',
:'Publish Time',
:'Start Time',
:'Finish Time',
: 'Finish Time',
: 'Start Month',
: 'Finish Month',
:'Business Type',
:'Forecast time type',
:'Forecast Date',

6
src/locales/zh-CN.ts

@ -691,8 +691,10 @@ export default {
:'美元',
:'版本号',
:'发布时间',
:'开始时间',
:'结束时间',
: '开始时间',
: '结束时间',
: '开始年月',
: '结束年月',
:'业务类型',
:'预测时间类型',
:'预测日期',

6
src/views/wms/basicDataManage/labelManage/manufacturePackage/manufacturePackage.data.ts

@ -245,7 +245,11 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available',
value: 'TRUE',
isMainValue: false
}],
}, {
key: 'enableMake',
value: 'TRUE',
isMainValue: false
}],
verificationParams: [{
key: 'code',
action: '==',

6
src/views/wms/basicDataManage/labelManage/purchasePackage/purchasePackage.data.ts

@ -257,7 +257,11 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available',
value: 'TRUE',
isMainValue: false
}],
}, {
key: 'enableBuy',
value: 'TRUE',
isMainValue: false
}],
verificationParams: [{
key: 'code',
action: '==',

17
src/views/wms/deliversettlementManage/customerSaleInvoiceRecordMain/customerSaleInvoiceRecordMain.data.ts

@ -196,7 +196,10 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive<CrudSchema[]>([
},
table:{
width:180
}
},
detail: {
dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
},
{
@ -278,6 +281,18 @@ export const CustomerSaleInvoiceDetailRules = reactive({
})
export const CustomerSaleInvoiceDetail = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '序号',
type: 'index',
field: 'numberIndex',
sort: 'custom',
isSearch: false,
isForm: false,
isTableForm: false,
tableForm: {
disabled: true
}
},
{
label: '品番',
field: 'itemCode',

2
src/views/wms/deliversettlementManage/customerSaleInvoiceRecordMain/index.vue

@ -132,7 +132,7 @@ const Echo = []
const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultImportBtn({hasPermi:`wms:customer-sale-invoice-record-main:import` }), //
//defaultButtons.defaultImportBtn({hasPermi:`wms:customer-sale-invoice-record-main:import` }), //
defaultButtons.defaultExportBtn({hasPermi:`wms:customer-sale-invoice-record-main:export` }), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //

6
src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue

@ -68,11 +68,7 @@
(formRef, formModel, tableData) => {
const { taxRate = 0 } = formModel
// 1 mainBeforeTaxAmount :
let mainBeforeTaxAmount = tableData.reduce(
(prev, item) =>
prev + Number(item['beforeTaxAmount']),
0
)
let mainBeforeTaxAmount = tableData.reduce((prev, item) =>prev + Number(item['beforeTaxAmount'].toFixed(2)),0).toFixed(2)
// 2. mainTaxAmount = */100
let mainTaxAmount = Number(Number(mainBeforeTaxAmount*taxRate*0.01).toFixed(2))
const sumObject = {

8
src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/customerSaleInvoiceRequestMain.data.ts

@ -29,6 +29,9 @@ export const CustomerSaleInvoiceMainRules = reactive({
taxRate: [required],
taxAmount: [required],
adTaxAmount: [required],
goldenTaxInvoiceNumber: [{
max: 64, message: '字符长度不可以大于64', trigger: 'blur'
}]
})
export const CustomerSaleInvoiceMain = useCrudSchemas(reactive<CrudSchema[]>([
@ -322,6 +325,7 @@ export const CustomerSaleInvoiceDetail = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
isSearch: false,
isForm: false,
isTableForm: false,
tableForm: {
disabled: true
}
@ -427,13 +431,13 @@ export const CustomerSaleInvoiceDetail = useCrudSchemas(reactive<CrudSchema[]>([
component: 'InputNumber',
componentProps: {
disabled: true,
precision: 2
precision: 5
}
},
tableForm: {
disabled: true,
type: 'InputNumber',
precision: 2,
precision: 5,
}
},
{

16
src/views/wms/deliversettlementManage/moldAllocation/customerStatement/customerStatementMain.data.ts

@ -105,7 +105,7 @@ export const CustomerStatementMain = useCrudSchemas(reactive<CrudSchema[]>([
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYY-MM',
type: 'daterange',
type: 'monthrange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
},
@ -115,7 +115,7 @@ export const CustomerStatementMain = useCrudSchemas(reactive<CrudSchema[]>([
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
type: 'monthrange',
valueFormat: 'YYYY-MM',
}
},
@ -485,12 +485,12 @@ export const CustomerStatementShareReconciliation = useCrudSchemas(reactive<Crud
sort: 'custom',
isForm: false,
},
{
label: '模具分摊单价',
field: 'allocationPrice',
sort: 'custom',
isForm: false,
},
// {
// label: '模具分摊单价',
// field: 'allocationPrice',
// sort: 'custom',
// isForm: false,
// },
{
label: '调整金额',
field: 'adjustmentAmount',

1
src/views/wms/deliversettlementManage/moldAllocation/customerStatement/index.vue

@ -848,5 +848,6 @@ const handleDetailSubmitForm = async (formType, data) => {
}
]
}
getList()
}
</script>

4
src/views/wms/deliversettlementManage/moldAllocation/customerStatementShareRecord/customerStatementShareRecordMain.data.ts

@ -83,7 +83,7 @@ export const CustomerStatementShareRecordMain = useCrudSchemas(reactive<CrudSche
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYY-MM',
type: 'daterange',
type: 'monthrange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
},
@ -93,7 +93,7 @@ export const CustomerStatementShareRecordMain = useCrudSchemas(reactive<CrudSche
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
type: 'monthrange',
valueFormat: 'YYYY-MM'
}
},

6
src/views/wms/deliversettlementManage/moldAllocation/customerToolApportStatementForecastMain/customerToolApportStatementForecastMain.data.ts

@ -70,7 +70,7 @@ export const CustomerToolApportStatementForecastMain = useCrudSchemas(reactive<C
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYY-MM',
type: 'daterange',
type: 'monthrange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
},
@ -80,7 +80,7 @@ export const CustomerToolApportStatementForecastMain = useCrudSchemas(reactive<C
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
type: 'monthrange',
valueFormat: 'YYYY-MM'
}
},
@ -183,7 +183,7 @@ export const CustomerToolApportStatementForecastDetailRules = reactive({
export const CustomerToolApportStatementForecastDetail = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '帐票号',
field: 'number',
field: 'invoiceNumber',
sort: 'custom',
isSearch: true,
},

16
src/views/wms/deliversettlementManage/moldAllocation/supplierMoldCostMain/supplierMoldCostMain.data.ts

@ -67,8 +67,9 @@ export const SupplierMoldCostMain = useCrudSchemas(reactive<CrudSchema[]>([
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
valueFormat: 'YYYY-MM'
valueFormat: 'YYYY-MM',
type: 'monthrange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
}
},
@ -97,7 +98,16 @@ export const SupplierMoldCostMain = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
isTable:true,
isForm: false
isForm: false,
form: {
component: 'DatePicker',
componentProps: {
style: { width: '100%' },
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x'
}
},
},
{
label: '更新者',

2
src/views/wms/deliversettlementManage/saleEstimate/finishedShipmentMain/index.vue

@ -213,7 +213,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await FinishedShipmentDetailApi.exportFinishedShipmentDetail(tableObject.params)
download.excel(data, '已发未结发货记录主.xlsx')
download.excel(data, '已发已结记录主.xlsx')
} catch {
} finally {
exportLoading.value = false

2
src/views/wms/deliversettlementManage/saleEstimate/unfinishedShipmentMain/index.vue

@ -214,7 +214,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await UnfinishedShipmentDetailApi.exportUnfinishedShipmentDetail(tableObject.params)
download.excel(data, '已发未结发货记录主.xlsx')
download.excel(data, '已发未结记录主.xlsx')
} catch {
} finally {
exportLoading.value = false

2
src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/index.vue

@ -127,6 +127,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
val.forEach(item=>{
const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item}))
newRow[formField] = item[searchField]
newRow['packUnit'] = item['defaultPackUnit']
newRow['packQty'] = item['defaultPackQty']
newRow['uom'] = item['uom']
tableData.value.push(newRow)
})

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

@ -235,6 +235,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
//
setV['productionLineCode'] = ''
setV['workStationCode'] = ''
tableData.value =[]
}
if (formField == 'productionLineCode') {
//线
@ -246,6 +247,10 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
if(res&&res.list&&res.list.length>0){
setV['workStationCode'] = res.list[0].code
}
tableData.value =[]
}
if (formField == 'workStationCode') {
tableData.value =[]
}
formRef.setValues(setV)
}

16
src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/preparetoissueMain.data.ts

@ -661,6 +661,22 @@ export const PreparetoissueDetail = useCrudSchemas(reactive<CrudSchema[]>([
}], // 失去焦点校验参数
},
},
{
label: '备料数量',
field: 'issueQty',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled: true
}
},
tableForm: {
disabled: true
},
},
{
label: '计划数量',
field: 'planQty',

11
src/views/wms/productionManage/productionplan/productionMain/index.vue

@ -162,13 +162,10 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
if(formField == 'workshop'){
setV['workshop'] = val[0]['code']
setV['productionLine'] = ''
if(tableData.value){
tableData.value.forEach(item => {
item.itemCode =''
item.bomVersion = ''
item.uom = ''
})
}
tableData.value =[]
}else if(formField == 'productionLine'){
setV['productionLine'] = val[0]['code']
tableData.value =[]
}else{
setV[formField] = val[0][searchField]
}

20
src/views/wms/productionManage/productionplan/productionMainAssemble/index.vue

@ -289,16 +289,16 @@ const butttondata = (row,$index) => {
defaultButtons.mainListPlanResBtn({hide:isShowMainButton(row,['4']),hasPermi:'wms:production-main:resetting'}), //
defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:production-main:update'}), //
// defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:production-main:delete'}), //
{
label: '生成备料计划',
name: 'scbljh',
hide: isShowMainButtonBl(row,['6']),
type: 'primary',
icon: 'Select',
hasPermi:'wms:production-main:publish',
link: true, //
color: ''
},
// {
// label: '',
// name: 'scbljh',
// hide: isShowMainButtonBl(row,['6']),
// type: 'primary',
// icon: 'Select',
// hasPermi:'wms:production-main:publish',
// link: true, //
// color: ''
// },
{
label: '生成收货申请',
name: 'scshsq',

1
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/purchasereceiptRequestMain.data.ts

@ -2626,6 +2626,7 @@ export const PurchasereceiptRequestPackage = useCrudSchemas(reactive<CrudSchema[
label: '物料类型',
field: 'itemType',
sort: 'custom',
isTableForm: false,
tableForm: {
disabled: true
}

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

@ -375,7 +375,16 @@ const getSearchTableData = async (number,formField,searchField)=>{
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({ hasPermi: 'wms:purchase-plan-main:create' }), //
defaultButtons.defaultImportBtn({ hasPermi: 'wms:purchase-plan-main:import' }), //
// defaultButtons.defaultImportBtn({ hasPermi: 'wms:purchase-plan-main:import' }), //
{
label: t(`ts.导入SPARC订单`).replace('ts.', ''),
name: 'import',
hide: false,
type: 'warning',
icon: 'ep:upload',
color: '',
hasPermi: 'wms:purchase-plan-main:import'
},
// defaultButtons.defaultExportBtn({ hasPermi: 'wms:purchase-plan-main:export' }), //
defaultButtons.defaultExportDetailsBtn({ hasPermi: 'wms:purchase-plan-main:export' }), //
//defaultButtons.defaultExportTableBtn({ hasPermi: 'wms:purchase-plan-main:export' }), //
@ -452,7 +461,7 @@ const isShowMainButton1 = (row, val) => {
return [
// defaultButtons.mainListPurchasePlanOpeBtn({ hide: isShowMainButton(row, ['2']) }), //
defaultButtons.mainListPurchasePlanCloBtn({ hide: !(row.status!=6&&row.status!=2&&row.type=='SCHEDULE'),hasPermi: 'wms:purchase-plan-main:close' }), //
defaultButtons.mainListPurchasePlanPubBtn({ hide: isShowMainButton(row, ['1']) ,hasPermi: 'wms:purchase-plan-main:publish'}), //
defaultButtons.mainListPurchasePlanPubBtn({ hide: isShowMainButton(row, ['1','5']) ,hasPermi: 'wms:purchase-plan-main:publish'}), //
defaultButtons.mainListPurchasePlanAccBtn({ hide: isShowMainButton(row, ['3']) ,hasPermi: 'wms:purchase-plan-main:accept'}), //
defaultButtons.mainListPurchasePlanRejBtn({ hide: isShowMainButton(row, ['3']) ,hasPermi: 'wms:purchase-plan-main:noaccept'}), //
defaultButtons.mainListPurchasePlanWitBtn({ hide: isShowMainButton(row, ['3']) ,hasPermi: 'wms:purchase-plan-main:unpublish'}), //

Loading…
Cancel
Save