-
+
@@ -365,19 +170,8 @@ import { getCurrentInstance } from 'vue'
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict'
import * as InspectionJobDetailPageApi from '@/api/qms/inspectionJob/inspectionJobDetail'
import { SearchTable } from '@/components/SearchTable'
-import { SamplingProcess } from '@/views/qms/samplingProcess/samplingProcess.data'
-// import { InspectionTemplateMain } from '@/views/qms/basicDataManage/inspectionTemplate/inspectionTemplate.data'
-// import * as InspectionTemplateApi from '@/api/qms/inspectionTemplate'
-// import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data'
-// import * as ItemBasicApi from '@/api/wms/itembasic'
-import * as SamplingProcessApi from '@/api/qms/samplingProcess' //采样过程
-import * as InspectionMethodApi from '@/api/qms/inspectionMethod' //检验方法
-import { InspectionMethod } from '@/views/qms/inspectionMethod/inspectionMethod.data' //检验方法
-import * as DynamicRuleApi from '@/api/qms/dynamicRule' //动态修改规则
-import { DynamicRule } from '@/views/qms/basicDataManage/dynamicRule/dynamicRule.data' //动态修改规则
-import * as SelectedSetApi from '@/api/qms/selectedSet' //选择集
-import { SelectedSet } from '@/views/qms/basicDataManage/selectedSet/selectedSet.data' //选择集
- import * as InspectionJobMainApi from '@/api/qms/inspectionJob/inspectionJobMain'
+ import * as InspectionJobMainApi from '@/api/qms/inspectionJob/inspectionJobMain'
+import * as InspectionJobPackageApi from '@/api/qms/inspectionJob/InspectionJobPackage/InspectionJobPackage'
const { proxy } = getCurrentInstance()
@@ -523,6 +317,9 @@ const rules = ref({
'inspectionJobCharacteristicsUpdateReqVO.estimateCode': [
{ required: true, message: '请选择评估代码', trigger: 'blur' }
],
+ 'inspectionJobCharacteristicsUpdateReqVO.inspectionQty': [
+ { required: true, message: '请输入样品份数', trigger: 'blur' }
+ ],
qualifiedQuantity: [{ required: true, message: '请输入选择结束时间', trigger: 'blur' }]
})
@@ -537,11 +334,11 @@ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any
formType.value = type
if (row) {
data.value = JSON.parse(JSON.stringify(row))
- console.log(data.value)// 发起承接
- await InspectionJobMainApi.acceptInspectionJobMain(row.id)
+ // console.log(data.value)// 发起承接
+ // await InspectionJobMainApi.acceptInspectionJobMain(row.id)
let list = []
list = await InspectionJobDetailPageApi.getInspectionJobDetailList(row.id)
- data.value.packageList = await InspectionJobMainApi.getInspectionJobPackageList(row.id)
+ data.value.packageList = await InspectionJobPackageApi.getInspectionJobPackageList(row.id)
list.forEach((item, index) => {
editableTabsValue.value = index + 1
item.name = index + 1
@@ -700,7 +497,7 @@ const buttonBaseClick =async(val) => {
}
// 关闭
else if (val == 'close') {
- await InspectionJobMainApi.abandonInspectionJobMain(data.value.id)
+ // await InspectionJobMainApi.abandonInspectionJobMain(data.value.id)
dialogVisible.value = false
}
}
@@ -732,14 +529,15 @@ const submitForm = async () => {
if(data.value.packageList?.length>0){
const validateForm1 = await tableFormRef.value.validateForm()
if (!validateForm1) return
- let number = 0
- data.value.packageList.forEach(cur=>{
- number += parseFloat(cur.sampleAmount)
- })
- if(number != data.value.sampleTotalAmount){
- message.error(`采样数量之和不等于总数量`)
- return
- }
+ // let number = 0
+ // data.value.packageList.forEach(cur=>{
+ // number += parseFloat(cur.sampleAmount)
+ // })
+ // number = number.toFixed('2')
+ // if(number != data.value.sampleTotalAmount){
+ // message.error(`采样数量之和必须等于采样总数量`)
+ // return
+ // }
}
const bol2 = await validateForm(formFeaturesRef.value)
@@ -751,6 +549,7 @@ const submitForm = async () => {
let arrBol = []
let isOutweigh = []//结束时间是否大于开始时间
let numberList = []//判断合格数量和不合格数量之和是否等于主表数量
+ let parseFloatList = []//判断合格数量和不合格数量是否是整数
data.value.subList.forEach((item, index) => {
if (item.inspectionJobCharacteristicsUpdateReqVO.resultEntryMethod == 1) {
arrBol.push(
@@ -761,15 +560,6 @@ const submitForm = async () => {
)
)
}
- // if (item.samplingProcessRespVO.evaluationMode == 1) {
- // arrBol.push(
- // item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList.some(
- // (cur, key) => {
- // return !cur.estimateCode
- // }
- // )
- // )
- // }
if (item.inspectionJobCharacteristicsUpdateReqVO.featureType == 0) {
arrBol.push(
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList.some(
@@ -792,12 +582,23 @@ const submitForm = async () => {
if (item.inspectionJobCharacteristicsUpdateReqVO.inspectionStartTime >item.inspectionJobCharacteristicsUpdateReqVO.inspectionEndTime) {
isOutweigh.push(item.inspectionJobCharacteristicsUpdateReqVO.inspectionStartTime)
}
- // 合格数量和不合格数量之和不等于总数量
+ // 合格数量和不合格数量之和不能是小数
if (item.inspectionJobCharacteristicsUpdateReqVO.resultEntryMethod == 1) {
+ parseFloatList.push(
+ item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList.some(
+ (cur, key) => {
+ return String(cur.qualifiedQuantity).indexOf('.')>-1 || String(cur.unqualifiedQuantity).indexOf('.')>-1
+ }
+ )
+ )
+ // 合格数量和不合格数量之和不等于总数量
numberList.push(
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList.some(
(cur, key) => {
- return parseFloat(cur.qualifiedQuantity) + parseFloat(cur.unqualifiedQuantity) != data.value.sampleTotalAmount
+ console.log(12,cur.qualifiedQuantity)
+ console.log(13,cur.unqualifiedQuantity)
+ console.log(14,item.inspectionJobCharacteristicsUpdateReqVO.inspectionQty)
+ return parseFloat(cur.qualifiedQuantity) + parseFloat(cur.unqualifiedQuantity) != parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.inspectionQty)
}
)
)
@@ -805,6 +606,7 @@ const submitForm = async () => {
})
let isEmpty1 = arrBol.some(item=>item == true)
let isEmptyNumberList = numberList.some(item=>item == true)
+ let isParseFloat = parseFloatList.some(item=>item == true)
if(isEmpty1){
message.error('检验工序和检验特性有字段未填写完全')
return;
@@ -813,9 +615,12 @@ const submitForm = async () => {
message.error('检验特性中有开始时间大于结束时间')
return;
}
- console.log(44,numberList)
+ if(isParseFloat){
+ message.error('合格数量和不合格数量之和不可以是小数')
+ return;
+ }
if(isEmptyNumberList){
- message.error('合格数量和不合格数量之和不等于总数量')
+ message.error('合格数量和不合格数量之和必须等于样品份数')
return;
}
if (formType.value == 'create') {
@@ -978,7 +783,7 @@ const resultEntryMethodChange = (e, item) => {
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList = []
if (e == 0) {
// rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyCapping'][0].required = true
- for (let i = 0; i < data.value.sampleTotalAmount; i++) {
+ for (let i = 0; i < parseInt(item.inspectionJobCharacteristicsUpdateReqVO.inspectionQty); i++) {
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList.push({
inspectionValue: '', //检验值
qualitativeCode: '', //定性字典项值
diff --git a/src/views/qms/inspection/inspectionJob/detail.vue b/src/views/qms/inspection/inspectionJob/detail.vue
index 1a2673a19..3d93cde1d 100644
--- a/src/views/qms/inspection/inspectionJob/detail.vue
+++ b/src/views/qms/inspection/inspectionJob/detail.vue
@@ -1,43 +1,17 @@
-
+
{{ titleValueRef }} {{ titleNameRef }}
-
+
-
-
+
+
检验工序
@@ -63,11 +37,7 @@
-
+
@@ -76,89 +46,44 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
-
-
-
+
+
+
-
-
+
+
-
+
-
diff --git a/src/views/qms/inspection/inspectionJob/index.vue b/src/views/qms/inspection/inspectionJob/index.vue
index 680aa7eb7..1c3b1f33b 100644
--- a/src/views/qms/inspection/inspectionJob/index.vue
+++ b/src/views/qms/inspection/inspectionJob/index.vue
@@ -51,7 +51,9 @@
:isShowAddBtn="false" :detailButtonIsShow="true"
/>
-
+
diff --git a/src/views/wms/agvManage/interfaceInfo/interfaceInfo.data.ts b/src/views/wms/agvManage/interfaceInfo/interfaceInfo.data.ts
new file mode 100644
index 000000000..03b579e46
--- /dev/null
+++ b/src/views/wms/agvManage/interfaceInfo/interfaceInfo.data.ts
@@ -0,0 +1,134 @@
+import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
+import { dateFormatter } from '@/utils/formatTime'
+
+// 表单校验
+export const InterfaceInfoRules = reactive({
+ concurrencyStamp: [required],
+})
+
+export const InterfaceInfo = useCrudSchemas(reactive
([
+ {
+ label: '序号',
+ field: 'number',
+ sort: 'custom',
+ isSearch: true,
+ table: {
+ width: 300,
+ fixed: 'left'
+ },
+ },
+ {
+ label: '接口类型',
+ field: 'interfaceType',
+ sort: 'custom',
+ isSearch: true,
+ table: {
+ width: 180,
+ fixed: 'left'
+ },
+ },
+ {
+ label: '接口名称',
+ field: 'interfaceName',
+ sort: 'custom',
+ isSearch: true,
+ table: {
+ width: 180,
+ },
+ },
+ {
+ label: '状态',
+ field: 'interfaceStatus',
+ dictType: DICT_TYPE.INTERFACE_STATUS,
+ dictClass: 'string',
+ sort: 'custom',
+ form: {
+ component: 'Radio'
+ },
+ table: {
+ width: 180,
+ },
+ isSearch: true,
+ },
+ {
+ label: '请求地址',
+ field: 'url',
+ sort: 'custom',
+ table: {
+ width: 180,
+ },
+ },
+ {
+ label: '请求参数',
+ field: 'reqBody',
+ sort: 'custom',
+ table: {
+ width: 180,
+ },
+ },
+ {
+ label: '返回结果',
+ field: 'respBody',
+ sort: 'custom',
+ table: {
+ width: 180,
+ },
+ },
+ {
+ label: '错误信息',
+ field: 'errorMsg',
+ sort: 'custom',
+ table: {
+ width: 180,
+ },
+ },
+ {
+ label: '创建时间',
+ field: 'createTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isSearch: true,
+ search: {
+ component: 'DatePicker',
+ componentProps: {
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ type: 'daterange',
+ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ }
+ },
+ isForm: false,
+ table: {
+ width: 180,
+ },
+ },
+ {
+ label: '扩展属性',
+ field: 'extraProperties',
+ sort: 'custom',
+ isTable:false,
+ },
+ {
+ label: '并发乐观锁',
+ field: 'concurrencyStamp',
+ isTable:false,
+ sort: 'custom',
+ form: {
+ component: 'InputNumber',
+ value: 0
+ },
+ },
+ {
+ label: '备注',
+ field: 'remark',
+ sort: 'custom',
+ },
+ {
+ label: '操作',
+ field: 'action',
+ isForm: false,
+ table: {
+ width: 150,
+ fixed: 'right'
+ }
+ }
+]))
diff --git a/src/views/wms/basicDataManage/customerManage/customer/index.vue b/src/views/wms/basicDataManage/customerManage/customer/index.vue
index b955c988d..8b8572c04 100644
--- a/src/views/wms/basicDataManage/customerManage/customer/index.vue
+++ b/src/views/wms/basicDataManage/customerManage/customer/index.vue
@@ -16,7 +16,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
{
}
getList() // 刷新当前列表
}
+const success = async (formType, data) => {
+ const res = await SwitchApi.updateSwitch(data)
+ if(true===res){
+ message.success(t('common.updateSuccess'))
+ getList()
+ }else{
+ message.error('修改失败')
+ }
+}
/** 初始化 **/
onMounted(async() => {
getList()
diff --git a/src/views/wms/basicDataManage/documentSetting/transactiontype/index.vue b/src/views/wms/basicDataManage/documentSetting/transactiontype/index.vue
index 2157545ea..0e4c0f822 100644
--- a/src/views/wms/basicDataManage/documentSetting/transactiontype/index.vue
+++ b/src/views/wms/basicDataManage/documentSetting/transactiontype/index.vue
@@ -16,7 +16,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
setV['outPackUnit'] = val[0]['packUnit']
}else if(formField == 'itemCode') {
setV['itemCode'] = val[0]['code']
+ }else if(formField == 'overflowLocationCode') {
+ setV['overflowLocationCode'] = val[0]['code']
}else{
setV[formField] = setV[0][searchField]
}
diff --git a/src/views/wms/basicDataManage/itemManage/itemarea/itemarea.data.ts b/src/views/wms/basicDataManage/itemManage/itemarea/itemarea.data.ts
index 7c4b61e89..d20f50532 100644
--- a/src/views/wms/basicDataManage/itemManage/itemarea/itemarea.data.ts
+++ b/src/views/wms/basicDataManage/itemManage/itemarea/itemarea.data.ts
@@ -83,6 +83,30 @@ export const Itemarea = useCrudSchemas(reactive([
}
}
},
+ {
+ label: '溢出库位',
+ field: 'overflowLocationCode',
+ isTable: true,
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ form: {
+ // labelMessage: '信息提示说明!!!',
+ componentProps: {
+ isSearchList: true, // 开启查询弹窗
+ searchListPlaceholder: '请选择溢出库位代码', // 输入框占位文本
+ searchField: 'code', // 查询弹窗赋值字段
+ searchTitle: '库位信息', // 查询弹窗标题
+ searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
+ searchPage: LocationApi.getLocationPage, // 查询弹窗所需分页方法
+ searchCondition: [{
+ key: 'available',
+ value: 'TRUE',
+ }]
+ }
+ }
+ },
{
label: '入库包装规格',
field: 'inPackUnit',
@@ -279,7 +303,6 @@ export const Itemarea = useCrudSchemas(reactive([
activeValue: 'TRUE'
}
},
- isTable:false
},
{
label: '出库自动转为出库包装规格',
@@ -300,7 +323,6 @@ export const Itemarea = useCrudSchemas(reactive([
activeValue: 'TRUE'
}
},
- isTable:false
},
{
label: '需要接收确认',
diff --git a/src/views/wms/basicDataManage/itemManage/itembasic/index.vue b/src/views/wms/basicDataManage/itemManage/itembasic/index.vue
index 2810c290b..2335a1dee 100644
--- a/src/views/wms/basicDataManage/itemManage/itembasic/index.vue
+++ b/src/views/wms/basicDataManage/itemManage/itembasic/index.vue
@@ -17,7 +17,7 @@
-
diff --git a/src/views/wms/basicDataManage/itemManage/itempackage/index.vue b/src/views/wms/basicDataManage/itemManage/itempackage/index.vue
index 35721bc60..e2bdd9751 100644
--- a/src/views/wms/basicDataManage/itemManage/itempackage/index.vue
+++ b/src/views/wms/basicDataManage/itemManage/itempackage/index.vue
@@ -20,7 +20,7 @@
-
-
-
-
-
- ([
}
},
{
- label: '库位',
- field: 'location',
+ label: '包装规格',
+ field: 'packUnit',
sort: 'custom',
table: {
width: 150
@@ -65,17 +69,16 @@ export const Callmaterials = useCrudSchemas(reactive([
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
- searchListPlaceholder: '请选择库位代码', // 输入框占位文本
+ searchListPlaceholder: '请选择包装规格代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
- searchTitle: '库位信息', // 查询弹窗标题
- searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
- searchPage: LocationApi.getLocationPage, // 查询弹窗所需分页方法
+ searchTitle: '包装规格信息', // 查询弹窗标题
+ searchAllSchemas: Packageunit.allSchemas, // 查询弹窗所需类
+ searchPage: PackageunitApi.getPackageunitPage, // 查询弹窗所需分页方法
}
- },
- isSearch: true
+ }
},
{
- label: '数量',
+ label: '包装数量',
field: 'qty',
sort: 'custom',
table: {
@@ -91,9 +94,9 @@ export const Callmaterials = useCrudSchemas(reactive([
}
},
{
- label: '计量单位',
+ label: '包装单位',
field: 'uom',
- dictType: DICT_TYPE.UOM,
+ dictType: DICT_TYPE.PACK_UNIT,
dictClass: 'string',
isTable: true,
sort: 'custom',
@@ -110,34 +113,15 @@ export const Callmaterials = useCrudSchemas(reactive([
}
}
},
- {
- label: '批次',
- field: 'batch',
- sort: 'custom',
- isSearch: true,
- table: {
- width: 120
- }
- },
- {
- label: '包装规格',
- field: 'packUnit',
- sort: 'custom',
- table: {
- width: 150
- },
- form: {
- // labelMessage: '信息提示说明!!!',
- componentProps: {
- isSearchList: true, // 开启查询弹窗
- searchListPlaceholder: '请选择包装规格代码', // 输入框占位文本
- searchField: 'code', // 查询弹窗赋值字段
- searchTitle: '包装规格信息', // 查询弹窗标题
- searchAllSchemas: Packageunit.allSchemas, // 查询弹窗所需类
- searchPage: PackageunitApi.getPackageunitPage, // 查询弹窗所需分页方法
- }
- }
- },
+ // {
+ // label: '批次',
+ // field: 'batch',
+ // sort: 'custom',
+ // isSearch: true,
+ // table: {
+ // width: 120
+ // }
+ // },
{
label: '仓库代码',
field: 'warehouseCode',
@@ -258,6 +242,42 @@ export const Callmaterials = useCrudSchemas(reactive([
}]
},
},
+ {
+ label: '库位',
+ field: 'location',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ isForm:false,
+ // form: {
+ // // labelMessage: '信息提示说明!!!',
+ // componentProps: {
+ // isSearchList: true, // 开启查询弹窗
+ // searchListPlaceholder: '请选择库位代码', // 输入框占位文本
+ // searchField: 'code', // 查询弹窗赋值字段
+ // searchTitle: '库位信息', // 查询弹窗标题
+ // searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
+ // searchPage: WorkstationApi.selectAreaTypeToLocation, // 查询弹窗所需分页方法
+ // searchCondition: [{
+ // key:'workStationCode',
+ // value:'workStationCode',
+ // message: '请填写工位代码!',
+ // isMainValue: true
+ // },{
+ // key: 'available',
+ // value: 'TRUE',
+ // isMainValue: false
+ // },
+ // {
+ // key: 'areaType',
+ // value: confgiDataOne.areaType,
+ // isMainValue: false
+ // }]
+ // }
+ // },
+ isSearch: true
+ },
{
label: '是否确认接收',
field: 'isRecive',
@@ -268,14 +288,15 @@ export const Callmaterials = useCrudSchemas(reactive([
table: {
width: 150
},
- form: {
- component: 'Switch',
- value: 'FALSE',
- componentProps: {
- inactiveValue: 'FALSE',
- activeValue: 'TRUE'
- }
- }
+ isForm:false
+ // form: {
+ // component: 'Switch',
+ // value: 'FALSE',
+ // componentProps: {
+ // inactiveValue: 'FALSE',
+ // activeValue: 'TRUE'
+ // }
+ // }
},
{
label: '创建者id',
diff --git a/src/views/wms/basicDataManage/labelManage/callmaterials/index.vue b/src/views/wms/basicDataManage/labelManage/callmaterials/index.vue
index 93a27d450..5e23364c5 100644
--- a/src/views/wms/basicDataManage/labelManage/callmaterials/index.vue
+++ b/src/views/wms/basicDataManage/labelManage/callmaterials/index.vue
@@ -16,7 +16,7 @@
-
@@ -67,6 +68,7 @@ import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { formatTime } from '@/utils/index'
import { getAccessToken } from '@/utils/auth'
+import * as PackageApi from '@/api/wms/package'
defineOptions({ name: 'Callmaterials' })
@@ -84,8 +86,10 @@ const searchTableSuccess = (formField, searchField, val, formRef) => {
const setV = {}
if (formField == 'itemCode') {
setV['itemCode'] = val[0]['code']
- setV['uom'] = val[0]['uom']
- } else {
+ } else if (formField == 'packUnit') {
+ setV['uom'] = val[0]['unit']
+ setV['packUnit'] = val[0]['code']
+ }else {
setV[formField] = val[0][searchField]
}
formRef.setValues(setV)
@@ -109,6 +113,7 @@ const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:callmaterials:create'}), // 新增
defaultButtons.defaultImportBtn({hasPermi:'wms:callmaterials:import'}), // 导入
defaultButtons.defaultExportBtn({hasPermi:'wms:callmaterials:export'}), // 导出
+ defaultButtons.mainLisSelectiontPointBtn(null), // 批量标签打印
defaultButtons.defaultFreshBtn(null), // 刷新
defaultButtons.defaultFilterBtn(null), // 筛选
defaultButtons.defaultSetBtn(null), // 设置
@@ -135,7 +140,9 @@ const buttonBaseClick = (val, item) => {
} else if (val == 'refresh') { // 刷新
getList()
} else if (val == 'filtrate') { // 筛选
- } else { // 其他按钮
+ } else if (val=='selection_point'){//批量打印
+ handleSelectionPoint()
+ }else { // 其他按钮
console.log('其他按钮', item)
}
}
@@ -164,9 +171,9 @@ const openForm = (type: string, row?: any) => {
basicFormRef.value.open(type, row)
if (type == 'create') {
- nextTick(() => {
- basicFormRef.value.formRef.formModel.batch = formatTime(new Date(), 'yyyyMMdd')
- })
+ // nextTick(() => {
+ // basicFormRef.value.formRef.formModel.batch = formatTime(new Date(), 'yyyyMMdd')
+ // })
}
}
@@ -227,15 +234,32 @@ const handleExport = async () => {
} finally {
exportLoading.value = false
}
+
}
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const src = ref(BASE_URL + '/jmreport/view/924811818898698240?token=' + getAccessToken())
+const srcPoint = ref(BASE_URL + '/jmreport/view/940818992169918464?token=' + getAccessToken())
// 标签打印
const handlePoint = async (row) => {
window.open(src.value+'&relateNumber='+row.id)
}
-
+// 批量打印
+const handleSelectionPoint = async ()=>{
+ let rows:any = []
+ selectionRows.value.forEach(item=>{
+ rows = [...rows,...item.selectionRows.map(item1=>item1.id)]
+ })
+ console.log('批量打印',rows.join(','))
+ await PackageApi.batchPrintingLable(rows.join(',')).then(res => {
+ console.log(res)
+ window.open(srcPoint.value+'&relateNumber='+res)
+ message.success('创建标签成功')
+ }).catch(err => {
+ console.log(err)
+ message.error('创建标签失败')
+ })
+}
/** 导入 */
const importFormRef = ref()
const handleImport = () => {
@@ -260,6 +284,35 @@ const searchFormClick = (searchData) => {
getList() // 刷新当前列表
}
+watch(
+ () => tableObject.tableList,
+ () => {
+ const currentRows = selectionRows.value.find(item=>item.currentPage==tableObject.currentPage)
+ if(currentRows){
+ nextTick(() => {
+ currentRows.selectionRows.forEach(item=>{
+ tableRef.value.toggleRowSelection(item,true)
+ })
+ })
+ }
+ }
+)
+
+const selectionRows = ref([])
+const tableRef = ref()
+
+const getSelectionRows = (currentPage,currentPageSelectionRows) => {
+ console.log("getSelectionRows",currentPage,currentPageSelectionRows)
+ const currentRows = selectionRows.value.find(item=>item.currentPage==currentPage)
+ if(currentRows){
+ currentRows.selectionRows = currentPageSelectionRows
+ }else{
+ selectionRows.value.push({
+ currentPage,
+ selectionRows:currentPageSelectionRows
+ })
+ }
+}
/** 初始化 **/
onMounted(async () => {
getList()
diff --git a/src/views/wms/basicDataManage/labelManage/labeltype/index.vue b/src/views/wms/basicDataManage/labelManage/labeltype/index.vue
index eb3974a17..f7350997b 100644
--- a/src/views/wms/basicDataManage/labelManage/labeltype/index.vue
+++ b/src/views/wms/basicDataManage/labelManage/labeltype/index.vue
@@ -16,7 +16,7 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
@@ -60,11 +61,13 @@
import download from '@/utils/download'
import * as TeamApi from '@/api/wms/team'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
-import { Team, TeamRules } from './team.data'
+import {searchUser, Team, TeamRules} from './team.data'
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 Detail from '@/components/Detail/src/Detail.vue'
+import TeamForm from "@/views/wms/basicDataManage/orderManage/team/teamForm.vue";
+import {sync} from "rimraf";
defineOptions({ name: 'Team' })
@@ -106,7 +109,7 @@ const HeadButttondata = [
// },
]
-// 头部按钮事件
+// 头部按钮事件
const buttonBaseClick = (val, item) => {
if (val == 'add') { // 新增
openForm('create')
@@ -123,7 +126,7 @@ const buttonBaseClick = (val, item) => {
getList()
}
} else if (val == 'filtrate') { // 筛选
- } else { // 其他按钮
+ } else { // 其他按钮
console.log('其他按钮', item)
}
}
@@ -134,11 +137,12 @@ const butttondata = [
defaultButtons.mainListDeleteBtn({hasPermi:'wms:team:delete'}), // 删除
]
-// 列表-操作按钮事件
+// 列表-操作按钮事件
const buttonTableClick = async (val, row) => {
if (val == 'edit') { // 编辑
// const res = await TeamApi.getItempackaging(row.id)
- openForm('update', row)
+ // openForm('update', row)
+ basicFormRef.value.open('update', row)
} else if (val == 'delete') { // 删除
handleDelete(row.id)
}
@@ -152,13 +156,13 @@ const openForm = (type: string, row?: any) => {
if (item.field == 'code') {
item.componentProps.disabled = true
}
- })
+ })
}else {
Team.allSchemas.formSchema.forEach((item) => {
if (item.field == 'code') {
item.componentProps.disabled = false
}
- })
+ })
}
basicFormRef.value.open(type, row)
}
@@ -186,6 +190,9 @@ const formsSuccess = async (formType,data) => {
basicFormRef.value.dialogVisible = false
getList()
}
+const getData = async() => {
+ getList();
+}
/** 详情操作 */
const detailRef = ref()
@@ -253,4 +260,4 @@ onMounted(async() => {
getList()
importTemplateData.templateUrl = await TeamApi.importTemplate()
})
-
\ No newline at end of file
+
diff --git a/src/views/wms/basicDataManage/orderManage/team/team.data.ts b/src/views/wms/basicDataManage/orderManage/team/team.data.ts
index 0bc377788..f2e67fdcc 100644
--- a/src/views/wms/basicDataManage/orderManage/team/team.data.ts
+++ b/src/views/wms/basicDataManage/orderManage/team/team.data.ts
@@ -24,10 +24,52 @@ export const Team = useCrudSchemas(reactive([
isSearch: true,
},
{
- label: '成员',
+ label: '车间代码',
+ field: 'workshopCode',
+ sort: 'custom',
+ isSearch: true,
+ table: {
+ width: 120
+ }
+ },
+ {
+ label: '产线代码',
+ field: 'productionLineCode',
+ sort: 'custom',
+ isSearch: true,
+ table: {
+ width: 120
+ }
+ },
+ {
+ label: '班组负责人',
+ field: 'teamMonitorName',
+ sort: 'custom',
+ isSearch: true,
+ table: {
+ width: 120
+ }
+ },
+ {
+ label: '班组类型',
+ field: 'teamGroup',
+ sort: 'custom',
+ dictType: DICT_TYPE.BASIC_TEAM_TYPE,
+ dictClass: 'string',
+ isSearch: true,
+ isTable: true,
+ table: {
+ width: 120
+ }
+ },
+ {
+ label: '班组成员',
field: 'members',
sort: 'custom',
isSearch: true,
+ table: {
+ width: 200
+ }
},
{
label: '是否可用',
@@ -131,7 +173,8 @@ export const Team = useCrudSchemas(reactive([
isDetail: false,
isForm: false ,
table: {
- fixed: 'right'
+ fixed: 'right',
+ width: 110
}
}
]))
@@ -155,4 +198,27 @@ export const TeamRules = reactive({
available: [
{ required: true, message: '请选择是否可用', trigger: 'change' }
],
-})
\ No newline at end of file
+ treamGroup: [
+ { required: true, message: '请选择班组类型', trigger: 'change' },
+ ],
+})
+
+export const searchUser = useCrudSchemas(reactive([
+ {
+ label: '用户名',
+ field: 'username',
+ sort: 'custom',
+ isSearch: true,
+ },
+ {
+ label: '用户昵称',
+ field: 'nickname',
+ sort: 'custom',
+ isSearch: true,
+ },
+ {
+ label: '备注',
+ field: 'remark',
+ sort: 'custom',
+ }
+ ]))
diff --git a/src/views/wms/basicDataManage/orderManage/team/teamForm.vue b/src/views/wms/basicDataManage/orderManage/team/teamForm.vue
new file mode 100644
index 000000000..91f555963
--- /dev/null
+++ b/src/views/wms/basicDataManage/orderManage/team/teamForm.vue
@@ -0,0 +1,447 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/wms/basicDataManage/strategySetting/rule/index.vue b/src/views/wms/basicDataManage/strategySetting/rule/index.vue
index 7a4deb781..de47835d7 100644
--- a/src/views/wms/basicDataManage/strategySetting/rule/index.vue
+++ b/src/views/wms/basicDataManage/strategySetting/rule/index.vue
@@ -20,7 +20,7 @@
-
-
+
diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/batchStrategy/index.vue b/src/views/wms/basicDataManage/strategySetting/strategy/batchStrategy/index.vue
index 197c67ff9..e1a580c7d 100644
--- a/src/views/wms/basicDataManage/strategySetting/strategy/batchStrategy/index.vue
+++ b/src/views/wms/basicDataManage/strategySetting/strategy/batchStrategy/index.vue
@@ -24,7 +24,7 @@
-
+
diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/index.vue b/src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/index.vue
index 8a202a9b7..730760adb 100644
--- a/src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/index.vue
+++ b/src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/index.vue
@@ -24,7 +24,7 @@
-
+
diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/inspectStrategy/index.vue b/src/views/wms/basicDataManage/strategySetting/strategy/inspectStrategy/index.vue
index 592a96872..77b078fe9 100644
--- a/src/views/wms/basicDataManage/strategySetting/strategy/inspectStrategy/index.vue
+++ b/src/views/wms/basicDataManage/strategySetting/strategy/inspectStrategy/index.vue
@@ -24,7 +24,7 @@
-
+
diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/purchaseReceiptStrategy/index.vue b/src/views/wms/basicDataManage/strategySetting/strategy/purchaseReceiptStrategy/index.vue
index 510034c5c..3444efabc 100644
--- a/src/views/wms/basicDataManage/strategySetting/strategy/purchaseReceiptStrategy/index.vue
+++ b/src/views/wms/basicDataManage/strategySetting/strategy/purchaseReceiptStrategy/index.vue
@@ -25,7 +25,7 @@
-
+
diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/storageCapacityStrategy/index.vue b/src/views/wms/basicDataManage/strategySetting/strategy/storageCapacityStrategy/index.vue
index c85449469..4d0f74dd4 100644
--- a/src/views/wms/basicDataManage/strategySetting/strategy/storageCapacityStrategy/index.vue
+++ b/src/views/wms/basicDataManage/strategySetting/strategy/storageCapacityStrategy/index.vue
@@ -24,7 +24,7 @@
-
+
diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/index.vue b/src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/index.vue
index 0bd00e4c3..5a0fb3a8f 100644
--- a/src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/index.vue
+++ b/src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/index.vue
@@ -25,7 +25,7 @@
-
+
diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/index.vue b/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/index.vue
index 5b08f93b7..e4d5a6c92 100644
--- a/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/index.vue
+++ b/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/index.vue
@@ -25,7 +25,7 @@
-
+
diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/utensilCapacityStrategy/index.vue b/src/views/wms/basicDataManage/strategySetting/strategy/utensilCapacityStrategy/index.vue
index ebe81b58d..ccc2777aa 100644
--- a/src/views/wms/basicDataManage/strategySetting/strategy/utensilCapacityStrategy/index.vue
+++ b/src/views/wms/basicDataManage/strategySetting/strategy/utensilCapacityStrategy/index.vue
@@ -24,7 +24,7 @@
-
+
diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/warehouseStorageStrategy/index.vue b/src/views/wms/basicDataManage/strategySetting/strategy/warehouseStorageStrategy/index.vue
index ac82727d2..88d59eab1 100644
--- a/src/views/wms/basicDataManage/strategySetting/strategy/warehouseStorageStrategy/index.vue
+++ b/src/views/wms/basicDataManage/strategySetting/strategy/warehouseStorageStrategy/index.vue
@@ -25,7 +25,7 @@
-
+
diff --git a/src/views/wms/basicDataManage/supplierManage/purchaseprice/index.vue b/src/views/wms/basicDataManage/supplierManage/purchaseprice/index.vue
index 0e8828cae..0aac7864e 100644
--- a/src/views/wms/basicDataManage/supplierManage/purchaseprice/index.vue
+++ b/src/views/wms/basicDataManage/supplierManage/purchaseprice/index.vue
@@ -16,7 +16,7 @@
-
-
-
-
-
- ([
}
}
},
+ {
+ label: '用户账号',
+ field: 'userName',
+ sort: 'custom',
+ isForm: false,
+ },
+ {
+ label: '用户昵称',
+ field: 'nickName',
+ sort: 'custom',
+ isForm: false,
+ },
{
label: '供应商代码',
field: 'supplierCode',
@@ -121,6 +133,12 @@ export const SupplierUser = useCrudSchemas(reactive([
}
}
},
+ {
+ label: '供应商名称',
+ field: 'supplierName',
+ sort: 'custom',
+ isForm: false,
+ },
{
label: '状态',
field: 'status',
diff --git a/src/views/wms/basicDataManage/systemSetting/systemcalendar/index.vue b/src/views/wms/basicDataManage/systemSetting/systemcalendar/index.vue
index bf3cd3f82..79700098a 100644
--- a/src/views/wms/basicDataManage/systemSetting/systemcalendar/index.vue
+++ b/src/views/wms/basicDataManage/systemSetting/systemcalendar/index.vue
@@ -16,7 +16,7 @@
-
-
-
+
@@ -12,11 +12,12 @@
@updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
:allSchemas="CountJobMain.allSchemas"
+ :detailAllSchemas="CountJobDetail.allSchemas"
/>
-
@@ -81,7 +82,7 @@ const { t } = useI18n() // 国际化
const route = useRoute() // 路由信息
const routeName = ref()
routeName.value = route.name
-const tableColumns = ref(CountJobMain.allSchemas.tableColumns)
+const tableColumns = ref([...CountJobMain.allSchemas.tableColumns,...CountJobDetail.allSchemas.tableMainColumns])
// 字段设置 更新主列表字段
const updataTableColumns = (val) => {
@@ -128,7 +129,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
const Echo = []
const { tableObject, tableMethods } = useTable({
- getListApi: CountJobMainApi.getCountJobMainPage // 分页接口
+ getListApi: CountJobDetailApi.getCountJobDetailPage // 分页接口
})
// 获得表格的各种操作
@@ -178,7 +179,11 @@ const isShowMainButton = (row,val) => {
}
// 列表-操作按钮
-const butttondata = (row) => {
+const butttondata = (row,$index) => {
+ const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1
+ if(findIndex>0&&findIndex<$index){
+ return []
+ }
return [
// defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), // 承接
defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:count-job-main:close'}), // 关闭
@@ -194,7 +199,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainJobAba') { // 放弃
console.log('列表-操作按钮事件-放弃')
} else if (val == 'mainJobClo') { // 关闭
- handleClose(row.id)
+ handleClose(row.masterId)
} else if (val == 'mainJobAcc') { // 承接
console.log('列表-操作按钮事件-承接')
}
diff --git a/src/views/wms/countManage/count/countPlanMain/index.vue b/src/views/wms/countManage/count/countPlanMain/index.vue
index e793608e4..32e624137 100644
--- a/src/views/wms/countManage/count/countPlanMain/index.vue
+++ b/src/views/wms/countManage/count/countPlanMain/index.vue
@@ -2,7 +2,7 @@
@@ -16,11 +16,12 @@
@updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
:allSchemas="CountPlanMain.allSchemas"
+ :detailAllSchemas="CountPlanDetail.allSchemas"
/>
-
@@ -132,7 +132,7 @@ const { t } = useI18n() // 国际化
const route = useRoute() // 路由信息
const routeName = ref()
routeName.value = route.name
-const tableColumns = ref(CountPlanMain.allSchemas.tableColumns)
+const tableColumns = ref([...CountPlanMain.allSchemas.tableColumns,...CountPlanDetail.allSchemas.tableMainColumns])
// 字段设置 更新主列表字段
const updataTableColumns = (val) => {
@@ -178,7 +178,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) =>
const Echo = []
const { tableObject, tableMethods } = useTable({
- getListApi: CountPlanMainApi.getCountPlanMainPage // 分页接口
+ getListApi: CountPlanDetailApi.getCountPlanDetailPage // 分页接口
})
// 获得表格的各种操作
@@ -240,7 +240,11 @@ const isShowMainButton = (row, val) => {
}
// 列表-操作按钮
-const butttondata = (row) => {
+const butttondata = (row,$index) => {
+ const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1
+ if(findIndex>0&&findIndex<$index){
+ return []
+ }
return [
defaultButtons.mainListPlanOpeBtn({
hide: isShowMainButton(row, ['5']),
@@ -281,7 +285,7 @@ const butttondata = (row) => {
const buttonTableClick = async (val, row) => {
if (val == 'mainPlanOpe') { // 打开
tableObject.loading = true
- CountPlanMainApi.open(row.id).then(() => {
+ CountPlanMainApi.open(row.masterId).then(() => {
message.success(t('打开成功'))
tableObject.loading = false
getList()
@@ -292,7 +296,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainPlanClo') { // 关闭
await message.confirm('确认要关闭吗?')
tableObject.loading = true
- CountPlanMainApi.close(row.id).then(() => {
+ CountPlanMainApi.close(row.masterId).then(() => {
message.success(t('关闭成功'))
tableObject.loading = false
getList()
@@ -303,14 +307,14 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainPlanSub') { // 提交审批
await message.confirm(t('common.confirmSubmit'))
tableObject.loading = true
- await CountPlanMainApi.submit(row.id)
+ await CountPlanMainApi.submit(row.masterId)
message.success(t('提交审批成功'))
tableObject.loading = false
await getList()
} else if (val == 'mainPlanTur') { // 驳回
await message.confirm('确认要驳回吗?')
tableObject.loading = true
- CountPlanMainApi.reject(row.id).then(() => {
+ CountPlanMainApi.reject(row.masterId).then(() => {
message.success(t('驳回成功'))
tableObject.loading = false
getList()
@@ -321,7 +325,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainPlanApp') { // 审批通过
await message.confirm('确认要审批通过吗?')
tableObject.loading = true
- CountPlanMainApi.agree(row.id).then(() => {
+ CountPlanMainApi.agree(row.masterId).then(() => {
message.success(t('审批已通过'))
tableObject.loading = false
getList()
@@ -332,7 +336,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainPlanPub') { // 发布
await message.confirm('确认要发布吗?')
tableObject.loading = true
- CountPlanMainApi.publish(row.id).then(() => {
+ CountPlanMainApi.publish(row.masterId).then(() => {
message.success(t('发布成功'))
tableObject.loading = false
getList()
@@ -343,7 +347,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainPlanRes') { // 重置
await message.confirm('确认要重置吗?')
tableObject.loading = true
- CountPlanMainApi.resetting(row.id).then(() => {
+ CountPlanMainApi.resetting(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@@ -354,7 +358,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'edit') { // 编辑
openForm('update', row)
} else if (val == 'delete') { // 删除
- handleDelete(row.id)
+ handleDelete(row.masterId)
}
}
/** 添加/修改操作 */
diff --git a/src/views/wms/countManage/count/countRecordMain/index.vue b/src/views/wms/countManage/count/countRecordMain/index.vue
index 1ad95828b..a33275922 100644
--- a/src/views/wms/countManage/count/countRecordMain/index.vue
+++ b/src/views/wms/countManage/count/countRecordMain/index.vue
@@ -1,7 +1,7 @@
-
+
@@ -12,11 +12,12 @@
@updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
:allSchemas="CountRecordMain.allSchemas"
+ :detailAllSchemas="CountRecordDetail.allSchemas"
/>
-
@@ -76,7 +77,7 @@ const { t } = useI18n() // 国际化
const route = useRoute() // 路由信息
const routeName = ref()
routeName.value = route.name
-const tableColumns = ref(CountRecordMain.allSchemas.tableColumns)
+const tableColumns = ref([...CountRecordMain.allSchemas.tableColumns,...CountRecordDetail.allSchemas.tableMainColumns])
// 字段设置 更新主列表字段
const updataTableColumns = (val) => {
@@ -84,7 +85,7 @@ const updataTableColumns = (val) => {
}
const { tableObject, tableMethods } = useTable({
- getListApi: CountRecordMainApi.getCountRecordMainPage // 分页接口
+ getListApi: CountRecordDetailApi.getCountRecordDetailPage // 分页接口
})
// 获得表格的各种操作
@@ -125,7 +126,11 @@ const buttonBaseClick = (val, item) => {
}
// 列表-操作按钮
-const butttondata = (row) => {
+const butttondata = (row,$index) => {
+ const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1
+ if(findIndex>0&&findIndex<$index){
+ return []
+ }
return [
defaultButtons.mainCountAdjustRequesttBtn({
hasPermi: 'wms:count-record-main:generate'
diff --git a/src/views/wms/countManage/count/countRequestMain/index.vue b/src/views/wms/countManage/count/countRequestMain/index.vue
index 58d0bd6f8..4daa1e5ff 100644
--- a/src/views/wms/countManage/count/countRequestMain/index.vue
+++ b/src/views/wms/countManage/count/countRequestMain/index.vue
@@ -2,7 +2,7 @@
@@ -16,11 +16,12 @@
@updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
:allSchemas="CountRequestMain.allSchemas"
+ :detailAllSchemas="CountRequestDetail.allSchemas"
/>
- {{ row.number }}
-
+
@@ -122,7 +123,7 @@ const { t } = useI18n() // 国际化
const route = useRoute() // 路由信息
const routeName = ref()
routeName.value = route.name
-const tableColumns = ref(CountRequestMain.allSchemas.tableColumns)
+const tableColumns = ref([...CountRequestMain.allSchemas.tableColumns,...CountRequestDetail.allSchemas.tableMainColumns])
// 字段设置 更新主列表字段
const updataTableColumns = (val) => {
@@ -197,7 +198,7 @@ const searchTableSuccessCount = (formField, searchField, val, type,row,count) =>
const Echo = []
const { tableObject, tableMethods } = useTable({
- getListApi: CountRequestMainApi.getCountRequestMainPage // 分页接口
+ getListApi: CountRequestDetailApi.getCountRequestDetailPage // 分页接口
})
// 获得表格的各种操作
@@ -281,7 +282,11 @@ const isShowGenerateMainButton = (row, val) => {
const searchTableRef = ref()
// 列表-操作按钮
-const butttondata = (row) => {
+const butttondata = (row,$index) => {
+ const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1
+ if(findIndex>0&&findIndex<$index){
+ return []
+ }
return [
defaultButtons.mainListCloseBtn({hide: isShowMainButton(row, ['1', '2', '3', '4', '6']),hasPermi: 'wms:count-request-main:close'}), // 关闭
defaultButtons.mainListReAddBtn({hide: isShowMainButton(row, ['5']),hasPermi: 'wms:count-request-main:reAdd'}), //重新添加
@@ -304,7 +309,7 @@ const buttonTableClick = async (val, row) => {
// 关闭
await message.confirm('确认要关闭吗?')
tableObject.loading = true
- CountRequestMainApi.close(row.id)
+ CountRequestMainApi.close(row.masterId)
.then(() => {
message.success(t('关闭成功'))
tableObject.loading = false
@@ -318,7 +323,7 @@ const buttonTableClick = async (val, row) => {
// 重新添加
await message.confirm('确认要重新添加吗?')
tableObject.loading = true
- CountRequestMainApi.reAdd(row.id)
+ CountRequestMainApi.reAdd(row.masterId)
.then(() => {
message.success(t('添加成功'))
tableObject.loading = false
@@ -332,7 +337,7 @@ const buttonTableClick = async (val, row) => {
// 提交审批
await message.confirm('确认要提交审批吗?')
tableObject.loading = true
- CountRequestMainApi.submit(row.id)
+ CountRequestMainApi.submit(row.masterId)
.then(() => {
message.success(t('提交审批成功'))
tableObject.loading = false
@@ -346,7 +351,7 @@ const buttonTableClick = async (val, row) => {
// 驳回
await message.confirm('确认要驳回吗?')
tableObject.loading = true
- CountRequestMainApi.refused(row.id)
+ CountRequestMainApi.refused(row.masterId)
.then(() => {
message.success(t('驳回成功'))
tableObject.loading = false
@@ -360,7 +365,7 @@ const buttonTableClick = async (val, row) => {
// 审批通过
await message.confirm('确认要审批通过吗?')
tableObject.loading = true
- CountRequestMainApi.agree(row.id)
+ CountRequestMainApi.agree(row.masterId)
.then(() => {
message.success(t('审批已通过'))
tableObject.loading = false
@@ -374,7 +379,7 @@ const buttonTableClick = async (val, row) => {
// 处理
await message.confirm('确认要处理吗?')
tableObject.loading = true
- CountRequestMainApi.handle(row.id)
+ CountRequestMainApi.handle(row.masterId)
.then(() => {
message.success(t('处理成功'))
tableObject.loading = false
@@ -396,7 +401,7 @@ const buttonTableClick = async (val, row) => {
label:3,
title:'选择'
}])
- searchTableRef.value.open('盘点申请明细',CountRequestDetail.allSchemas,CountRequestDetailApi.getCountRequestDetailPage,'reCount','',true,'',row,{masterId:row.id},'',radioList.value)
+ searchTableRef.value.open('盘点申请明细',CountRequestDetail.allSchemas,CountRequestDetailApi.getCountRequestDetailPage,'reCount','',true,'',row,{masterId:row.masterId},'',radioList.value)
} else if (val == 'mainSuperviseCount') {
// 监盘
const radioList = ref([{
@@ -406,11 +411,11 @@ const buttonTableClick = async (val, row) => {
label:2,
title:'选择'
}])
- searchTableRef.value.open('盘点申请明细',CountRequestDetail.allSchemas,CountRequestDetailApi.getCountRequestDetailPage,'superviseCount','',true,'',row,{masterId:row.id},'',radioList.value)
+ searchTableRef.value.open('盘点申请明细',CountRequestDetail.allSchemas,CountRequestDetailApi.getCountRequestDetailPage,'superviseCount','',true,'',row,{masterId:row.masterId},'',radioList.value)
} else if (val == 'countAdjustRequest') {
// 生成盘点调整申请
await message.confirm('确认要生成盘点调整申请吗?')
- CountRequestMainApi.generateCountadjustRequest(row.id)
+ CountRequestMainApi.generateCountadjustRequest(row.masterId)
.then(() => {
message.success(t('已生成盘点调整申请'))
getList()
@@ -422,7 +427,7 @@ const buttonTableClick = async (val, row) => {
// 解冻
await message.confirm('确认要解冻吗?')
tableObject.loading = true
- CountRequestMainApi.thaw(row.id)
+ CountRequestMainApi.thaw(row.masterId)
.then(() => {
message.success(t('解冻成功'))
tableObject.loading = false
@@ -437,7 +442,7 @@ const buttonTableClick = async (val, row) => {
openForm('update', row)
} else if (val == 'delete') {
// 删除
- handleDelete(row.id)
+ handleDelete(row.masterId)
}
}
diff --git a/src/views/wms/countManage/countadjust/countadjustRecordMain/index.vue b/src/views/wms/countManage/countadjust/countadjustRecordMain/index.vue
index bb6fa391e..0e667c036 100644
--- a/src/views/wms/countManage/countadjust/countadjustRecordMain/index.vue
+++ b/src/views/wms/countManage/countadjust/countadjustRecordMain/index.vue
@@ -1,7 +1,7 @@
-
+
@@ -12,11 +12,12 @@
@updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
:allSchemas="CountadjustRecordMain.allSchemas"
+ :detailAllSchemas="CountadjustRecordDetail.allSchemas"
/>
-
@@ -76,7 +77,7 @@ const { t } = useI18n() // 国际化
const route = useRoute() // 路由信息
const routeName = ref()
routeName.value = route.name
-const tableColumns = ref(CountadjustRecordMain.allSchemas.tableColumns)
+const tableColumns = ref([...CountadjustRecordMain.allSchemas.tableColumns,...CountadjustRecordDetail.allSchemas.tableMainColumns])
// 字段设置 更新主列表字段
const updataTableColumns = (val) => {
@@ -84,7 +85,7 @@ const updataTableColumns = (val) => {
}
const { tableObject, tableMethods } = useTable({
- getListApi: CountadjustRecordMainApi.getCountadjustRecordMainPage // 分页接口
+ getListApi: CountadjustRecordDetailApi.getCountadjustRecordDetailPage // 分页接口
})
// 获得表格的各种操作
@@ -125,7 +126,11 @@ const buttonBaseClick = (val, item) => {
}
// 列表-操作按钮
-const butttondata = (row) => {
+const butttondata = (row,$index) => {
+ const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1
+ if(findIndex>0&&findIndex<$index){
+ return []
+ }
return []
}
diff --git a/src/views/wms/countManage/countadjust/countadjustRequestMain/index.vue b/src/views/wms/countManage/countadjust/countadjustRequestMain/index.vue
index dafd918cd..3fbc7808b 100644
--- a/src/views/wms/countManage/countadjust/countadjustRequestMain/index.vue
+++ b/src/views/wms/countManage/countadjust/countadjustRequestMain/index.vue
@@ -1,7 +1,7 @@
-
+
@@ -12,11 +12,12 @@
@updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
:allSchemas="CountadjustRequestMain.allSchemas"
+ :detailAllSchemas="CountadjustRequestDetail.allSchemas"
/>
-
@@ -94,7 +95,7 @@ const { t } = useI18n() // 国际化
const route = useRoute() // 路由信息
const routeName = ref()
routeName.value = route.name
-const tableColumns = ref(CountadjustRequestMain.allSchemas.tableColumns)
+const tableColumns = ref([...CountadjustRequestMain.allSchemas.tableColumns,...CountadjustRequestDetail.allSchemas.tableMainColumns])
// 字段设置 更新主列表字段
const updataTableColumns = (val) => {
@@ -128,7 +129,7 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
const Echo = []
const { tableObject, tableMethods } = useTable({
- getListApi: CountadjustRequestMainApi.getCountadjustRequestMainPage // 分页接口
+ getListApi: CountadjustRequestDetailApi.getCountadjustRequestDetailPage // 分页接口
})
// 获得表格的各种操作
@@ -184,7 +185,11 @@ const isShowMainButton = (row,val) => {
}
// 列表-操作按钮
-const butttondata = (row) => {
+const butttondata = (row,$index) => {
+ const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1
+ if(findIndex>0&&findIndex<$index){
+ return []
+ }
return [
defaultButtons.mainListCloseBtn({hide:isShowMainButton(row,['1','2','3','4','6']),hasPermi:'wms:countadjust-request-main:close'}), // 关闭
defaultButtons.mainListReAddBtn({hide:isShowMainButton(row,['5']),hasPermi:'wms:countadjust-request-main:reAdd'}), //重新添加
@@ -199,7 +204,7 @@ const buttonTableClick = async (val, row) => {
if (val == 'mainClose') { // 关闭
await message.confirm('确认要关闭吗?')
tableObject.loading = true
- CountadjustRequestMainApi.close(row.id).then(() => {
+ CountadjustRequestMainApi.close(row.masterId).then(() => {
message.success(t('关闭成功'))
tableObject.loading = false
getList()
@@ -210,7 +215,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainReAdd') { // 重新添加
await message.confirm('确认要重新添加吗?')
tableObject.loading = true
- CountadjustRequestMainApi.reAdd(row.id).then(() => {
+ CountadjustRequestMainApi.reAdd(row.masterId).then(() => {
message.success(t('添加成功'))
tableObject.loading = false
getList()
@@ -221,7 +226,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainSubmit') { // 提交审批
await message.confirm('确认要提交审批吗?')
tableObject.loading = true
- CountadjustRequestMainApi.submit(row.id).then(() => {
+ CountadjustRequestMainApi.submit(row.masterId).then(() => {
message.success(t('提交审批成功'))
tableObject.loading = false
getList()
@@ -232,7 +237,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainTurnDown') { // 驳回
await message.confirm('确认要驳回吗?')
tableObject.loading = true
- CountadjustRequestMainApi.refused(row.id).then(() => {
+ CountadjustRequestMainApi.refused(row.masterId).then(() => {
message.success(t('驳回成功'))
tableObject.loading = false
getList()
@@ -243,7 +248,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainApprove') { // 审批通过
await message.confirm('确认要审批通过吗?')
tableObject.loading = true
- CountadjustRequestMainApi.agree(row.id).then(() => {
+ CountadjustRequestMainApi.agree(row.masterId).then(() => {
message.success(t('审批已通过'))
tableObject.loading = false
getList()
@@ -254,7 +259,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainHandle') { // 处理
await message.confirm('确认要处理吗?')
tableObject.loading = true
- CountadjustRequestMainApi.handle(row.id).then(() => {
+ CountadjustRequestMainApi.handle(row.masterId).then(() => {
message.success(t('处理成功'))
tableObject.loading = false
getList()
@@ -265,7 +270,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'edit') { // 编辑
openForm('update', row)
} else if (val == 'delete') { // 删除
- handleDelete(row.id)
+ handleDelete(row.masterId)
}
}
diff --git a/src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRecordMain/index.vue b/src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRecordMain/index.vue
index 4964594aa..f01ce986f 100644
--- a/src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRecordMain/index.vue
+++ b/src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRecordMain/index.vue
@@ -1,7 +1,7 @@
-
+
@@ -12,11 +12,12 @@
@updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
:allSchemas="CustomerreceiptRecordMain.allSchemas"
+ :detailAllSchemas="CustomerreceiptRecordDetail.allSchemas"
/>
-
@@ -76,7 +77,7 @@ const { t } = useI18n() // 国际化
const route = useRoute() // 路由信息
const routeName = ref()
routeName.value = route.name
-const tableColumns = ref(CustomerreceiptRecordMain.allSchemas.tableColumns)
+const tableColumns = ref([...CustomerreceiptRecordMain.allSchemas.tableColumns,...CustomerreceiptRecordDetail.allSchemas.tableMainColumns])
// 字段设置 更新主列表字段
const updataTableColumns = (val) => {
@@ -84,7 +85,7 @@ const updataTableColumns = (val) => {
}
const { tableObject, tableMethods } = useTable({
- getListApi: CustomerreceiptRecordMainApi.getCustomerreceiptRecordMainPage // 分页接口
+ getListApi: CustomerreceiptRecordDetailApi.getCustomerreceiptRecordDetailPage // 分页接口
})
// 获得表格的各种操作
@@ -125,7 +126,11 @@ const buttonBaseClick = (val, item) => {
}
// 列表-操作按钮
-const butttondata = (row) => {
+const butttondata = (row,$index) => {
+ const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1
+ if(findIndex>0&&findIndex<$index){
+ return []
+ }
return []
}
diff --git a/src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRequestMain/index.vue b/src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRequestMain/index.vue
index 541d9da6f..13b742b3c 100644
--- a/src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRequestMain/index.vue
+++ b/src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRequestMain/index.vue
@@ -1,7 +1,7 @@
-
+
@@ -12,11 +12,12 @@
@updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
:allSchemas="CustomerreceiptRequestMain.allSchemas"
+ :detailAllSchemas="CustomerreceiptRequestDetail.allSchemas"
/>
-
@@ -95,7 +96,7 @@ const { t } = useI18n() // 国际化
const route = useRoute() // 路由信息
const routeName = ref()
routeName.value = route.name
-const tableColumns = ref(CustomerreceiptRequestMain.allSchemas.tableColumns)
+const tableColumns = ref([...CustomerreceiptRequestMain.allSchemas.tableColumns,...CustomerreceiptRequestDetail.allSchemas.tableMainColumns])
// 字段设置 更新主列表字段
const updataTableColumns = (val) => {
@@ -139,7 +140,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
}
const { tableObject, tableMethods } = useTable({
- getListApi: CustomerreceiptRequestMainApi.getCustomerreceiptRequestMainPage // 分页接口
+ getListApi: CustomerreceiptRequestDetailApi.getCustomerreceiptRequestDetailPage // 分页接口
})
// 获得表格的各种操作
@@ -189,7 +190,11 @@ const isShowMainButton = (row,val) => {
}
// 列表-操作按钮
-const butttondata = (row) => {
+const butttondata = (row,$index) => {
+ const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1
+ if(findIndex>0&&findIndex<$index){
+ return []
+ }
return [
defaultButtons.mainListCloseBtn({hide:isShowMainButton(row,['1','2','3','4','6']),hasPermi:'wms:customerreceipt-request-main:close'}), // 关闭
defaultButtons.mainListReAddBtn({hide:isShowMainButton(row,['4','5']),hasPermi:'wms:customerreceipt-request-main:reAdd'}), //重新添加
@@ -208,7 +213,7 @@ const buttonTableClick = async (val, row) => {
if (val == 'mainClose') { // 关闭
await message.confirm('确认要关闭吗?')
tableObject.loading = true
- CustomerreceiptRequestMainApi.close(row.id).then(() => {
+ CustomerreceiptRequestMainApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@@ -219,7 +224,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainReAdd') { // 重新添加
await message.confirm('确认要重新添加吗?')
tableObject.loading = true
- CustomerreceiptRequestMainApi.reAdd(row.id).then(() => {
+ CustomerreceiptRequestMainApi.reAdd(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@@ -230,7 +235,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainSubmit') { // 提交审批
await message.confirm('确认要提交审批吗?')
tableObject.loading = true
- CustomerreceiptRequestMainApi.submit(row.id).then(() => {
+ CustomerreceiptRequestMainApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@@ -241,7 +246,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainTurnDown') { // 驳回
await message.confirm('确认要驳回吗?')
tableObject.loading = true
- CustomerreceiptRequestMainApi.refused(row.id).then(() => {
+ CustomerreceiptRequestMainApi.refused(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@@ -252,7 +257,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainApprove') { // 审批通过
await message.confirm('确认要审批通过吗?')
tableObject.loading = true
- CustomerreceiptRequestMainApi.agree(row.id).then(() => {
+ CustomerreceiptRequestMainApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@@ -263,7 +268,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainHandle') { // 处理
await message.confirm('确认要处理吗?')
tableObject.loading = true
- CustomerreceiptRequestMainApi.handle(row.id).then(() => {
+ CustomerreceiptRequestMainApi.handle(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@@ -274,7 +279,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'edit') { // 编辑
openForm('update', row)
} else if (val == 'delete') { // 删除
- handleDelete(row.id)
+ handleDelete(row.masterId)
}
}
@@ -376,6 +381,6 @@ const searchFormClick = (searchData) => {
/** 初始化 **/
onMounted(async () => {
getList()
- importTemplateData.templateUrl = await CustomerreceiptRequestMainApi.importTemplate()
+ // importTemplateData.templateUrl = await CustomerreceiptRequestMainApi.importTemplate()
})
diff --git a/src/views/wms/deliversettlementManage/customerreturn/customerreturnJobMain/index.vue b/src/views/wms/deliversettlementManage/customerreturn/customerreturnJobMain/index.vue
index 69ca394c1..2fe03e3cc 100644
--- a/src/views/wms/deliversettlementManage/customerreturn/customerreturnJobMain/index.vue
+++ b/src/views/wms/deliversettlementManage/customerreturn/customerreturnJobMain/index.vue
@@ -1,7 +1,7 @@
-
+
@@ -12,11 +12,12 @@
@updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
:allSchemas="CustomerreturnJobMain.allSchemas"
+ :detailAllSchemas="CustomerreturnJobDetail.allSchemas"
/>
-
@@ -81,7 +82,7 @@ const { t } = useI18n() // 国际化
const route = useRoute() // 路由信息
const routeName = ref()
routeName.value = route.name
-const tableColumns = ref(CustomerreturnJobMain.allSchemas.tableColumns)
+const tableColumns = ref([...CustomerreturnJobMain.allSchemas.tableColumns,...CustomerreturnJobDetail.allSchemas.tableMainColumns])
// 字段设置 更新主列表字段
const updataTableColumns = (val) => {
@@ -128,7 +129,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
const Echo = []
const { tableObject, tableMethods } = useTable({
- getListApi: CustomerreturnJobMainApi.getCustomerreturnJobMainPage // 分页接口
+ getListApi: CustomerreturnJobDetailApi.getCustomerreturnJobDetailPage // 分页接口
})
// 获得表格的各种操作
@@ -178,7 +179,11 @@ const isShowMainButton = (row,val) => {
}
// 列表-操作按钮
-const butttondata = (row) => {
+const butttondata = (row,$index) => {
+ const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1
+ if(findIndex>0&&findIndex<$index){
+ return []
+ }
return [
// defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), // 承接
// defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1'])}), // 关闭
@@ -301,7 +306,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainJobAba') { // 放弃
await message.confirm('确认要放弃吗?')
console.log('列表-操作按钮事件-放弃')
- CustomerreturnJobMainApi.abandonCustomerreturnJobMain(row.id).then(() => {
+ CustomerreturnJobMainApi.abandonCustomerreturnJobMain(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
getList()
}).catch(err => {
@@ -310,7 +315,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainJobClo') { // 关闭
await message.confirm('确认要关闭吗?')
console.log('列表-操作按钮事件-关闭')
- CustomerreturnJobMainApi.closeCustomerreturnJobMain(row.id).then(() => {
+ CustomerreturnJobMainApi.closeCustomerreturnJobMain(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
getList()
}).catch(err => {
@@ -319,7 +324,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainJobAcc') { // 承接
await message.confirm('确认要承接吗?')
console.log('列表-操作按钮事件-承接')
- CustomerreturnJobMainApi.acceptCustomerreturnJobMain(row.id).then(() => {
+ CustomerreturnJobMainApi.acceptCustomerreturnJobMain(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
getList()
}).catch(err => {
diff --git a/src/views/wms/deliversettlementManage/customerreturn/customerreturnRecordMain/index.vue b/src/views/wms/deliversettlementManage/customerreturn/customerreturnRecordMain/index.vue
index 57d4645c8..b3853d769 100644
--- a/src/views/wms/deliversettlementManage/customerreturn/customerreturnRecordMain/index.vue
+++ b/src/views/wms/deliversettlementManage/customerreturn/customerreturnRecordMain/index.vue
@@ -1,7 +1,7 @@
-
+
@@ -12,11 +12,12 @@
@updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
:allSchemas="CustomerreturnRecordMain.allSchemas"
+ :detailAllSchemas="CustomerreturnRecordDetail.allSchemas"
/>
-
@@ -77,7 +78,7 @@ const { t } = useI18n() // 国际化
const route = useRoute() // 路由信息
const routeName = ref()
routeName.value = route.name
-const tableColumns = ref(CustomerreturnRecordMain.allSchemas.tableColumns)
+const tableColumns = ref([...CustomerreturnRecordMain.allSchemas.tableColumns,...CustomerreturnRecordDetail.allSchemas.tableMainColumns])
// 字段设置 更新主列表字段
const updataTableColumns = (val) => {
@@ -85,7 +86,7 @@ const updataTableColumns = (val) => {
}
const { tableObject, tableMethods } = useTable({
- getListApi: CustomerreturnRecordMainApi.getCustomerreturnRecordMainPage // 分页接口
+ getListApi: CustomerreturnRecordDetailApi.getCustomerreturnRecordDetailPage // 分页接口
})
// 获得表格的各种操作
@@ -126,9 +127,14 @@ const buttonBaseClick = (val, item) => {
}
// 列表-操作按钮
-const butttondata = (row) => [
- defaultButtons.mainListDocumentPrintBtn(null), // 标签打印
-]
+const butttondata = (row,$index) => {
+ const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1
+ if(findIndex>0&&findIndex<$index){
+ return []
+ }else{
+ return [defaultButtons.mainListDocumentPrintBtn(null),] // 标签打印
+ }
+}
// 列表-操作按钮事件
const buttonTableClick = async (val, row) => {
@@ -175,7 +181,7 @@ const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const src = ref(BASE_URL + '/jmreport/view/929216638195793920?token=' + getAccessToken())
// 标签打印
const handlePoint = async (row) => {
- window.open(src.value+'&id='+row.id)
+ window.open(src.value+'&id='+row.masterId)
}
/** 初始化 **/
diff --git a/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue b/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue
index 298604960..111edcd25 100644
--- a/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue
+++ b/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue
@@ -1,7 +1,7 @@
-
+
@@ -12,11 +12,12 @@
@updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
:allSchemas="CustomerreturnRequestMain.allSchemas"
+ :detailAllSchemas="CustomerreturnRequestDetail.allSchemas"
/>
-
@@ -98,7 +99,7 @@ const route = useRoute() // 路由信息
const routeName = ref()
const customerCode = ref()
routeName.value = route.name
-const tableColumns = ref(CustomerreturnRequestMain.allSchemas.tableColumns)
+const tableColumns = ref([...CustomerreturnRequestMain.allSchemas.tableColumns,...CustomerreturnRequestDetail.allSchemas.tableMainColumns])
const isShowButton = ref(true)
@@ -195,7 +196,7 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
}
const { tableObject, tableMethods } = useTable({
- getListApi: CustomerreturnRequestMainApi.getCustomerreturnRequestMainPage // 分页接口
+ getListApi: CustomerreturnRequestDetailApi.getCustomerreturnRequestDetailPage // 分页接口
})
// 获得表格的各种操作
@@ -251,7 +252,11 @@ const isShowMainButton = (row,val) => {
}
// 列表-操作按钮
-const butttondata = (row) => {
+const butttondata = (row,$index) => {
+ const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1
+ if(findIndex>0&&findIndex<$index){
+ return []
+ }
return [
defaultButtons.mainListCloseBtn({hide:isShowMainButton(row,['1','2','3','4','6']),hasPermi:'wms:customerreturn-request-main:close'}), // 关闭
defaultButtons.mainListReAddBtn({hide:isShowMainButton(row,['4','5']),hasPermi:'wms:customerreturn-request-main:reAdd'}), // 重新添加
@@ -271,7 +276,7 @@ const buttonTableClick = async (val, row) => {
if (val == 'mainClose') { // 关闭
await message.confirm('确认要关闭吗?')
tableObject.loading = true
- CustomerreturnRequestMainApi.close(row.id).then(() => {
+ CustomerreturnRequestMainApi.close(row.masterId).then(() => {
tableObject.loading = false
message.success(t('common.updateSuccess'))
getList()
@@ -281,7 +286,7 @@ const buttonTableClick = async (val, row) => {
}) } else if (val == 'mainReAdd') { // 重新添加
await message.confirm('确认要重新添加吗?')
tableObject.loading = true
- CustomerreturnRequestMainApi.reAdd(row.id).then(() => {
+ CustomerreturnRequestMainApi.reAdd(row.masterId).then(() => {
tableObject.loading = false
message.success(t('common.updateSuccess'))
getList()
@@ -292,7 +297,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainSubmit') { // 提交审批
await message.confirm('确认要提交审批吗?')
tableObject.loading = true
- CustomerreturnRequestMainApi.submit(row.id).then(() => {
+ CustomerreturnRequestMainApi.submit(row.masterId).then(() => {
tableObject.loading = false
message.success(t('common.updateSuccess'))
getList()
@@ -303,7 +308,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainTurnDown') { // 驳回
await message.confirm('确认要驳回审批吗?')
tableObject.loading = true
- CustomerreturnRequestMainApi.refused(row.id).then(() => {
+ CustomerreturnRequestMainApi.refused(row.masterId).then(() => {
tableObject.loading = false
message.success(t('common.updateSuccess'))
getList()
@@ -314,7 +319,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainApprove') { // 审批通过
await message.confirm('确认要审批通过吗?')
tableObject.loading = true
- CustomerreturnRequestMainApi.agree(row.id).then(() => {
+ CustomerreturnRequestMainApi.agree(row.masterId).then(() => {
tableObject.loading = false
message.success(t('common.updateSuccess'))
getList()
@@ -325,7 +330,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainHandle') { // 处理
await message.confirm('确认要处理吗?')
tableObject.loading = true
- CustomerreturnRequestMainApi.handle(row.id).then(() => {
+ CustomerreturnRequestMainApi.handle(row.masterId).then(() => {
tableObject.loading = false
message.success(t('common.updateSuccess'))
getList()
@@ -336,7 +341,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'edit') { // 编辑
openForm('update', row)
} else if (val == 'delete') { // 删除
- handleDelete(row.id)
+ handleDelete(row.masterId)
}
}
diff --git a/src/views/wms/deliversettlementManage/customersettle/customersettleRecordMain/index.vue b/src/views/wms/deliversettlementManage/customersettle/customersettleRecordMain/index.vue
index cbec73363..86aa9e358 100644
--- a/src/views/wms/deliversettlementManage/customersettle/customersettleRecordMain/index.vue
+++ b/src/views/wms/deliversettlementManage/customersettle/customersettleRecordMain/index.vue
@@ -1,7 +1,7 @@
-
+
@@ -12,11 +12,12 @@
@updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
:allSchemas="CustomersettleRecordMain.allSchemas"
+ :detailAllSchemas="CustomersettleRecordDetail.allSchemas"
/>
-
@@ -76,7 +77,7 @@ const { t } = useI18n() // 国际化
const route = useRoute() // 路由信息
const routeName = ref()
routeName.value = route.name
-const tableColumns = ref(CustomersettleRecordMain.allSchemas.tableColumns)
+const tableColumns = ref([...CustomersettleRecordMain.allSchemas.tableColumns,...CustomersettleRecordDetail.allSchemas.tableMainColumns])
// 字段设置 更新主列表字段
const updataTableColumns = (val) => {
@@ -84,7 +85,7 @@ const updataTableColumns = (val) => {
}
const { tableObject, tableMethods } = useTable({
- getListApi: CustomersettleRecordMainApi.getCustomersettleRecordMainPage // 分页接口
+ getListApi: CustomersettleRecordDetailApi.getCustomersettleRecordDetailPage // 分页接口
})
// 获得表格的各种操作
@@ -125,7 +126,11 @@ const buttonBaseClick = (val, item) => {
}
// 列表-操作按钮
-const butttondata = (row) => {
+const butttondata = (row,$index) => {
+ const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1
+ if(findIndex>0&&findIndex<$index){
+ return []
+ }
return []
}
diff --git a/src/views/wms/deliversettlementManage/customersettle/customersettleRequestMain/index.vue b/src/views/wms/deliversettlementManage/customersettle/customersettleRequestMain/index.vue
index bd88f4f6f..b217e8c72 100644
--- a/src/views/wms/deliversettlementManage/customersettle/customersettleRequestMain/index.vue
+++ b/src/views/wms/deliversettlementManage/customersettle/customersettleRequestMain/index.vue
@@ -1,7 +1,7 @@
-
+
@@ -12,11 +12,12 @@
@updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
:allSchemas="CustomersettleRequestMain.allSchemas"
+ :detailAllSchemas="CustomersettleRequestDetail.allSchemas"
/>
-
@@ -96,7 +97,7 @@ const { t } = useI18n() // 国际化
const route = useRoute() // 路由信息
const routeName = ref()
routeName.value = route.name
-const tableColumns = ref(CustomersettleRequestMain.allSchemas.tableColumns)
+const tableColumns = ref([...CustomersettleRequestMain.allSchemas.tableColumns,...CustomersettleRequestDetail.allSchemas.tableMainColumns])
// 字段设置 更新主列表字段
const updataTableColumns = (val) => {
@@ -148,7 +149,7 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
const Echo = []
const { tableObject, tableMethods } = useTable({
- getListApi: CustomersettleRequestMainApi.getCustomersettleRequestMainPage // 分页接口
+ getListApi: CustomersettleRequestDetailApi.getCustomersettleRequestDetailPage // 分页接口
})
// 获得表格的各种操作
@@ -205,7 +206,11 @@ const isShowMainButton = (row,val) => {
}
// 列表-操作按钮
-const butttondata = (row) => {
+const butttondata = (row,$index) => {
+ const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1
+ if(findIndex>0&&findIndex<$index){
+ return []
+ }
return [
defaultButtons.mainListCloseBtn({hide:isShowMainButton(row,['1','2','3','4','6']),hasPermi:'wms:customersettle-request-main:close'}), // 关闭
defaultButtons.mainListReAddBtn({hide:isShowMainButton(row,['4','5']),hasPermi:'wms:customersettle-request-main:reAdd'}), //重新添加
@@ -224,7 +229,7 @@ const buttonTableClick = async (val, row) => {
if (val == 'mainClose') { // 关闭
await message.confirm('确认要关闭吗?')
tableObject.loading = true
- CustomersettleRequestMainApi.close(row.id).then(() => {
+ CustomersettleRequestMainApi.close(row.masterId).then(() => {
tableObject.loading = false
message.success(t('common.updateSuccess'))
getList()
@@ -234,7 +239,7 @@ const buttonTableClick = async (val, row) => {
}) } else if (val == 'mainReAdd') { // 重新添加
await message.confirm('确认要重新添加吗?')
tableObject.loading = true
- CustomersettleRequestMainApi.reAdd(row.id).then(() => {
+ CustomersettleRequestMainApi.reAdd(row.masterId).then(() => {
tableObject.loading = false
message.success(t('common.updateSuccess'))
getList()
@@ -245,7 +250,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainSubmit') { // 提交审批
await message.confirm('确认要提交审批吗?')
tableObject.loading = true
- CustomersettleRequestMainApi.submit(row.id).then(() => {
+ CustomersettleRequestMainApi.submit(row.masterId).then(() => {
tableObject.loading = false
message.success(t('common.updateSuccess'))
getList()
@@ -256,7 +261,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainTurnDown') { // 驳回
await message.confirm('确认要重新添加吗?')
tableObject.loading = true
- CustomersettleRequestMainApi.refused(row.id).then(() => {
+ CustomersettleRequestMainApi.refused(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
getList()
}).catch(err => {
@@ -264,7 +269,7 @@ const buttonTableClick = async (val, row) => {
})
} else if (val == 'mainApprove') { // 审批通过
tableObject.loading = true
- CustomersettleRequestMainApi.agree(row.id).then(() => {
+ CustomersettleRequestMainApi.agree(row.masterId).then(() => {
tableObject.loading = false
message.success(t('common.updateSuccess'))
getList()
@@ -274,7 +279,7 @@ const buttonTableClick = async (val, row) => {
})
} else if (val == 'mainHandle') { // 处理
tableObject.loading = true
- CustomersettleRequestMainApi.handle(row.id).then(() => {
+ CustomersettleRequestMainApi.handle(row.masterId).then(() => {
tableObject.loading = false
message.success(t('common.updateSuccess'))
getList()
@@ -285,7 +290,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'edit') { // 编辑
openForm('update', row)
} else if (val == 'delete') { // 删除
- handleDelete(row.id)
+ handleDelete(row.masterId)
}
}
diff --git a/src/views/wms/deliversettlementManage/deliver/deliverJobMain/index.vue b/src/views/wms/deliversettlementManage/deliver/deliverJobMain/index.vue
index 475aebf20..304c98e19 100644
--- a/src/views/wms/deliversettlementManage/deliver/deliverJobMain/index.vue
+++ b/src/views/wms/deliversettlementManage/deliver/deliverJobMain/index.vue
@@ -1,7 +1,7 @@
-
+
@@ -12,11 +12,12 @@
@updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
:allSchemas="DeliverJobMain.allSchemas"
+ :detailAllSchemas="DeliverJobDetail.allSchemas"
/>
-
@@ -81,7 +82,7 @@ const { t } = useI18n() // 国际化
const route = useRoute() // 路由信息
const routeName = ref()
routeName.value = route.name
-const tableColumns = ref(DeliverJobMain.allSchemas.tableColumns)
+const tableColumns = ref([...DeliverJobMain.allSchemas.tableColumns,...DeliverJobDetail.allSchemas.tableMainColumns])
// 字段设置 更新主列表字段
const updataTableColumns = (val) => {
@@ -128,7 +129,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
const Echo = []
const { tableObject, tableMethods } = useTable({
- getListApi: DeliverJobMainApi.getDeliverJobMainPage // 分页接口
+ getListApi: DeliverJobDetailApi.getDeliverJobDetailPage // 分页接口
})
// 获得表格的各种操作
@@ -178,12 +179,16 @@ const isShowMainButton = (row,val) => {
}
// 列表-操作按钮
-const butttondata = (row) => {
+const butttondata = (row,$index) => {
+ const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1
+ if(findIndex>0&&findIndex<$index){
+ return []
+ }
return [
- defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), // 承接
- defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1'])}), // 关闭
- defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), // 放弃
- defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), // 执行
+ // defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), // 承接
+ // defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1'])}), // 关闭
+ // defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), // 放弃
+ // defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), // 执行
]
}
@@ -286,11 +291,11 @@ const buttonTableClick = async (val, row) => {
handleHandle(aaa)
console.log('列表-操作按钮事件-执行')
} else if (val == 'mainJobAba') { // 放弃
- DeliverJobMainApi.abandonDeliverJobMain(row.id)
+ DeliverJobMainApi.abandonDeliverJobMain(row.masterId)
} else if (val == 'mainJobClo') { // 关闭
- DeliverJobMainApi.closeDeliverJobMain(row.id)
+ DeliverJobMainApi.closeDeliverJobMain(row.masterId)
} else if (val == 'mainJobAcc') { // 承接
- DeliverJobMainApi.acceptDeliverJobMain(row.id)
+ DeliverJobMainApi.acceptDeliverJobMain(row.masterId)
}
}
// 获取部门 用于详情 部门回显
diff --git a/src/views/wms/deliversettlementManage/deliver/deliverRecordMain/index.vue b/src/views/wms/deliversettlementManage/deliver/deliverRecordMain/index.vue
index 1677d269a..ef6bf3ea3 100644
--- a/src/views/wms/deliversettlementManage/deliver/deliverRecordMain/index.vue
+++ b/src/views/wms/deliversettlementManage/deliver/deliverRecordMain/index.vue
@@ -1,7 +1,7 @@
-
+
@@ -12,11 +12,12 @@
@updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
:allSchemas="DeliverRecordMain.allSchemas"
+ :detailAllSchemas="DeliverRecordDetail.allSchemas"
/>
-
@@ -77,7 +78,7 @@ const { t } = useI18n() // 国际化
const route = useRoute() // 路由信息
const routeName = ref()
routeName.value = route.name
-const tableColumns = ref(DeliverRecordMain.allSchemas.tableColumns)
+const tableColumns = ref([...DeliverRecordMain.allSchemas.tableColumns,...DeliverRecordDetail.allSchemas.tableMainColumns])
// 字段设置 更新主列表字段
const updataTableColumns = (val) => {
@@ -85,7 +86,7 @@ const updataTableColumns = (val) => {
}
const { tableObject, tableMethods } = useTable({
- getListApi: DeliverRecordMainApi.getDeliverRecordMainPage // 分页接口
+ getListApi: DeliverRecordDetailApi.getDeliverRecordDetailPage // 分页接口
})
// 获得表格的各种操作
@@ -126,9 +127,14 @@ const buttonBaseClick = (val, item) => {
}
// 列表-操作按钮
-const butttondata = (row) => [
- defaultButtons.mainListDocumentPrintBtn(null), // 标签打印
-]
+const butttondata = (row,$index) => {
+ const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1
+ if(findIndex>0&&findIndex<$index){
+ return []
+ }else{
+ return [defaultButtons.mainListDocumentPrintBtn(null),] // 标签打印
+ }
+}
// 列表-操作按钮事件
const buttonTableClick = async (val, row) => {
@@ -166,7 +172,7 @@ const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const src = ref(BASE_URL + '/jmreport/view/929209659733770240?token=' + getAccessToken())
// 标签打印
const handlePoint = async (row) => {
- window.open(src.value+'&id='+row.id)
+ window.open(src.value+'&id='+row.masterId)
}
// 筛选提交
diff --git a/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue b/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue
index 93e8f655b..7e93906b9 100644
--- a/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue
+++ b/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue
@@ -1,7 +1,7 @@
-
+
@@ -12,11 +12,12 @@
@updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
:allSchemas="DeliverRequestMain.allSchemas"
+ :detailAllSchemas="DeliverRequestDetail.allSchemas"
/>
-
@@ -101,7 +102,7 @@ const route = useRoute() // 路由信息
const routeName = ref()
routeName.value = route.name
const customerCode = ref()
-const tableColumns = ref(DeliverRequestMain.allSchemas.tableColumns)
+const tableColumns = ref([...DeliverRequestMain.allSchemas.tableColumns,...DeliverRequestDetail.allSchemas.tableMainColumns])
const isShowButton = ref(true)
@@ -202,7 +203,7 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
}
const { tableObject, tableMethods } = useTable({
- getListApi: DeliverRequestMainApi.getDeliverRequestMainPage // 分页接口
+ getListApi: DeliverRequestDetailApi.getDeliverRequestDetailPage // 分页接口
})
// 获得表格的各种操作
@@ -259,7 +260,11 @@ const isShowMainButton = (row,val) => {
}
// 列表-操作按钮
-const butttondata = (row) => {
+const butttondata = (row,$index) => {
+ const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1
+ if(findIndex>0&&findIndex<$index){
+ return []
+ }
return [
defaultButtons.mainListCloseBtn({hide:isShowMainButton(row,['1','2','3','4','6']),hasPermi:'wms:deliver-request-main:close'}), // 关闭
defaultButtons.mainListReAddBtn({hide:isShowMainButton(row,['4','5']),hasPermi:'wms:deliver-request-main:reAdd'}), //重新添加
@@ -279,7 +284,7 @@ const buttonTableClick = async (val, row) => {
if (val == 'mainClose') { // 关闭
await message.confirm('确认要关闭吗?')
tableObject.loading = true
- DeliverRequestMainApi.close(row.id).then(() => {
+ DeliverRequestMainApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@@ -290,7 +295,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainReAdd') { // 重新添加
await message.confirm('确认要重新添加吗?')
tableObject.loading = true
- DeliverRequestMainApi.reAdd(row.id).then(() => {
+ DeliverRequestMainApi.reAdd(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@@ -301,7 +306,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainSubmit') { // 提交审批
await message.confirm('确认要提交审批吗?')
tableObject.loading = true
- DeliverRequestMainApi.submit(row.id).then(() => {
+ DeliverRequestMainApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@@ -312,7 +317,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainTurnDown') { // 驳回
await message.confirm('确认要驳回吗?')
tableObject.loading = true
- DeliverRequestMainApi.refused(row.id).then(() => {
+ DeliverRequestMainApi.refused(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@@ -323,7 +328,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainApprove') { // 审批通过
await message.confirm('确认要审批通过吗?')
tableObject.loading = true
- DeliverRequestMainApi.agree(row.id).then(() => {
+ DeliverRequestMainApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@@ -334,7 +339,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainHandle') { // 处理
await message.confirm('确认要 处理吗?')
tableObject.loading = true
- DeliverRequestMainApi.handle(row.id).then(() => {
+ DeliverRequestMainApi.handle(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@@ -345,7 +350,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'edit') { // 编辑
openForm('update', row)
} else if (val == 'delete') { // 删除
- handleDelete(row.id)
+ handleDelete(row.masterId)
}
}
diff --git a/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/deliverPlanMain.data.ts b/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/deliverPlanMain.data.ts
index b0e0a87fc..bca93fa19 100644
--- a/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/deliverPlanMain.data.ts
+++ b/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/deliverPlanMain.data.ts
@@ -206,6 +206,7 @@ export const DeliverPlanMain = useCrudSchemas(reactive([
dictType: DICT_TYPE.PLAN_STATUS,
dictClass: 'string',
isSearch: true,
+ isForm:false,
},
{
label: '是否可用',
diff --git a/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue b/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue
index df2e09909..30cfcedd4 100644
--- a/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue
+++ b/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue
@@ -1,7 +1,7 @@
-
+
@@ -12,11 +12,12 @@
@updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
:allSchemas="DeliverPlanMain.allSchemas"
+ :detailAllSchemas="DeliverPlanDetail.allSchemas"
/>
-
@@ -92,7 +93,7 @@ const route = useRoute() // 路由信息
const routeName = ref()
routeName.value = route.name
const customerCode = ref()
-const tableColumns = ref(DeliverPlanMain.allSchemas.tableColumns)
+const tableColumns = ref([...DeliverPlanMain.allSchemas.tableColumns,...DeliverPlanDetail.allSchemas.tableMainColumns])
// 字段设置 更新主列表字段
const updataTableColumns = (val) => {
@@ -153,7 +154,7 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
const Echo = []
const { tableObject, tableMethods } = useTable({
- getListApi: DeliverPlanMainApi.getDeliverPlanMainPage // 分页接口
+ getListApi: DeliverPlanDetailApi.getDeliverPlanDetailPage // 分页接口
})
// 获得表格的各种操作
@@ -209,7 +210,11 @@ const isShowMainButton = (row,val) => {
}
// 列表-操作按钮
-const butttondata = (row) => {
+const butttondata = (row,$index) => {
+ const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1
+ if(findIndex>0&&findIndex<$index){
+ return []
+ }
return [
defaultButtons.mainListPlanOpeBtn({hide:isShowMainButton(row,['5']),hasPermi:'wms:deliver-plan-main:open'}), // 打开
defaultButtons.mainListPlanCloBtn({hide:isShowMainButton(row,['1','2','3','4']),hasPermi:'wms:deliver-plan-main:close'}), // 关闭
@@ -226,7 +231,7 @@ const butttondata = (row) => {
const buttonTableClick = async (val, row) => {
if (val == 'mainPlanOpe') { // 打开
tableObject.loading = true
- DeliverPlanMainApi.open(row.id).then(() => {
+ DeliverPlanMainApi.open(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@@ -237,7 +242,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainPlanClo') { // 关闭
await message.confirm('确认要关闭吗?')
tableObject.loading = true
- DeliverPlanMainApi.close(row.id).then(() => {
+ DeliverPlanMainApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@@ -248,7 +253,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainPlanSub') { // 提交审批
await message.confirm('确认要提交审批吗?')
tableObject.loading = true
- DeliverPlanMainApi.submit(row.id).then(() => {
+ DeliverPlanMainApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@@ -259,7 +264,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainPlanTur') { // 驳回
await message.confirm('确认要驳回吗?')
tableObject.loading = true
- DeliverPlanMainApi.reject(row.id).then(() => {
+ DeliverPlanMainApi.reject(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@@ -270,7 +275,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainPlanApp') { // 审批通过
await message.confirm('确认要审批通过吗?')
tableObject.loading = true
- DeliverPlanMainApi.agree(row.id).then(() => {
+ DeliverPlanMainApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@@ -281,7 +286,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainPlanPub') { // 发布
await message.confirm('确认要发布吗?')
tableObject.loading = true
- DeliverPlanMainApi.publish(row.id).then(() => {
+ DeliverPlanMainApi.publish(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@@ -292,7 +297,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainPlanRes') { // 重置
await message.confirm('确认要重置吗?')
tableObject.loading = true
- DeliverPlanMainApi.resetting(row.id).then(() => {
+ DeliverPlanMainApi.resetting(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@@ -303,7 +308,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'edit') { // 编辑
openForm('update', row)
} else if (val == 'delete') { // 删除
- handleDelete(row.id)
+ handleDelete(row.masterId)
}
}
diff --git a/src/views/wms/deliversettlementManage/deliverplan/saleMain/index.vue b/src/views/wms/deliversettlementManage/deliverplan/saleMain/index.vue
index 5e9f21dec..721ca03ec 100644
--- a/src/views/wms/deliversettlementManage/deliverplan/saleMain/index.vue
+++ b/src/views/wms/deliversettlementManage/deliverplan/saleMain/index.vue
@@ -16,7 +16,7 @@
-
-
+
@@ -12,11 +12,12 @@
@updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
:allSchemas="StockupMainJob.allSchemas"
+ :detailAllSchemas="StockupDetailJob.allSchemas"
/>
-
@@ -82,7 +83,7 @@ const { t } = useI18n() // 国际化
const route = useRoute() // 路由信息
const routeName = ref()
routeName.value = route.name
-const tableColumns = ref(StockupMainJob.allSchemas.tableColumns)
+const tableColumns = ref([...StockupMainJob.allSchemas.tableColumns,...StockupDetailJob.allSchemas.tableMainColumns])
// 字段设置 更新主列表字段
const updataTableColumns = (val) => {
@@ -129,7 +130,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
const Echo = []
const { tableObject, tableMethods } = useTable({
- getListApi: StockupJobMainApi.getStockupMainJobPage // 分页接口
+ getListApi: StockupJobDetailApi.getStockupDetailJobPage // 分页接口
})
// 获得表格的各种操作
@@ -179,7 +180,11 @@ const isShowMainButton = (row,val) => {
}
// 列表-操作按钮
-const butttondata = (row) => {
+const butttondata = (row,$index) => {
+ const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1
+ if(findIndex>0&&findIndex<$index){
+ return []
+ }
return [
// defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), // 承接
// defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1'])}), // 关闭
@@ -193,11 +198,11 @@ const buttonTableClick = async (val, row) => {
if (val == 'mainJobExe') { // 执行
handleHandle
} else if (val == 'mainJobAba') { // 放弃
- StockupJobMainApi.abandonStockupMainJob(row.id)
+ StockupJobMainApi.abandonStockupMainJob(row.masterId)
} else if (val == 'mainJobClo') { // 关闭
- StockupJobMainApi.closeStockupMainJob(row.id)
+ StockupJobMainApi.closeStockupMainJob(row.masterId)
} else if (val == 'mainJobAcc') { // 承接
- StockupJobMainApi.acceptStockupMainJob(row.id)
+ StockupJobMainApi.acceptStockupMainJob(row.masterId)
}
}
// 获取部门 用于详情 部门回显
diff --git a/src/views/wms/deliversettlementManage/stockup/stockupMainRecord/index.vue b/src/views/wms/deliversettlementManage/stockup/stockupMainRecord/index.vue
index 6ba0203ae..136e068e8 100644
--- a/src/views/wms/deliversettlementManage/stockup/stockupMainRecord/index.vue
+++ b/src/views/wms/deliversettlementManage/stockup/stockupMainRecord/index.vue
@@ -1,7 +1,7 @@
-
+
@@ -12,11 +12,12 @@
@updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
:allSchemas="StockupMainRecord.allSchemas"
+ :detailAllSchemas="StockupDetailRecord.allSchemas"
/>
-
@@ -77,7 +78,7 @@ const { t } = useI18n() // 国际化
const route = useRoute() // 路由信息
const routeName = ref()
routeName.value = route.name
-const tableColumns = ref(StockupMainRecord.allSchemas.tableColumns)
+const tableColumns = ref([...StockupMainRecord.allSchemas.tableColumns,...StockupDetailRecord.allSchemas.tableMainColumns])
// 字段设置 更新主列表字段
const updataTableColumns = (val) => {
@@ -85,7 +86,7 @@ const updataTableColumns = (val) => {
}
const { tableObject, tableMethods } = useTable({
- getListApi: StockupMainRecordApi.getStockupMainRecordPage // 分页接口
+ getListApi: StockupDetailRecordApi.getStockupDetailRecordPage // 分页接口
})
// 获得表格的各种操作
@@ -126,7 +127,11 @@ const buttonBaseClick = (val, item) => {
}
// 列表-操作按钮
-const butttondata = (row) => {
+const butttondata = (row,$index) => {
+ const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1
+ if(findIndex>0&&findIndex<$index){
+ return []
+ }
return []
}
diff --git a/src/views/wms/deliversettlementManage/stockup/stockupMainRequest/index.vue b/src/views/wms/deliversettlementManage/stockup/stockupMainRequest/index.vue
index 648331491..d6549f63a 100644
--- a/src/views/wms/deliversettlementManage/stockup/stockupMainRequest/index.vue
+++ b/src/views/wms/deliversettlementManage/stockup/stockupMainRequest/index.vue
@@ -1,7 +1,7 @@
-
+
@@ -12,11 +12,12 @@
@updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
:allSchemas="StockupMainRequest.allSchemas"
+ :detailAllSchemas="StockupDetailRequest.allSchemas"
/>
-
@@ -100,7 +101,7 @@ const { t } = useI18n() // 国际化
const route = useRoute() // 路由信息
const routeName = ref()
routeName.value = route.name
-const tableColumns = ref(StockupMainRequest.allSchemas.tableColumns)
+const tableColumns = ref([...StockupMainRequest.allSchemas.tableColumns,...StockupDetailRequest.allSchemas.tableMainColumns])
const isShowButton = ref(true)
@@ -171,7 +172,7 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
}
const { tableObject, tableMethods } = useTable({
- getListApi: StockupMainRequestApi.getStockupMainRequestPage // 分页接口
+ getListApi: StockupDetailRequestApi.getStockupDetailRequestPage // 分页接口
})
// 获得表格的各种操作
@@ -228,7 +229,11 @@ const isShowMainButton = (row,val) => {
}
// 列表-操作按钮
-const butttondata = (row) => {
+const butttondata = (row,$index) => {
+ const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1
+ if(findIndex>0&&findIndex<$index){
+ return []
+ }
return [
defaultButtons.mainListCloseBtn({hide:isShowMainButton(row,['1','2','3','4','6']),hasPermi:'wms:stockup-main-request:close'}), // 关闭
defaultButtons.mainListReAddBtn({hide:isShowMainButton(row,['4','5']),hasPermi:'wms:stockup-main-request:reAdd'}), //重新添加
@@ -248,7 +253,7 @@ const buttonTableClick = async (val, row) => {
if (val == 'mainClose') { // 关闭
await message.confirm('确认要关闭吗?')
tableObject.loading = true
- StockupMainRequestApi.close(row.id).then(() => {
+ StockupMainRequestApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@@ -259,7 +264,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainReAdd') { // 重新添加
await message.confirm('确认要重新添加吗?')
tableObject.loading = true
- StockupMainRequestApi.reAdd(row.id).then(() => {
+ StockupMainRequestApi.reAdd(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@@ -270,7 +275,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainSubmit') { // 提交审批
await message.confirm('确认要提交审批吗?')
tableObject.loading = true
- StockupMainRequestApi.submit(row.id).then(() => {
+ StockupMainRequestApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@@ -281,7 +286,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainTurnDown') { // 驳回
await message.confirm('确认要驳回吗?')
tableObject.loading = true
- StockupMainRequestApi.refused(row.id).then(() => {
+ StockupMainRequestApi.refused(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@@ -292,7 +297,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainApprove') { // 审批通过
await message.confirm('确认要审批通过吗?')
tableObject.loading = true
- StockupMainRequestApi.agree(row.id).then(() => {
+ StockupMainRequestApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@@ -303,7 +308,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainHandle') { // 处理
await message.confirm('确认要处理吗?')
tableObject.loading = true
- StockupMainRequestApi.handle(row.id).then(() => {
+ StockupMainRequestApi.handle(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@@ -314,7 +319,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'edit') { // 编辑
openForm('update', row)
} else if (val == 'delete') { // 删除
- handleDelete(row.id)
+ handleDelete(row.masterId)
}
}
diff --git a/src/views/wms/deliversettlementManage/stockup/stockupMainRequest/stockupMainRequest.data.ts b/src/views/wms/deliversettlementManage/stockup/stockupMainRequest/stockupMainRequest.data.ts
index c9f1f60d3..eafa982ad 100644
--- a/src/views/wms/deliversettlementManage/stockup/stockupMainRequest/stockupMainRequest.data.ts
+++ b/src/views/wms/deliversettlementManage/stockup/stockupMainRequest/stockupMainRequest.data.ts
@@ -283,7 +283,6 @@ export const StockupMainRequest = useCrudSchemas(reactive([
table: {
width: 150
},
- isForm: false,
},
{
label: '备注',
diff --git a/src/views/wms/inventoryManage/balance/balance.data.ts b/src/views/wms/inventoryManage/balance/balance.data.ts
index 8aaf79117..4845a516e 100644
--- a/src/views/wms/inventoryManage/balance/balance.data.ts
+++ b/src/views/wms/inventoryManage/balance/balance.data.ts
@@ -429,7 +429,7 @@ export const Balance = useCrudSchemas(reactive([
isDetail: false,
isForm: false,
table: {
- width: 100,
+ width: 200,
fixed: 'right'
},
}
diff --git a/src/views/wms/inventoryManage/balance/index.vue b/src/views/wms/inventoryManage/balance/index.vue
index 22ef6d0f9..54cc59455 100644
--- a/src/views/wms/inventoryManage/balance/index.vue
+++ b/src/views/wms/inventoryManage/balance/index.vue
@@ -16,7 +16,7 @@
-
import download from '@/utils/download'
import * as BalanceApi from '@/api/wms/balance'
+import * as PackageApi from '@/api/wms/package'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Balance, BalanceRules } from './balance.data'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
+import { getAccessToken } from '@/utils/auth'
// 库存余额
defineOptions({ name: 'Balance' })
@@ -142,6 +144,7 @@ const butttondata = [
float:'right',
hasPermi: ''
},
+ defaultButtons.mainListPointBtn(null), // 标签打印
// defaultButtons.mainListEditBtn({hasPermi:'wms:balance:update'}), // 编辑
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:balance:delete'}), // 删除
]
@@ -151,6 +154,8 @@ const buttonTableClick = async (val, row) => {
if (val == 'bqxx') {
let aaa = 'HPQ;V1.0;I'+row.itemCode+';P'+row.packingNumber+';B'+row.batch+';Q'+row.qty+';U'+row.uom
alert(aaa)
+ }else if (val == 'point') { // 标签打印
+ handlePoint(row)
}
// if (val == 'edit') { // 编辑
// // const res = await BalanceApi.getItempackaging(row.id)
@@ -172,6 +177,24 @@ const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue,'transactionBalance')
}
+const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
+
+// 标签打印
+const handlePoint = async (row) => {
+ console.log(row.packingNumber,445555555555555);
+ PackageApi.getBalanceToPackage(row.packingNumber).then(res => {
+ console.log(res,66666666666);
+ // 判断是采购还是制造
+ if (res.asnNumber !== null && res.asnNumber !== '') {
+ const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken())
+ window.open(src.value+'&id='+res.id)
+ } else {
+ const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken())
+ window.open(src.value+'&id='+res.id)
+ }
+ })
+}
+
/** 删除按钮操作 */
const handleDelete = async (id: number) => {
try {
diff --git a/src/views/wms/inventoryManage/containerinit/containerBindRecord/index.vue b/src/views/wms/inventoryManage/containerinit/containerBindRecord/index.vue
index 0508920b2..69c3ea953 100644
--- a/src/views/wms/inventoryManage/containerinit/containerBindRecord/index.vue
+++ b/src/views/wms/inventoryManage/containerinit/containerBindRecord/index.vue
@@ -16,7 +16,7 @@
-
-
-
-
-
-
-
-
{
if (val == 'add') { // 新增
openForm('create')
+ } else if (val == 'update') { // 导入
+ openForm('update')
} else if (val == 'import') { // 导入
handleImport()
} else if (val == 'export') { // 导出
@@ -149,18 +151,10 @@ const buttonBaseClick = (val, item) => {
// }
// }
-// 列表-操作按钮
-// const butttondata = (row) => {
-// return [
-// defaultButtons.mainListEditBtn({hasPermi:'wms:package:update'}), // 编辑
-// defaultButtons.mainListDeleteBtn({hasPermi:'wms:package:delete'}), // 删除
-// defaultButtons.mainListPointBtn(null), // 标签打印
-// ]
-// }
// 列表-操作按钮
const butttondata = [
- // defaultButtons.mainListEditBtn({hasPermi:'wms:package:update'}), // 编辑
+ defaultButtons.mainListEditBtn({hasPermi:'wms:package:update'}), // 编辑
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:package:delete'}), // 删除
defaultButtons.mainListPointBtn(null), // 标签打印
]
@@ -179,6 +173,31 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm =async (type: string, row?: number) => {
+ if(type == "update"){
+ Package.allSchemas.formSchema.forEach((item) => {
+ if (item.field == 'number') {
+ item.componentProps.disabled = true
+ }
+ if (item.field == 'itemCode') {
+ item.componentProps.disabled = true
+ }
+ if (item.field == 'itemName') {
+ item.componentProps.disabled = true
+ }
+ })
+ }else {
+ Package.allSchemas.formSchema.forEach((item) => {
+ if (item.field == 'number') {
+ item.componentProps.disabled = false
+ }
+ if (item.field == 'itemCode') {
+ item.componentProps.disabled = true
+ }
+ if (item.field == 'itemName') {
+ item.componentProps.disabled = true
+ }
+ })
+ }
basicFormRef.value.open(type, row)
}
@@ -221,8 +240,23 @@ const handleExport = async () => {
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
+// form表单提交
+const formsSuccess = async (formType,data) => {
+ if (formType === 'create') {
+ await PackageApi.createPackage(data)
+ message.success(t('common.createSuccess'))
+ } else {
+ await message.confirm('包装修改后需重新打印标签,是否继续保存?')
+ await PackageApi.updatePackage(data)
+ message.success(t('包装信息已修改,请重新打印标签'))
+ }
+ basicFormRef.value.dialogVisible = false
+ getList()
+}
// 标签打印
const handlePoint = async (row) => {
+ console.log(row,66666666666);
+
// 判断是采购还是制造
if (row.asnNumber !== null && row.asnNumber !== '') {
const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken())
diff --git a/src/views/wms/inventoryManage/transaction/index.vue b/src/views/wms/inventoryManage/transaction/index.vue
index 3333d94ce..e2a013804 100644
--- a/src/views/wms/inventoryManage/transaction/index.vue
+++ b/src/views/wms/inventoryManage/transaction/index.vue
@@ -16,7 +16,7 @@
-
-
-
+
@@ -12,11 +12,12 @@
@updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
:allSchemas="InventoryinitRecordMain.allSchemas"
+ :detailAllSchemas="InventoryinitRecordDetail.allSchemas"
/>
-
@@ -76,7 +77,7 @@ const { t } = useI18n() // 国际化
const route = useRoute() // 路由信息
const routeName = ref()
routeName.value = route.name
-const tableColumns = ref(InventoryinitRecordMain.allSchemas.tableColumns)
+const tableColumns = ref([...InventoryinitRecordMain.allSchemas.tableColumns,...InventoryinitRecordDetail.allSchemas.tableMainColumns])
// 字段设置 更新主列表字段
const updataTableColumns = (val) => {
@@ -84,7 +85,7 @@ const updataTableColumns = (val) => {
}
const { tableObject, tableMethods } = useTable({
- getListApi: InventoryinitRecordMainApi.getInventoryinitRecordMainPage // 分页接口
+ getListApi: InventoryinitRecordDetailApi.getInventoryinitRecordDetailPage // 分页接口
})
// 获得表格的各种操作
@@ -125,7 +126,11 @@ const buttonBaseClick = (val, item) => {
}
// 列表-操作按钮
-const butttondata = (row) => {
+const butttondata = (row,$index) => {
+ const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1
+ if(findIndex>0&&findIndex<$index){
+ return []
+ }
return []
}
diff --git a/src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/index.vue b/src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/index.vue
index 527706479..d3b6281a7 100644
--- a/src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/index.vue
+++ b/src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/index.vue
@@ -1,7 +1,7 @@
-
+
@@ -12,11 +12,12 @@
@updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
:allSchemas="InventoryinitRequestMain.allSchemas"
+ :detailAllSchemas="InventoryinitRequestDetail.allSchemas"
/>
-
@@ -93,7 +94,7 @@ const { t } = useI18n() // 国际化
const route = useRoute() // 路由信息
const routeName = ref()
routeName.value = route.name
-const tableColumns = ref(InventoryinitRequestMain.allSchemas.tableColumns)
+const tableColumns = ref([...InventoryinitRequestMain.allSchemas.tableColumns,...InventoryinitRequestDetail.allSchemas.tableMainColumns])
// 字段设置 更新主列表字段
const updataTableColumns = (val) => {
@@ -129,7 +130,7 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
const Echo = []
const { tableObject, tableMethods } = useTable({
- getListApi: InventoryinitRequestMainApi.getInventoryinitRequestMainPage // 分页接口
+ getListApi: InventoryinitRequestDetailApi.getInventoryinitRequestDetailPage // 分页接口
})
// 获得表格的各种操作
@@ -185,7 +186,11 @@ const isShowMainButton = (row,val) => {
}
// 列表-操作按钮
-const butttondata = (row) => {
+const butttondata = (row,$index) => {
+ const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1
+ if(findIndex>0&&findIndex<$index){
+ return []
+ }
return [
defaultButtons.mainListCloseBtn({hide:isShowMainButton(row,['1','2','3','4','6']),hasPermi:'wms:inventoryinit-request-main:close'}), // 关闭
defaultButtons.mainListReAddBtn({hide:isShowMainButton(row,['5']),hasPermi:'wms:inventoryinit-request-main:reAdd'}), //重新添加
@@ -201,17 +206,17 @@ const butttondata = (row) => {
// 列表-操作按钮事件
const buttonTableClick = async (val, row) => {
if (val == 'mainClose') { // 关闭
- handleClose(row.id)
+ handleClose(row.masterId)
} else if (val == 'mainReAdd') { // 重新添加
- handleReAdd(row.id)
+ handleReAdd(row.masterId)
} else if (val == 'mainSubmit') { // 提交审批
- handleSubmit(row.id)
+ handleSubmit(row.masterId)
} else if (val == 'mainTurnDown') { // 驳回
- handleRefused(row.id)
+ handleRefused(row.masterId)
} else if (val == 'mainApprove') { // 审批通过
- handleAgree(row.id)
+ handleAgree(row.masterId)
} else if (val == 'mainHandle') { // 处理
- handleHandle(row.id)
+ handleHandle(row.masterId)
} else if (val == 'edit') { // 编辑
openForm('update', row)
}
diff --git a/src/views/wms/inventoryjobManage/packageManage/packagemergeMain/index.vue b/src/views/wms/inventoryjobManage/packageManage/packagemergeMain/index.vue
index ab6d184b6..8a544f9cf 100644
--- a/src/views/wms/inventoryjobManage/packageManage/packagemergeMain/index.vue
+++ b/src/views/wms/inventoryjobManage/packageManage/packagemergeMain/index.vue
@@ -16,7 +16,7 @@
-
-
+
@@ -12,11 +12,12 @@
@updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
:allSchemas="PackageoverJobMain.allSchemas"
+ :detailAllSchemas="PackageoverJobDetail.allSchemas"
/>
-
@@ -81,7 +82,7 @@ const { t } = useI18n() // 国际化
const route = useRoute() // 路由信息
const routeName = ref()
routeName.value = route.name
-const tableColumns = ref(PackageoverJobMain.allSchemas.tableColumns)
+const tableColumns = ref([...PackageoverJobMain.allSchemas.tableColumns,...PackageoverJobDetail.allSchemas.tableMainColumns])
// 查询页面返回
const searchTableSuccess = (formField, searchField, val, formRef) => {
@@ -98,7 +99,7 @@ const updataTableColumns = (val) => {
}
const { tableObject, tableMethods } = useTable({
- getListApi: PackageoverJobMainApi.getPackageoverJobMainPage // 分页接口
+ getListApi: PackageoverJobDetailApi.getPackageoverJobDetailPage // 分页接口
})
// 获得表格的各种操作
@@ -149,7 +150,7 @@ const buttonTableClick = async (val, row) => {
if (val == 'edit') { // 编辑
openForm('update', row)
} else if (val == 'delete') { // 删除
- handleDelete(row.id)
+ handleDelete(row.masterId)
}
}
diff --git a/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRecordMain/index.vue b/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRecordMain/index.vue
index 9774d78d0..99d17526a 100644
--- a/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRecordMain/index.vue
+++ b/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRecordMain/index.vue
@@ -1,7 +1,7 @@
-
+
@@ -12,11 +12,12 @@
@updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
:allSchemas="PackageoverMain.allSchemas"
+ :detailAllSchemas="PackageoverDetail.allSchemas"
/>
-
@@ -78,7 +79,7 @@ const { t } = useI18n() // 国际化
const route = useRoute() // 路由信息
const routeName = ref()
routeName.value = route.name
-const tableColumns = ref(PackageoverMain.allSchemas.tableColumns)
+const tableColumns = ref([...PackageoverMain.allSchemas.tableColumns,...PackageoverDetail.allSchemas.tableMainColumns])
// 字段设置 更新主列表字段
const updataTableColumns = (val) => {
@@ -86,7 +87,7 @@ const updataTableColumns = (val) => {
}
const { tableObject, tableMethods } = useTable({
- getListApi: PackageoverRecordMainApi.getPackageoverMainPage // 分页接口
+ getListApi: PackageoverRecordDetailApi.getPackageoverDetailPage // 分页接口
})
// 获得表格的各种操作
@@ -119,7 +120,11 @@ const buttonBaseClick = (val, item) => {
}
// 列表-操作按钮
-const butttondata = (row) => {
+const butttondata = (row,$index) => {
+ const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1
+ if(findIndex>0&&findIndex<$index){
+ return []
+ }
return [defaultButtons.mainListPointBtn(null)] // 标签打印
}
diff --git a/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRequestMain/index.vue b/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRequestMain/index.vue
index d43b42968..95af0ae92 100644
--- a/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRequestMain/index.vue
+++ b/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRequestMain/index.vue
@@ -1,7 +1,7 @@
-
+
@@ -12,11 +12,12 @@
@updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
:allSchemas="PackageoverRequestMain.allSchemas"
+ :detailAllSchemas="PackageoverRequestDetail.allSchemas"
/>
-
@@ -91,7 +92,7 @@ const { t } = useI18n() // 国际化
const route = useRoute() // 路由信息
const routeName = ref()
routeName.value = route.name
-const tableColumns = ref(PackageoverRequestMain.allSchemas.tableColumns)
+const tableColumns = ref([...PackageoverRequestMain.allSchemas.tableColumns,...PackageoverRequestDetail.allSchemas.tableMainColumns])
// 字段设置 更新主列表字段
const updataTableColumns = (val) => {
@@ -163,7 +164,7 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
}
const { tableObject, tableMethods } = useTable({
- getListApi: PackageoverRequestMainApi.getPackageoverRequestMainPage // 分页接口
+ getListApi: PackageoverRequestDetailApi.getPackageoverRequestDetailPage // 分页接口
})
// 获得表格的各种操作
@@ -219,7 +220,11 @@ const isShowMainButton = (row,val) => {
}
// 列表-操作按钮
-const butttondata = (row) => {
+const butttondata = (row,$index) => {
+ const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1
+ if(findIndex>0&&findIndex<$index){
+ return []
+ }
return [
defaultButtons.mainListCloseBtn({hide:isShowMainButton(row,['1','2','3','4']), hasPermi:'wms:packageover-request-main:close'}), // 关闭
defaultButtons.mainListReAddBtn({hide:isShowMainButton(row,['4','5']), hasPermi:'wms:packageover-request-main:reAdd'}), // 重新添加
@@ -239,7 +244,7 @@ const buttonTableClick = async (val, row) => {
if (val == 'mainClose') { // 关闭
await message.confirm('确认要关闭吗?')
tableObject.loading = true
- PackageoverRequestMainApi.close(row.id).then(() => {
+ PackageoverRequestMainApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@@ -250,7 +255,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainReAdd') { // 重新添加
await message.confirm('确认要重新添加吗?')
tableObject.loading = true
- PackageoverRequestMainApi.reAdd(row.id).then(() => {
+ PackageoverRequestMainApi.reAdd(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@@ -261,7 +266,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainSubmit') { // 提交审批
await message.confirm('确认要提交审批吗?')
tableObject.loading = true
- PackageoverRequestMainApi.submit(row.id).then(() => {
+ PackageoverRequestMainApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@@ -272,7 +277,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainTurnDown') { // 驳回
await message.confirm('确认要驳回吗?')
tableObject.loading = true
- PackageoverRequestMainApi.refused(row.id).then(() => {
+ PackageoverRequestMainApi.refused(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@@ -283,7 +288,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainApprove') { // 审批通过
await message.confirm('确认要审批通过吗?')
tableObject.loading = true
- PackageoverRequestMainApi.agree(row.id).then(() => {
+ PackageoverRequestMainApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@@ -294,7 +299,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainHandle') { // 处理
await message.confirm('确认要处理吗?')
tableObject.loading = true
- PackageoverRequestMainApi.handle(row.id).then(() => {
+ PackageoverRequestMainApi.handle(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@@ -305,7 +310,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'edit') { // 编辑
openForm('update', row)
} else if (val == 'delete') { // 删除
- handleDelete(row.id)
+ handleDelete(row.masterId)
}
}
diff --git a/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRetrospect/index.vue b/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRetrospect/index.vue
index 674d15de0..ad4cbc239 100644
--- a/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRetrospect/index.vue
+++ b/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRetrospect/index.vue
@@ -16,7 +16,7 @@
-
@@ -42,9 +45,11 @@
diff --git a/src/views/wms/inventoryjobManage/sparepartsrequisition/sparepartsrequisitionRequestMain/sparepartsrequisitionRequestMain.data.ts b/src/views/wms/inventoryjobManage/sparepartsrequisition/sparepartsrequisitionRequestMain/sparepartsrequisitionRequestMain.data.ts
index 193dcb5b7..beda80844 100644
--- a/src/views/wms/inventoryjobManage/sparepartsrequisition/sparepartsrequisitionRequestMain/sparepartsrequisitionRequestMain.data.ts
+++ b/src/views/wms/inventoryjobManage/sparepartsrequisition/sparepartsrequisitionRequestMain/sparepartsrequisitionRequestMain.data.ts
@@ -45,7 +45,6 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive([
field: 'status',
dictType: DICT_TYPE.REQUEST_STATUS,
dictClass: 'string',
- isSearch: true,
isForm: false,
isTable: true,
sort: 'custom',
@@ -73,7 +72,6 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive([
table: {
width: 180
},
- isForm: false,
},
{
label: '截止时间',
@@ -89,7 +87,6 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive([
table: {
width: 180
},
- isForm: false,
},
{
label: '领用原因',
@@ -97,6 +94,7 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive([
table: {
width: 150
},
+ sortTableDefault:1001
},
{
label: '从仓库代码',
@@ -117,7 +115,6 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive([
table: {
width: 150
},
- isSearch: true,
isForm: false,
},
{
@@ -127,7 +124,6 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive([
table: {
width: 150
},
- isSearch: true,
isForm: false,
},
{
@@ -137,6 +133,7 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive