From 7abab17e760b1e409ed5d37dad4bb432abeef316 Mon Sep 17 00:00:00 2001
From: songguoqiang <765017469@qq.com>
Date: Thu, 14 Nov 2024 09:50:04 +0800
Subject: [PATCH 01/35] =?UTF-8?q?SCP=E5=BE=85=E5=BC=80=E7=A5=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../supplierinvoiceInvoiced/index.vue | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/views/wms/supplierManage/supplierinvoiceInvoiced/index.vue b/src/views/wms/supplierManage/supplierinvoiceInvoiced/index.vue
index 0981356d6..827f95a2c 100644
--- a/src/views/wms/supplierManage/supplierinvoiceInvoiced/index.vue
+++ b/src/views/wms/supplierManage/supplierinvoiceInvoiced/index.vue
@@ -28,7 +28,7 @@
v-model:sort="tableObject.sort"
>
-
+
{{ row.code }}
@@ -148,7 +148,7 @@ const butttondata = (row) =>{
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:supplierinvoice-invoiced:delete'}), // 删除
// defaultButtons.mainListEditBtn({hasPermi:'wms:supplierinvoice-invoiced:update'}),
{
- label: t('ts.审核通过'),
+ label: t('审核通过'),
name: 'agree',
hide: isShowMainButton(row, ['1']),
type: 'primary',
@@ -157,7 +157,7 @@ const butttondata = (row) =>{
hasPermi: 'wms:supplierinvoice-invoiced:agree'
},
{
- label: t('ts.作废'),
+ label: t('作废'),
name: 'refuse',
hide: isShowMainButton(row, ['1']),
type: 'danger',
@@ -194,7 +194,7 @@ const formsSuccess = async (formType,data) => {
});
if(isHave){
if(data.activeTime && data.expireTime && data.activeTime >=data.expireTime){
- message.error(t('ts.失效时间要大于生效时间'))
+ message.error(t('失效时间要大于生效时间'))
return;
}
}
@@ -234,11 +234,11 @@ const handleDelete = async (id: number) => {
const handleAgree = async (id : number) => {
try {
// 审批通过的二次确认
- await message.confirm(t('ts.是否审批通过所选中数据?'))
+ await message.confirm(t('是否审批通过所选中数据?'))
tableObject.loading = true
// 发起审批通过
await SupplierinvoiceInvoicedApi.agreeSupplierinvoiceInvoiced(id)
- message.success(t('ts.审批通过成功!'))
+ message.success(t('审批通过成功!'))
tableObject.loading = false
// 刷新列表
await getList()
@@ -252,11 +252,11 @@ const handleAgree = async (id : number) => {
const handleRefuse = async (id : number) => {
try {
// 审批通过的二次确认
- await message.confirm(t('ts.是否审批拒绝所选中数据?'))
+ await message.confirm(t('是否审批拒绝所选中数据?'))
tableObject.loading = true
// 发起审批通过
await SupplierinvoiceInvoicedApi.refuseSupplierinvoiceInvoiced(id)
- message.success(t('ts.审批成功!'))
+ message.success(t('审批成功!'))
tableObject.loading = false
// 刷新列表
await getList()
From 7abbacf0a79973541246202b082fa106188e278c Mon Sep 17 00:00:00 2001
From: songguoqiang <765017469@qq.com>
Date: Mon, 18 Nov 2024 17:18:13 +0800
Subject: [PATCH 02/35] =?UTF-8?q?YT-1039=EF=BC=9A=E7=9B=B4=E7=BA=B3?=
=?UTF-8?q?=E5=93=81=E6=94=B6=E8=B4=A7=E8=AE=B0=E5=BD=95=E9=9A=90=E8=97=8F?=
=?UTF-8?q?=E5=AD=97=E6=AE=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../purchasereceiptRecordMain.data.ts | 60 +++++++++----------
1 file changed, 30 insertions(+), 30 deletions(-)
diff --git a/src/views/wms/purchasereceiptManage/bspurchasereceipt/bsPurchasereceiptRecordMain/purchasereceiptRecordMain.data.ts b/src/views/wms/purchasereceiptManage/bspurchasereceipt/bsPurchasereceiptRecordMain/purchasereceiptRecordMain.data.ts
index 30bd3f3e8..c7e1663eb 100644
--- a/src/views/wms/purchasereceiptManage/bspurchasereceipt/bsPurchasereceiptRecordMain/purchasereceiptRecordMain.data.ts
+++ b/src/views/wms/purchasereceiptManage/bspurchasereceipt/bsPurchasereceiptRecordMain/purchasereceiptRecordMain.data.ts
@@ -20,24 +20,24 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive([
sortTableDefault:1
},
- {
- label: '申请单号',
- field: 'requestNumber',
- sort: 'custom',
- table: {
- width: 180
- },
- sortTableDefault:2
- },
- {
- label: '任务单号',
- field: 'jobNumber',
- sort: 'custom',
- table: {
- width: 180
- },
- sortTableDefault:3
- },
+ // {
+ // label: '申请单号',
+ // field: 'requestNumber',
+ // sort: 'custom',
+ // table: {
+ // width: 180
+ // },
+ // sortTableDefault:2
+ // },
+ // {
+ // label: '任务单号',
+ // field: 'jobNumber',
+ // sort: 'custom',
+ // table: {
+ // width: 180
+ // },
+ // sortTableDefault:3
+ // },
{
label: '发货单号',
field: 'asnNumber',
@@ -411,15 +411,15 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive([
},
sortTableDefault:12,
},
- {
- label: '发货数量',
- field: 'shippedQty',
- sort: 'custom',
- table: {
- width: 150
- },
- sortTableDefault:12,
- },
+ // {
+ // label: '发货数量',
+ // field: 'shippedQty',
+ // sort: 'custom',
+ // table: {
+ // width: 150
+ // },
+ // sortTableDefault:12,
+ // },
{
label: '收货数量',
field: 'qty',
@@ -516,9 +516,9 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive([
// 表单校验
export const PurchasereceiptRecordMainRules = reactive({
- requestNumber: [
- { required: true, message: '请选择申请单号', trigger: 'change' }
- ],
+ // requestNumber: [
+ // { required: true, message: '请选择申请单号', trigger: 'change' }
+ // ],
supplierCode: [
{ required: true, message: '请选择供应商代码', trigger: 'change' }
],
From 6940d3859014c57cc38dcf3314620ad5c276c34c Mon Sep 17 00:00:00 2001
From: songguoqiang <765017469@qq.com>
Date: Mon, 18 Nov 2024 17:29:18 +0800
Subject: [PATCH 03/35] =?UTF-8?q?YT-1039:=E4=BE=9B=E5=BA=94=E5=95=86?=
=?UTF-8?q?=E6=90=9C=E7=B4=A2=E9=9A=90=E8=97=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../purchasereceiptRecordMain.data.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/views/wms/purchasereceiptManage/bspurchasereceipt/bsPurchasereceiptRecordMain/purchasereceiptRecordMain.data.ts b/src/views/wms/purchasereceiptManage/bspurchasereceipt/bsPurchasereceiptRecordMain/purchasereceiptRecordMain.data.ts
index c7e1663eb..fc56577e1 100644
--- a/src/views/wms/purchasereceiptManage/bspurchasereceipt/bsPurchasereceiptRecordMain/purchasereceiptRecordMain.data.ts
+++ b/src/views/wms/purchasereceiptManage/bspurchasereceipt/bsPurchasereceiptRecordMain/purchasereceiptRecordMain.data.ts
@@ -83,7 +83,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive([
table: {
width: 150
},
- isSearch: true,
+ isSearch: false,
sortSearchDefault:2,
isTable:false
},
From 52ebe60fb292a639d462d74dd480328dec4e5e35 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Tue, 19 Nov 2024 09:20:06 +0800
Subject: [PATCH 04/35] =?UTF-8?q?YT-785=E5=88=B6=E5=93=81=E5=9B=9E?=
=?UTF-8?q?=E6=94=B6=E7=94=B3=E8=AF=B7=E7=BC=96=E8=BE=91=E9=97=AE=E9=A2=98?=
=?UTF-8?q?=EF=BC=9A1.=E5=B7=A5=E4=BD=8D=E4=BB=A3=E7=A0=81=E4=B8=8D?=
=?UTF-8?q?=E5=BA=94=E8=AF=A5=E5=8F=AF=E4=BB=A5=E7=BC=96=E8=BE=91=202.?=
=?UTF-8?q?=E5=A4=87=E6=B3=A8=E5=80=BC=E4=BF=9D=E5=AD=98=E4=B8=8D=E4=BD=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../productredress/productredressRequestMain/index.vue | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/views/wms/productionManage/productredress/productredressRequestMain/index.vue b/src/views/wms/productionManage/productredress/productredressRequestMain/index.vue
index 5a8d7379d..9aca36df4 100644
--- a/src/views/wms/productionManage/productredress/productredressRequestMain/index.vue
+++ b/src/views/wms/productionManage/productredress/productredressRequestMain/index.vue
@@ -360,7 +360,12 @@ const openForm =async (type: string, row?: number) => {
itemColumns.componentProps.isSearchList = false
itemColumns.componentProps.disabled = true
}
+ if(itemColumns.field == 'workStationCode') {
+ itemColumns.componentProps.isSearchList = false
+ itemColumns.componentProps.disabled = true
+ }
})
+
} else {
// 修改 tableform 属性
ProductredressRequestMain.allSchemas.formSchema.map(itemColumns => {
@@ -368,6 +373,10 @@ const openForm =async (type: string, row?: number) => {
itemColumns.componentProps.isSearchList = true
itemColumns.componentProps.disabled = false
}
+ if(itemColumns.field == 'workStationCode') {
+ itemColumns.componentProps.isSearchList = true
+ itemColumns.componentProps.disabled = false
+ }
})
}
formRef.value.open(type, row)
From dcf689d18d9fd7668b98b0f3fc54dd0a664e05da Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Tue, 19 Nov 2024 10:03:00 +0800
Subject: [PATCH 05/35] =?UTF-8?q?YT-1060=E4=B8=8A=E6=9E=B6=E7=AD=96?=
=?UTF-8?q?=E7=95=A5=E7=82=B9=E5=87=BB=E4=BF=9D=E5=AD=98=E9=85=8D=E7=BD=AE?=
=?UTF-8?q?=E8=A7=84=E5=88=99=E4=BC=9A=E6=B8=85=E7=A9=BA=EF=BC=8C=E6=97=A0?=
=?UTF-8?q?=E6=B3=95=E4=BF=9D=E5=AD=98=E6=88=90=E5=8A=9F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../strategySetting/strategy/upShelfStrategy/AddForm.vue | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue b/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue
index 9e5525a12..d6a23d0eb 100644
--- a/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue
+++ b/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue
@@ -1059,13 +1059,13 @@ const blurWarehouse = async ({module='config',type})=>{
console.log('库区verifyRes',verifyRes)
}else if(module=='condition'&&type=='LocationGroupCode' || module=='config'&&warehouseType.value == 'LocationGroupCode'){
// 库位组
- let verifyRes = await LocationgroupApi.verifyLocationgroup({
+ verifyRes = await LocationgroupApi.verifyLocationgroup({
code:warehouseValue
})
console.log('库位组verifyRes',verifyRes)
}else if(module=='condition'&&type=='LocationCode' || module=='config'&&warehouseType.value == 'LocationCode'){
// 库位
- let verifyRes = await LocationApi.verifyLocation({
+ verifyRes = await LocationApi.verifyLocation({
code:warehouseValue
})
console.log('库位verifyRes',verifyRes)
From e70f066ab92f6dfbadeb49ad4fd23ae8415b54c7 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Tue, 19 Nov 2024 10:18:43 +0800
Subject: [PATCH 06/35] =?UTF-8?q?YT-1057=E7=BC=96=E8=BE=91=E4=B8=8A?=
=?UTF-8?q?=E6=9E=B6=E7=AD=96=E7=95=A5=E8=AE=BE=E7=BD=AE=E8=A7=84=E5=88=99?=
=?UTF-8?q?=E6=9D=A1=E4=BB=B6=EF=BC=8C=E7=B3=BB=E7=BB=9F=E5=BC=B9=E9=94=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../strategySetting/strategy/upShelfStrategy/AddForm.vue | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue b/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue
index d6a23d0eb..a179cfd74 100644
--- a/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue
+++ b/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue
@@ -82,7 +82,7 @@
-
+
@@ -1045,6 +1045,7 @@ const blurWarehouse = async ({module='config',type})=>{
return
}
let verifyRes = []
+ console.log(222,warehouseValue)
if(module=='condition'&&type=='WarehouseCode' || module=='config'&&warehouseType.value == 'WarehouseCode'){
// 仓库
verifyRes = await WarehouseApi.verifyWarehouse({
@@ -1240,7 +1241,9 @@ const open = async (type: string, strategyCode: string, id?: number) => {
formData.value.condition = JSON.parse(data.condition)
formData.value.condition.forEach((item, index) => {
if ((item.Operator == 'IN' || item.Operator == 'NOT IN')&& !Array.isArray(item.Value)) {
- item.Value = item.Value.split(',')
+ if (item.ParamCode != 'WarehouseCode' && item.ParamCode != 'AreaCode' &&item.ParamCode != 'LocationGroupCode' &&item.ParamCode != 'LocationCode' ) {
+ item.Value = item.Value.split(',')
+ }
}
})
}
From 8f9d41b50bc037faaf1efd2496e346ccd59fda34 Mon Sep 17 00:00:00 2001
From: liuchen864 <23082234@qq.com>
Date: Tue, 19 Nov 2024 12:38:58 +0800
Subject: [PATCH 07/35] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=BA=E5=BC=95?=
=?UTF-8?q?=E6=8E=A5=E5=8F=A3bug=E3=80=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/infra/outerApiHis/index.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/views/infra/outerApiHis/index.vue b/src/views/infra/outerApiHis/index.vue
index 2751182d7..d0b555db2 100644
--- a/src/views/infra/outerApiHis/index.vue
+++ b/src/views/infra/outerApiHis/index.vue
@@ -128,7 +128,7 @@ const butttondata = (row) =>{
return [
// defaultButtons.mainListEditBtn({hasPermi:'wms:outerApiHis:update'}), // 编辑
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:outerApiHis:delete'}), // 删除
- defaultButtons.retryBtn({hide: row.times >= 3}), // 重试
+ defaultButtons.retryBtn({hide: row.times >= 3 || row.success}), // 重试
]
}
From ce84b6ed17666ea5ed68c365988ea36aefdbfed8 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Tue, 19 Nov 2024 13:10:54 +0800
Subject: [PATCH 08/35] =?UTF-8?q?=E5=88=B6=E5=93=81=E5=9B=9E=E6=94=B6?=
=?UTF-8?q?=E7=94=B3=E8=AF=B7=E6=98=8E=E7=BB=86=E4=B8=AD=E6=96=B0=E5=A2=9E?=
=?UTF-8?q?=E5=92=8C=E7=BC=96=E8=BE=91=E9=A1=B5=E9=9D=A2=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../productredressRequestMain/index.vue | 3 +++
.../productredressRequestMain.data.ts | 12 +-----------
2 files changed, 4 insertions(+), 11 deletions(-)
diff --git a/src/views/wms/productionManage/productredress/productredressRequestMain/index.vue b/src/views/wms/productionManage/productredress/productredressRequestMain/index.vue
index 9aca36df4..d726ccf0c 100644
--- a/src/views/wms/productionManage/productredress/productredressRequestMain/index.vue
+++ b/src/views/wms/productionManage/productredress/productredressRequestMain/index.vue
@@ -77,6 +77,9 @@
:buttondataTable="buttondataTable"
@tableFormButton="tableFormButton"
:detailValidate="detailValidate"
+ :detailButtonIsShowAdd="false"
+ :detailButtonIsShowEdit="false"
+ :detailButtonIsShowDelete="false"
/>
@@ -157,7 +171,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
const setV = {}
if(formField == 'customerStatementNumber') {
//客户对账单
- setV['customer'] = val[0]['customerCode']
+ setV['customerCode'] = val[0]['customerCode']
setV['customerName'] = val[0]['customerName']
CustomerStatementDetailApi.getCustomerStatementDetailPage({
pageNo:1,
@@ -170,6 +184,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
item['sumPrice'] = item['price'] + item['allocationPrice']
// 未税金额 默认等于数量*合计单价,可修改,必填,最多可输入2位小数
item['beforeTaxAmount'] = item['sumPrice']*item['qty']
+ // 含税金额 未税价格+税额,四舍五入保留2位小数
item['afterTaxAmount'] = item['beforeTaxAmount'] + item['taxAmount'] //含税金额
// 税额:taxAmount 未税价格*税率/100,四舍五入保留2位小数
@@ -210,9 +225,9 @@ const Echo = []
const { getList, setSearchParams } = tableMethods
// 列表头部按钮
const HeadButttondata = [
- defaultButtons.defaultAddBtn({hasPermi:`wms:customer-sale-invoice-main:create` }), // 新增
- defaultButtons.defaultImportBtn({hasPermi:`wms:customer-sale-invoice-main:import` }), // 导入
- defaultButtons.defaultExportBtn({hasPermi:`wms:customer-sale-invoice-main:export` }), // 导出
+ defaultButtons.defaultAddBtn({hasPermi:`wms:customer-sale-invoice-request-main:create` }), // 新增
+ defaultButtons.defaultImportBtn({hasPermi:`wms:customer-sale-invoice-request-main:import` }), // 导入
+ defaultButtons.defaultExportBtn({hasPermi:`wms:customer-sale-invoice-request-main:export` }), // 导出
defaultButtons.defaultFreshBtn(null), // 刷新
defaultButtons.defaultFilterBtn(null), // 筛选
defaultButtons.defaultSetBtn(null), // 设置
@@ -264,14 +279,16 @@ const butttondata = (row,$index) => {
return []
}
return [
- defaultButtons.mainListPlanOpeBtn({hide:isShowMainButton(row,['5']),hasPermi:`wms:${routeName.value}:open`}), // 打开
- defaultButtons.mainListPlanCloBtn({hide:isShowMainButton(row,['1','2','3','4']),hasPermi:`wms:${routeName.value}:close`}), // 关闭
- defaultButtons.mainListPlanSubBtn({hide:isShowMainButton(row,['1']),hasPermi:`wms:${routeName.value}:submit`}), // 提交审批
- defaultButtons.mainListPlanTurBtn({hide:isShowMainButton(row,['2']),hasPermi:`wms:${routeName.value}:reject`}), // 驳回
- defaultButtons.mainListPlanAppBtn({hide:isShowMainButton(row,['2']),hasPermi:`wms:${routeName.value}:agree`}), // 审批通过
- defaultButtons.mainListPlanPubBtn({hide:isShowMainButton(row,['3']),hasPermi:`wms:${routeName.value}:publish`}), // 发布
- defaultButtons.mainListPlanResBtn({hide:isShowMainButton(row,['4']),hasPermi:`wms:${routeName.value}:resetting`}), // 重置
- defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['1']),hasPermi:`wms:${routeName.value}:update`}), // 编辑
+ // defaultButtons.mainListPlanOpeBtn({hide:isShowMainButton(row,['5']),hasPermi:`wms:customer-sale-invoice-request-main:open`}), // 打开
+ // defaultButtons.mainListPlanCloBtn({hide:isShowMainButton(row,['1','2','3','4']),hasPermi:`wms:customer-sale-invoice-request-main:close`}), // 关闭
+ // defaultButtons.mainListPlanSubBtn({hide:isShowMainButton(row,['1']),hasPermi:`wms:customer-sale-invoice-request-main:submit`}), // 提交审批
+ // defaultButtons.mainListPlanTurBtn({hide:isShowMainButton(row,['2']),hasPermi:`wms:customer-sale-invoice-request-main:reject`}), // 驳回
+ // defaultButtons.mainListPlanAppBtn({hide:isShowMainButton(row,['2']),hasPermi:`wms:customer-sale-invoice-request-main:agree`}), // 审批通过
+ defaultButtons.mainListPlanPubBtn({hide:isShowMainButton(row,['3']),hasPermi:`wms:customer-sale-invoice-request-main:publish`}), // 发布
+ // defaultButtons.mainListPlanResBtn({hide:isShowMainButton(row,['4']),hasPermi:`wms:customer-sale-invoice-request-main:resetting`}), // 重置
+ defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['1']),hasPermi:`wms:customer-sale-invoice-request-main:update`}), // 编辑
+ defaultButtons.mainListCancelBtn({hide: isShowMainButton(row,['5']),hasPermi:'wms:customer-sale-invoice-request-main:cancel'}), //作废
+
]
}
@@ -334,7 +351,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainPlanPub') { // 发布
await message.confirm('确认要发布吗?')
tableObject.loading = true
- CustomerSaleInvoiceMainApi.publish(row.masterId).then(() => {
+ CustomerSaleInvoiceMainApi.publish(row.id).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
buttonBaseClick('refresh',null)
@@ -342,6 +359,19 @@ const buttonTableClick = async (val, row) => {
tableObject.loading = false
console.log(err)
})
+ } else if (val == 'cancel') { // 作废
+ tableObject.loading = true
+ try {
+ await message.confirm('确认要作废吗?')
+ await CustomerSaleInvoiceMainApi.nodeAbrogate(row.id)
+ await message.success(t('ts.作废成功'))
+ // 发起导出
+ //exportLoading.value = true
+ } catch {
+ } finally {
+ // 刷新列表
+ buttonBaseClick('refresh',null)
+ }
} else if (val == 'mainPlanRes') { // 重置
await message.confirm('确认要重置吗?')
tableObject.loading = true
From 3448975c1770baf6290e2f48cdfabf373629fb96 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Tue, 19 Nov 2024 14:23:02 +0800
Subject: [PATCH 12/35] =?UTF-8?q?YT-1058=E4=B8=8A=E6=9E=B6=E7=AD=96?=
=?UTF-8?q?=E7=95=A5=E8=A7=84=E5=88=99=E6=9D=A1=E4=BB=B6=E4=B8=AD=E7=9A=84?=
=?UTF-8?q?=E7=89=A9=E6=96=99=E7=B1=BB=E5=9E=8B=E5=92=8CABC=E7=B1=BB?=
=?UTF-8?q?=E5=9B=9E=E6=98=BE=E4=B8=8D=E6=AD=A3=E7=A1=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/wms/basicDataManage/itemManage/itembasic/index.vue | 5 ++++-
.../strategySetting/strategy/upShelfStrategy/AddForm.vue | 4 +++-
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/views/wms/basicDataManage/itemManage/itembasic/index.vue b/src/views/wms/basicDataManage/itemManage/itembasic/index.vue
index da269f299..078117066 100644
--- a/src/views/wms/basicDataManage/itemManage/itembasic/index.vue
+++ b/src/views/wms/basicDataManage/itemManage/itembasic/index.vue
@@ -371,11 +371,14 @@ const changeTabs = (item) => {
tabsExtend.value = false
allSchemas.value = Itembasic.allSchemas
}
- detailAllSchemas.value.tableColumns.map((item,index) => {
+ if (detailAllSchemas.value && detailAllSchemas.value.tableColumns) {
+ detailAllSchemas.value.tableColumns.map((item,index) => {
if (item.field == 'action') {
detailAllSchemas.value.tableColumns.splice(index,1)
}
})
+ }
+
// 当前物料代码作为条件
tableObjectExtend.value = [{
key: 'itemCode',
diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue b/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue
index a179cfd74..05a68ebac 100644
--- a/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue
+++ b/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue
@@ -1241,8 +1241,10 @@ const open = async (type: string, strategyCode: string, id?: number) => {
formData.value.condition = JSON.parse(data.condition)
formData.value.condition.forEach((item, index) => {
if ((item.Operator == 'IN' || item.Operator == 'NOT IN')&& !Array.isArray(item.Value)) {
- if (item.ParamCode != 'WarehouseCode' && item.ParamCode != 'AreaCode' &&item.ParamCode != 'LocationGroupCode' &&item.ParamCode != 'LocationCode' ) {
+ if (item.ParamCode != 'WarehouseCode' && item.ParamCode != 'AreaCode' && item.ParamCode != 'LocationGroupCode' && item.ParamCode != 'LocationCode') {
+ if (item.Value) {
item.Value = item.Value.split(',')
+ }
}
}
})
From 23d972ac131561c6aebbb4dd40ecd7701d7be422 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Tue, 19 Nov 2024 15:25:36 +0800
Subject: [PATCH 13/35] =?UTF-8?q?YT-1075=E7=94=9F=E4=BA=A7=E9=80=80?=
=?UTF-8?q?=E6=96=99=E7=94=B3=E8=AF=B7=E5=88=9B=E5=BB=BA=E6=A0=87=E7=AD=BE?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2=E8=AE=A1=E9=87=8F=E5=8D=95=E4=BD=8D=E4=B8=8D?=
=?UTF-8?q?=E6=AD=A3=E7=A1=AE=EF=BC=8C=E5=BA=94=E8=AF=A5=E6=98=AF=E4=B8=AD?=
=?UTF-8?q?=E6=96=87?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../productionreturnRequestMain.data.ts | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts b/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts
index 2c8645582..8d30ff991 100644
--- a/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts
+++ b/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts
@@ -1514,6 +1514,7 @@ export const ProductionreturnRequestDetailLabel = useCrudSchemas(reactive
Date: Tue, 19 Nov 2024 15:58:43 +0800
Subject: [PATCH 14/35] =?UTF-8?q?=E9=94=80=E5=94=AE=E5=BC=80=E7=A5=A8?=
=?UTF-8?q?=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../wms/customerSaleInvoiceDetail/index.ts | 11 ++
src/api/wms/customerSaleInvoiceMain/index.ts | 22 ++-
src/utils/dict.ts | 4 +-
.../customerSaleInvoiceRecordMain.data.ts | 108 ++++++++++-----
.../customerSaleInvoiceRecordMain/index.vue | 28 +++-
.../customerSaleInvoiceRequestMain.data.ts | 120 +++++++++++++---
.../customerSaleInvoiceRequestMain/index.vue | 128 +++++++-----------
7 files changed, 277 insertions(+), 144 deletions(-)
diff --git a/src/api/wms/customerSaleInvoiceDetail/index.ts b/src/api/wms/customerSaleInvoiceDetail/index.ts
index 19d594304..af4c750bd 100644
--- a/src/api/wms/customerSaleInvoiceDetail/index.ts
+++ b/src/api/wms/customerSaleInvoiceDetail/index.ts
@@ -27,6 +27,17 @@ export const getCustomerSaleInvoiceDetailPage = async (params) => {
return await request.get({ url: `/wms/customer-sale-invoice-detail/page`, params })
}
}
+// 查询客户销售开票子信息表(WMS)列表
+export const getCustomerSaleInvoiceRecordDetailPage = async (params) => {
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = {...params}
+ return await request.post({ url: '/wms/customer-sale-invoice-record-detail/senior', data })
+ } else {
+ return await request.get({ url: `/wms/customer-sale-invoice-record-detail/page`, params })
+ }
+}
+
// 查询客户销售开票子信息表(WMS)详情
export const getCustomerSaleInvoiceDetail = async (id: number) => {
diff --git a/src/api/wms/customerSaleInvoiceMain/index.ts b/src/api/wms/customerSaleInvoiceMain/index.ts
index 32ce70ad8..7bad6f0c0 100644
--- a/src/api/wms/customerSaleInvoiceMain/index.ts
+++ b/src/api/wms/customerSaleInvoiceMain/index.ts
@@ -57,6 +57,15 @@ export const exportCustomerSaleInvoiceMain = async (params) => {
return await request.download({ url: `/wms/customer-sale-invoice-main/export-excel`, params })
}
}
+// 导出销售开票记录 Excel
+export const exportCustomerSaleInvoiceRecordMain = async (params) => {
+ if (params.isSearch) {
+ const data = { ...params }
+ return await request.downloadPost({ url: `/wms/customer-sale-invoice-record-main/export-excel-senior`, data })
+ } else {
+ return await request.download({ url: `/wms/customer-sale-invoice-record-main/export-excel`, params })
+ }
+}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/customer-sale-invoice-main/get-import-template' })
@@ -66,8 +75,8 @@ export const importTemplate = () => {
export const getCustomerSaleInvoiceRecodeMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
- // const data = {...params}
- // return await request.post({ url: '/wms/customer-sale-invoice-main/senior', data })
+ const data = {...params}
+ return await request.post({ url: '/wms/customer-sale-invoice-record-main/senior', data })
} else {
return await request.get({ url: `/wms/customer-sale-invoice-record-main/page`, params })
}
@@ -81,3 +90,12 @@ export const publish = async (id: number) => {
export const nodeAbrogate = async (id: number) => {
return await request.get({ url: `/wms/customer-sale-invoice-main/nodeAbrogate?id=` + id})
}
+
+// 从客户对账单中获取客户代码 -- 销售申请
+export const getCustomerList = async () => {
+ return await request.get({ url: `/wms/customer-statement-main/getCustomerList`})
+}
+// 从客户对账单中获取客户代码 -- 销售记录
+export const getRecordCustomerList = async () => {
+ return await request.get({ url: `/wms/customer-sale-invoice-record-main/getCustomerList`})
+}
\ No newline at end of file
diff --git a/src/utils/dict.ts b/src/utils/dict.ts
index 1db5931f7..8755f5c6e 100644
--- a/src/utils/dict.ts
+++ b/src/utils/dict.ts
@@ -410,5 +410,7 @@ export enum DICT_TYPE {
RECEIVE_STATUS = 'receive_status', // 收货确认状态
LINE_SCRAP_REASON = 'Reason_or_scrapping_of_production_line', // 线边报废原因(现场史力维护的字典)
CUSTOMER_STATEMENT_TYPE = 'customer_statement_type', // wms客户对账单 模具分摊状态
- DELIVER_METHOD = 'deliver_method'
+ DELIVER_METHOD = 'deliver_method',
+ CUSTOMER_SALE_INVOICE_TYPE = 'customer_saleInvoice_type' // 销售开票
+
}
diff --git a/src/views/wms/deliversettlementManage/customerSaleInvoiceRecordMain/customerSaleInvoiceRecordMain.data.ts b/src/views/wms/deliversettlementManage/customerSaleInvoiceRecordMain/customerSaleInvoiceRecordMain.data.ts
index 500d5d257..3955a8085 100644
--- a/src/views/wms/deliversettlementManage/customerSaleInvoiceRecordMain/customerSaleInvoiceRecordMain.data.ts
+++ b/src/views/wms/deliversettlementManage/customerSaleInvoiceRecordMain/customerSaleInvoiceRecordMain.data.ts
@@ -4,7 +4,23 @@ import {
CustomerStatementMain,
} from '../moldAllocation/customerStatement/customerStatementMain.data'
import * as CustomerStatementMainApi from '@/api/wms/customerStatementMain'
+import * as CustomerSaleInvoiceMainApi from '@/api/wms/customerSaleInvoiceMain'
+const { t } = useI18n() // 国际化
+
+let custormList = []
+try {
+ custormList = await CustomerSaleInvoiceMainApi.getRecordCustomerList()
+ if(custormList.length>0){
+ custormList.unshift({
+ customerCode:'ALL',
+ customerName:t('ts.全选'),
+ })
+ }
+ console.log('custormList11',custormList)
+} catch (error) {
+
+}
// 表单校验
export const CustomerSaleInvoiceMainRules = reactive({
customerStatementNumber: [required],
@@ -25,12 +41,13 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive([
isForm: false,
},
{
- label: '状态',
- field: 'status',
+ label: '申请单号',
sort: 'custom',
isSearch: true,
- isForm:false,
- // 0:新增1:已发布2已作废
+ field: 'requestNumber',
+ table:{
+ width:150
+ }
},
{
label: '客户对账单',
@@ -52,6 +69,9 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive([
isMainValue: false
}]
}
+ },
+ table:{
+ width:180
}
},
{
@@ -63,6 +83,25 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive([
componentProps: {
disabled:true
}
+ },
+ search:{
+ component:'Select',
+ value:custormList.length>1?[custormList[0]['customerCode']]:[],
+ componentProps: {
+ showAll:true,// 备用做全选
+ multiple:true,
+ // emptyValues:[null, undefined],
+ valueOnClear:null,
+ options:custormList.length>0?custormList.map(item=>({
+ label:item.customerName,
+ value:item.customerCode
+ })):[]
+
+ }
+
+ },
+ table:{
+ width:150
}
},
{
@@ -73,6 +112,9 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive([
componentProps: {
disabled: true
}
+ },
+ table:{
+ width:150
}
},
{
@@ -83,6 +125,9 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive([
componentProps: {
disabled: true
}
+ },
+ table:{
+ width:150
}
},
{
@@ -114,12 +159,18 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive([
componentProps: {
disabled: true
}
+ },
+ table:{
+ width:150
}
},
{
label: '金税票号',
field: 'goldenTaxInvoiceNumber',
sort: 'custom',
+ table:{
+ width:150
+ }
},
{
label: '开票日期',
@@ -141,6 +192,9 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive([
valueFormat: 'x'
}
},
+ table:{
+ width:180
+ }
},
{
@@ -148,21 +202,21 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive([
field: 'remark',
sort: 'custom',
},
- {
- label: '创建时间',
- field: 'createTime',
- sort: 'custom',
- formatter: dateFormatter,
- 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,
- },
+ // {
+ // label: '创建时间',
+ // field: 'createTime',
+ // sort: 'custom',
+ // formatter: dateFormatter,
+ // 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,
+ // },
]))
// 表单校验
export const CustomerSaleInvoiceDetailRules = reactive({
@@ -237,22 +291,6 @@ export const CustomerSaleInvoiceDetail = useCrudSchemas(reactive([
field: 'qty',
sort: 'custom',
isSearch: true,
- form: {
- componentProps: {
- enterSearch: true,
- isSearchList: true, // 开启查询弹窗
- searchListPlaceholder: '请选择客户对账单', // 输入框占位文本
- searchField: '', // 查询弹窗赋值字段
- searchTitle: '客户对账单信息', // 查询弹窗标题
- searchAllSchemas: CustomerStatementMain.allSchemas, // 查询弹窗所需类
- searchPage: CustomerStatementMainApi.getCustomerStatementMainPage, // 查询弹窗所需分页方法
- searchCondition: [{
- key: 'available',
- value: 'TRUE',
- isMainValue: false
- }]
- }
- },
tableForm: {
type: 'InputNumber',
precision: 2,
diff --git a/src/views/wms/deliversettlementManage/customerSaleInvoiceRecordMain/index.vue b/src/views/wms/deliversettlementManage/customerSaleInvoiceRecordMain/index.vue
index 180cc887c..e34e66657 100644
--- a/src/views/wms/deliversettlementManage/customerSaleInvoiceRecordMain/index.vue
+++ b/src/views/wms/deliversettlementManage/customerSaleInvoiceRecordMain/index.vue
@@ -1,7 +1,7 @@
-
+
@@ -45,7 +45,7 @@
:detailAllSchemasRules="CustomerSaleInvoiceDetailRules"
:apiCreate="CustomerSaleInvoiceDetailApi.createCustomerSaleInvoiceDetail"
:apiUpdate="CustomerSaleInvoiceDetailApi.updateCustomerSaleInvoiceDetail"
- :apiPage="CustomerSaleInvoiceDetailApi.getCustomerSaleInvoiceDetailPage"
+ :apiPage="CustomerSaleInvoiceDetailApi.getCustomerSaleInvoiceRecordDetailPage"
:apiDelete="CustomerSaleInvoiceDetailApi.deleteCustomerSaleInvoiceDetail"
:Echo="Echo"
@searchTableSuccessDetail="searchTableSuccessDetail"
@@ -149,7 +149,7 @@ const handleExport = async () => {
// 发起导出
loadStart()
const excelTitle = ref(route.meta.title)
- const data = await CustomerSaleInvoiceMainApi.exportCustomerSaleInvoiceMain(tableObject.params)
+ const data = await CustomerSaleInvoiceMainApi.exportCustomerSaleInvoiceRecordMain(tableObject.params)
download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
@@ -182,7 +182,27 @@ const searchFormClick = (searchData) => {
}
getList() // 刷新当前列表
}
-
+const seachRef = ref()
+const onSearchChange = (field, value)=>{
+ if(field=='customerCode'){
+ if(value.length>0){
+ if(value[value.length-1]=='ALL'){
+ //全选
+ seachRef.value.setFormValues({
+ customerCode:['ALL']
+ })
+ }else{
+ seachRef.value.setFormValues({
+ customerCode:value.filter(item=>item!='ALL')
+ })
+ }
+ }
+ }
+}
+const searchClick = async (data)=>{
+ console.log('查询',data)
+ setSearchParams({...data,customerCode:data.customerCode.filter(item=>item!='ALL')})
+}
/** 初始化 **/
onMounted(async () => {
getList()
diff --git a/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/customerSaleInvoiceRequestMain.data.ts b/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/customerSaleInvoiceRequestMain.data.ts
index 555e9c29d..a286401fc 100644
--- a/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/customerSaleInvoiceRequestMain.data.ts
+++ b/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/customerSaleInvoiceRequestMain.data.ts
@@ -4,16 +4,31 @@ import {
CustomerStatementMain,
} from '../moldAllocation/customerStatement/customerStatementMain.data'
import * as CustomerStatementMainApi from '@/api/wms/customerStatementMain'
+import * as CustomerSaleInvoiceMainApi from '@/api/wms/customerSaleInvoiceMain'
+const { t } = useI18n() // 国际化
+let custormList = []
+try {
+ custormList = await CustomerSaleInvoiceMainApi.getCustomerList()
+ if(custormList.length>0){
+ custormList.unshift({
+ customerCode:'ALL',
+ customerName:t('ts.全选'),
+ })
+ }
+ console.log('custormList11',custormList)
+} catch (error) {
+
+}
// 表单校验
export const CustomerSaleInvoiceMainRules = reactive({
customerStatementNumber: [required],
customerCode: [required],
customerName: [required],
- mainBeforeTaxAmount: [required],
+ beforeTaxAmount: [required],
taxRate: [required],
- mainTaxAmount: [required],
- mainAdTaxAmount: [required],
+ taxAmount: [required],
+ adTaxAmount: [required],
})
export const CustomerSaleInvoiceMain = useCrudSchemas(reactive([
@@ -23,6 +38,9 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive([
sort: 'custom',
isSearch: true,
isForm: false,
+ table:{
+ width:180
+ }
},
{
label: '状态',
@@ -31,6 +49,11 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive([
isSearch: true,
isForm:false,
// 0:新增1:已发布2已作废
+ dictType: DICT_TYPE.CUSTOMER_SALE_INVOICE_TYPE,
+ dictClass: 'string',
+ table:{
+ width:120
+ }
},
{
label: '客户对账单',
@@ -46,12 +69,21 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive([
searchTitle: '客户对账单信息', // 查询弹窗标题
searchAllSchemas: CustomerStatementMain.allSchemas, // 查询弹窗所需类
searchPage: CustomerStatementMainApi.getCustomerStatementMainPage, // 查询弹窗所需分页方法
- searchCondition: [{
+ searchCondition: [
+ {
+ key: 'status',
+ value: [5],
+ isMainValue: false
+ },
+ {
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}
+ },
+ table:{
+ width:180
}
},
{
@@ -63,6 +95,25 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive([
componentProps: {
disabled:true
}
+ },
+ search:{
+ component:'Select',
+ value:custormList.length>1?[custormList[0]['customerCode']]:[],
+ componentProps: {
+ showAll:true,// 备用做全选
+ multiple:true,
+ // emptyValues:[null, undefined],
+ valueOnClear:null,
+ options:custormList.length>0?custormList.map(item=>({
+ label:item.customerName,
+ value:item.customerCode
+ })):[]
+
+ }
+
+ },
+ table:{
+ width:150
}
},
{
@@ -73,16 +124,22 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive([
componentProps: {
disabled: true
}
+ },
+ table:{
+ width:150
}
},
{
label: '未税金额',
- field: 'mainBeforeTaxAmount',
+ field: 'beforeTaxAmount',
sort: 'custom',
form: {
componentProps: {
disabled: true
}
+ },
+ table:{
+ width:150
}
},
{
@@ -98,28 +155,37 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive([
},
{
label: '税额',
- field: 'mainTaxAmount',
+ field: 'taxAmount',
sort: 'custom',
form: {
componentProps: {
disabled: true
}
+ },
+ table:{
+ width:150
}
},
{
label: '价税合计金额',
- field: 'mainAdTaxAmount',
+ field: 'adTaxAmount',
sort: 'custom',
form: {
componentProps: {
disabled: true
}
+ },
+ table:{
+ width:150
}
},
{
label: '金税票号',
field: 'goldenTaxInvoiceNumber',
sort: 'custom',
+ table:{
+ width:150
+ }
},
{
label: '开票日期',
@@ -141,12 +207,17 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive([
valueFormat: 'x'
}
},
+ table:{
+ width:180
+ }
},
-
{
label: '备注',
field: 'remark',
sort: 'custom',
+ table:{
+ width:150
+ }
},
{
label: '创建时间',
@@ -162,6 +233,9 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive([
}
},
isForm: false,
+ table:{
+ width:180
+ }
},
{
label: '操作',
@@ -248,23 +322,15 @@ export const CustomerSaleInvoiceDetail = useCrudSchemas(reactive([
isSearch: true,
form: {
componentProps: {
- enterSearch: true,
- isSearchList: true, // 开启查询弹窗
- searchListPlaceholder: '请选择客户对账单', // 输入框占位文本
- searchField: '', // 查询弹窗赋值字段
- searchTitle: '客户对账单信息', // 查询弹窗标题
- searchAllSchemas: CustomerStatementMain.allSchemas, // 查询弹窗所需类
- searchPage: CustomerStatementMainApi.getCustomerStatementMainPage, // 查询弹窗所需分页方法
- searchCondition: [{
- key: 'available',
- value: 'TRUE',
- isMainValue: false
- }]
+ type: 'InputNumber',
+ precision: 2,
+ disabled: true
}
},
tableForm: {
type: 'InputNumber',
precision: 2,
+ disabled: true
}
},
{
@@ -274,11 +340,13 @@ export const CustomerSaleInvoiceDetail = useCrudSchemas(reactive([
isSearch: true,
form: {
componentProps: {
+ type: 'InputNumber',
disabled: true
}
},
tableForm: {
type: 'InputNumber',
+ disabled: true
}
},
{
@@ -325,12 +393,15 @@ export const CustomerSaleInvoiceDetail = useCrudSchemas(reactive([
sort: 'custom',
form: {
componentProps: {
+ type: 'InputNumber',
+ precision: 2,
disabled: true
}
},
tableForm: {
type: 'InputNumber',
precision: 2,
+ disabled: true
}
},
{
@@ -348,5 +419,14 @@ export const CustomerSaleInvoiceDetail = useCrudSchemas(reactive([
type: 'InputNumber',
}
},
+ {
+ label: '操作',
+ field: 'action',
+ isForm: false,
+ table: {
+ width: 150,
+ fixed: 'right'
+ }
+ }
]))
diff --git a/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/index.vue b/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/index.vue
index 9a5c93b3d..d960b2589 100644
--- a/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/index.vue
+++ b/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/index.vue
@@ -1,7 +1,7 @@
-
+
@@ -41,8 +41,9 @@
@@ -284,71 +287,17 @@ const butttondata = (row,$index) => {
// defaultButtons.mainListPlanSubBtn({hide:isShowMainButton(row,['1']),hasPermi:`wms:customer-sale-invoice-request-main:submit`}), // 提交审批
// defaultButtons.mainListPlanTurBtn({hide:isShowMainButton(row,['2']),hasPermi:`wms:customer-sale-invoice-request-main:reject`}), // 驳回
// defaultButtons.mainListPlanAppBtn({hide:isShowMainButton(row,['2']),hasPermi:`wms:customer-sale-invoice-request-main:agree`}), // 审批通过
- defaultButtons.mainListPlanPubBtn({hide:isShowMainButton(row,['3']),hasPermi:`wms:customer-sale-invoice-request-main:publish`}), // 发布
+ defaultButtons.mainListPlanPubBtn({hide:isShowMainButton(row,['0']),hasPermi:`wms:customer-sale-invoice-request-main:publish`}), // 发布
// defaultButtons.mainListPlanResBtn({hide:isShowMainButton(row,['4']),hasPermi:`wms:customer-sale-invoice-request-main:resetting`}), // 重置
- defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['1']),hasPermi:`wms:customer-sale-invoice-request-main:update`}), // 编辑
- defaultButtons.mainListCancelBtn({hide: isShowMainButton(row,['5']),hasPermi:'wms:customer-sale-invoice-request-main:cancel'}), //作废
+ defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['0']),hasPermi:`wms:customer-sale-invoice-request-main:update`}), // 编辑
+ defaultButtons.mainListCancelBtn({hide: isShowMainButton(row,['0']),hasPermi:'wms:customer-sale-invoice-request-main:cancel'}), //作废
]
}
// 列表-操作按钮事件
const buttonTableClick = async (val, row) => {
- if (val == 'mainPlanOpe') { // 打开
- tableObject.loading = true
- CustomerSaleInvoiceMainApi.open(row.masterId).then(() => {
- message.success(t('common.updateSuccess'))
- tableObject.loading = false
- buttonBaseClick('refresh',null)
- }).catch(err => {
- tableObject.loading = false
- console.log(err)
- })
- } else if (val == 'mainPlanClo') { // 关闭
- await message.confirm('确认要关闭吗?')
- tableObject.loading = true
- CustomerSaleInvoiceMainApi.close(row.masterId).then(() => {
- message.success(t('common.updateSuccess'))
- tableObject.loading = false
- buttonBaseClick('refresh',null)
- }).catch(err => {
- tableObject.loading = false
- console.log(err)
- })
- } else if (val == 'mainPlanSub') { // 提交审批
- await message.confirm('确认要提交审批吗?')
- tableObject.loading = true
- CustomerSaleInvoiceMainApi.submit(row.masterId).then(() => {
- message.success(t('common.updateSuccess'))
- tableObject.loading = false
- buttonBaseClick('refresh',null)
- }).catch(err => {
- tableObject.loading = false
- console.log(err)
- })
- } else if (val == 'mainPlanTur') { // 驳回
- await message.confirm('确认要驳回吗?')
- tableObject.loading = true
- CustomerSaleInvoiceMainApi.reject(row.masterId).then(() => {
- message.success(t('common.updateSuccess'))
- tableObject.loading = false
- buttonBaseClick('refresh',null)
- }).catch(err => {
- tableObject.loading = false
- console.log(err)
- })
- } else if (val == 'mainPlanApp') { // 审批通过
- await message.confirm('确认要审批通过吗?')
- tableObject.loading = true
- CustomerSaleInvoiceMainApi.agree(row.masterId).then(() => {
- message.success(t('common.updateSuccess'))
- tableObject.loading = false
- buttonBaseClick('refresh',null)
- }).catch(err => {
- tableObject.loading = false
- console.log(err)
- })
- } else if (val == 'mainPlanPub') { // 发布
+ if (val == 'mainPlanPub') { // 发布
await message.confirm('确认要发布吗?')
tableObject.loading = true
CustomerSaleInvoiceMainApi.publish(row.id).then(() => {
@@ -360,11 +309,11 @@ const buttonTableClick = async (val, row) => {
console.log(err)
})
} else if (val == 'cancel') { // 作废
- tableObject.loading = true
try {
await message.confirm('确认要作废吗?')
+ tableObject.loading = true
await CustomerSaleInvoiceMainApi.nodeAbrogate(row.id)
- await message.success(t('ts.作废成功'))
+ message.success(t('common.updateSuccess'))
// 发起导出
//exportLoading.value = true
} catch {
@@ -372,27 +321,22 @@ const buttonTableClick = async (val, row) => {
// 刷新列表
buttonBaseClick('refresh',null)
}
- } else if (val == 'mainPlanRes') { // 重置
- await message.confirm('确认要重置吗?')
- tableObject.loading = true
- CustomerSaleInvoiceMainApi.resetting(row.masterId).then(() => {
- message.success(t('common.updateSuccess'))
- tableObject.loading = false
- buttonBaseClick('refresh',null)
- }).catch(err => {
- tableObject.loading = false
- console.log(err)
- })
} else if (val == 'edit') { // 编辑
openForm('update', row)
- } else if (val == 'delete') { // 删除
- handleDelete(row.masterId)
}
}
/** 添加/修改操作 */
const formRef = ref()
-const openForm =async (type: string, row?: number) => {
+const openForm =async (type: string, row?: any) => {
+ CustomerSaleInvoiceMain.allSchemas.formSchema.forEach((item) => {
+ if(item.field == 'customerStatementNumber'){
+ item.componentProps.disabled = type=='update'
+ item.componentProps.isSearchList = type!='update'
+ item.componentProps.enterSearch = type!='update'
+
+ }
+ })
tableData.value = [] // 重置明细数据
formRef.value.open(type, row)
}
@@ -577,7 +521,27 @@ const searchFormClick = (searchData) => {
}
getList() // 刷新当前列表
}
-
+const seachRef = ref()
+const onSearchChange = (field, value)=>{
+ if(field=='customerCode'){
+ if(value.length>0){
+ if(value[value.length-1]=='ALL'){
+ //全选
+ seachRef.value.setFormValues({
+ customerCode:['ALL']
+ })
+ }else{
+ seachRef.value.setFormValues({
+ customerCode:value.filter(item=>item!='ALL')
+ })
+ }
+ }
+ }
+}
+const searchClick = async (data)=>{
+ console.log('查询',data)
+ setSearchParams({...data,customerCode:data.customerCode.filter(item=>item!='ALL')})
+}
/** 初始化 **/
onMounted(async () => {
getList()
From fe08b32a5d12511d26ccbf4e0b223c032cc79f08 Mon Sep 17 00:00:00 2001
From: zhaoyiran
Date: Tue, 19 Nov 2024 16:08:35 +0800
Subject: [PATCH 15/35] YT-791
---
.../productredressRequestMain.data.ts | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/views/wms/productionManage/productredress/productredressRequestMain/productredressRequestMain.data.ts b/src/views/wms/productionManage/productredress/productredressRequestMain/productredressRequestMain.data.ts
index b9c38492f..04f368239 100644
--- a/src/views/wms/productionManage/productredress/productredressRequestMain/productredressRequestMain.data.ts
+++ b/src/views/wms/productionManage/productredress/productredressRequestMain/productredressRequestMain.data.ts
@@ -27,6 +27,9 @@ export const ProductredressRequestMainRules = reactive({
workshopCode: [
{ required: true, message: '请选择车间代码', trigger: 'change' }
],
+ productionLineCode: [
+ { required: true, message: '请选择生产线', trigger: 'change' }
+ ],
workStationCode: [
{ required: true, message: '请选择工位代码', trigger: 'change' }
],
From 8fb48c2b4d22df41ff06f0ac30254ea9a31dcea1 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Tue, 19 Nov 2024 16:10:01 +0800
Subject: [PATCH 16/35] =?UTF-8?q?YT-1078=E7=94=9F=E4=BA=A7=E9=80=80?=
=?UTF-8?q?=E6=96=99=E7=94=B3=E8=AF=B7=E5=88=9B=E5=BB=BA=E6=A0=87=E7=AD=BE?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=B8=8D=E5=BA=94=E8=AF=A5=E5=90=8C=E6=97=B6?=
=?UTF-8?q?=E6=98=BE=E7=A4=BA=E2=80=9C=E6=A0=87=E7=AD=BE=E7=94=9F=E4=BA=A7?=
=?UTF-8?q?=E7=BA=BF=E4=BB=A3=E7=A0=81=E2=80=9D=E5=92=8C=E2=80=9C=E6=A0=87?=
=?UTF-8?q?=E7=AD=BE=E4=BE=9B=E5=BA=94=E5=95=86=E4=BB=A3=E7=A0=81=E2=80=9D?=
=?UTF-8?q?=E5=AD=97=E6=AE=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../productionreturnRequestMain/index.vue | 44 +++++--------------
1 file changed, 11 insertions(+), 33 deletions(-)
diff --git a/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue b/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue
index b34096e2f..59ab3f8b5 100644
--- a/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue
+++ b/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue
@@ -83,7 +83,7 @@
ref="formLabelRef"
@success="getList"
:tableAllSchemas="detailListTableColumns"
- :tableFormRules="ProductionreturnRequestDetailLabelRules"
+ :tableFormRules="detailListTableColumnsRules"
:tableData="detatableData.tableList"
:isBusiness="true"
:isShowButton="false"
@@ -118,6 +118,7 @@ import * as LocationApi from '@/api/wms/location'
import * as SupplieritemApi from '@/api/wms/supplieritem'
import * as ProductionlineitemApi from '@/api/wms/productionlineitem'
const { loadStart, loadDone } = usePageLoading()
+import { cloneDeep } from 'lodash-es'
// 生产退料申请
defineOptions({ name: 'ProductionreturnRequestMain' })
@@ -130,7 +131,8 @@ routeName.value = route.name
const tableColumns = ref([...ProductionreturnRequestMain.allSchemas.tableColumns,...ProductionreturnRequestDetail.allSchemas.tableMainColumns])
//创建标签
-const detailListTableColumns = ProductionreturnRequestDetailLabel.allSchemas
+const detailListTableColumns =cloneDeep(ProductionreturnRequestDetailLabel.allSchemas)
+const detailListTableColumnsRules =cloneDeep(ProductionreturnRequestDetailLabel)
const isCreateLabel = ref(false)
const formLabelRef = ref()
const labelType = ref('') // 标签类别 采购还是制造等
@@ -558,15 +560,13 @@ const buttonTableClick = async (val, row) => {
}).then(res => {
if (res.list.length > 0) {
// 判断物料 可采购
+ detailListTableColumnsRules.value = cloneDeep(ProductionreturnRequestDetailLabelRules)
if (res.list[0].enableBuy == "TRUE") {
- // 修改 tableform 属性
+ detailListTableColumns.tableFormColumns = ProductionreturnRequestDetailLabel.allSchemas.tableFormColumns.filter(item=>item.field != 'productionLineCodePackage')
+ delete detailListTableColumnsRules.value.productionLineCodePackage
+ // 修改 tableform 属性
detailListTableColumns.tableFormColumns.map(itemColumns => {
- // 修改 tableform 属性
if(itemColumns.field == 'supplierItemCode') {
- itemColumns.tableForm.isInpuFocusShow = true
- itemColumns.tableForm.disabled = false
- ProductionreturnRequestDetailLabelRules.supplierItemCode[0].required = true
- formLabelRef.value.formLoading = true
SupplieritemApi.getSupplieritemPage({
pageSize: 10,
pageNo: 1,
@@ -579,27 +579,14 @@ const buttonTableClick = async (val, row) => {
})
}
})
-
- } else {
- // 修改 tableform 属性
- detailListTableColumns.tableFormColumns.map(itemColumns => {
- if(itemColumns.field == 'supplierItemCode') {
- itemColumns.tableForm.isInpuFocusShow = false
- itemColumns.tableForm.disabled = true
- ProductionreturnRequestDetailLabelRules.supplierItemCode[0].required = false
- }
- })
}
// 判断物料 可制造
if (res.list[0].enableMake == "TRUE") {
- // 修改 tableform 属性
+ // 修改 tableform 属性
+ detailListTableColumns.tableFormColumns = ProductionreturnRequestDetailLabel.allSchemas.tableFormColumns.filter(item=>item.field != 'supplierItemCode')
+ delete detailListTableColumnsRules.value.supplierItemCode
detailListTableColumns.tableFormColumns.map(itemColumns => {
if(itemColumns.field == 'productionLineCodePackage') {
- item.productionLineCodePackage = item.productionLineCode
- itemColumns.tableForm.isInpuFocusShow = true
- itemColumns.tableForm.disabled = true
- ProductionreturnRequestDetailLabelRules.productionLineCodePackage[0].required = true
- formLabelRef.value.formLoading = true
ProductionlineitemApi.getProductionlineitemPage({
pageNo: 1,
code: item.itemCode,
@@ -611,15 +598,6 @@ const buttonTableClick = async (val, row) => {
})
}
})
- } else {
- // 修改 tableform 属性
- detailListTableColumns.tableFormColumns.map(itemColumns => {
- if(itemColumns.field == 'productionLineCodePackage') {
- itemColumns.tableForm.isInpuFocusShow = false
- itemColumns.tableForm.disabled = true
- ProductionreturnRequestDetailLabelRules.productionLineCodePackage[0].required = false
- }
- })
}
} else {
message.warning('没有查询到物料代码:【' + item.itemCode + '】')
From c1c74a3702823bb16f6aa0a6744efd55223cb265 Mon Sep 17 00:00:00 2001
From: zhaoyiran
Date: Tue, 19 Nov 2024 16:12:24 +0800
Subject: [PATCH 17/35] =?UTF-8?q?YT-879=E5=B1=82=E7=BA=A7=E9=9A=90?=
=?UTF-8?q?=E8=97=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/wms/basicDataManage/itemManage/bom/bom.data.ts | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/views/wms/basicDataManage/itemManage/bom/bom.data.ts b/src/views/wms/basicDataManage/itemManage/bom/bom.data.ts
index 2b03e0a20..4d9eee3a4 100644
--- a/src/views/wms/basicDataManage/itemManage/bom/bom.data.ts
+++ b/src/views/wms/basicDataManage/itemManage/bom/bom.data.ts
@@ -151,6 +151,7 @@ export const Bom = useCrudSchemas(reactive([
label: '层级',
field: 'layer',
sort: 'custom',
+ isTable:false,
// form: {
// component: 'Input',
// componentProps: {
From 05f950012be082913c53573ecf7e00cdd91f0ba6 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Tue, 19 Nov 2024 16:19:50 +0800
Subject: [PATCH 18/35] =?UTF-8?q?YT-1081=E7=94=9F=E4=BA=A7=E9=80=80?=
=?UTF-8?q?=E6=96=99=E7=94=B3=E8=AF=B7=E5=88=9B=E5=BB=BA=E6=A0=87=E7=AD=BE?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2=EF=BC=8C=E6=A0=87=E7=AD=BE=E4=BE=9B=E5=BA=94?=
=?UTF-8?q?=E5=95=86=E4=BB=A3=E7=A0=81=E5=AD=97=E6=AE=B5=E9=BB=98=E8=AE=A4?=
=?UTF-8?q?=E5=80=BC=E4=B8=8D=E6=AD=A3=E7=A1=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../productionreturn/productionreturnRequestMain/index.vue | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue b/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue
index 59ab3f8b5..eed1ca90a 100644
--- a/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue
+++ b/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue
@@ -547,7 +547,6 @@ const buttonTableClick = async (val, row) => {
await getDetailList()
// 打开创建标签页面
// dialogVisible.value = true
- formLabelRef.value.open('create', row)
detatableData.tableList.map((item) => {
// item.batch = '000000'
// 查询物料类型 原料 只能选择 供应商代码 半成品成品其他 只能选择 生产线
@@ -570,7 +569,7 @@ const buttonTableClick = async (val, row) => {
SupplieritemApi.getSupplieritemPage({
pageSize: 10,
pageNo: 1,
- code: item.itemCode,
+ itemCode: item.itemCode,
sort: '',
by: 'ASC',
}).then(response => {
@@ -589,7 +588,7 @@ const buttonTableClick = async (val, row) => {
if(itemColumns.field == 'productionLineCodePackage') {
ProductionlineitemApi.getProductionlineitemPage({
pageNo: 1,
- code: item.itemCode,
+ itemCode: item.itemCode,
sort: '',
by: 'ASC',
}).then(response => {
@@ -603,6 +602,8 @@ const buttonTableClick = async (val, row) => {
message.warning('没有查询到物料代码:【' + item.itemCode + '】')
return
}
+
+ formLabelRef.value.open('create', row)
})
})
From 33a3da3711212630d2087c6e6c890b59afb58dd2 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Tue, 19 Nov 2024 16:22:11 +0800
Subject: [PATCH 19/35] =?UTF-8?q?YT-1072=E7=94=9F=E4=BA=A7=E9=80=80?=
=?UTF-8?q?=E6=96=99=E7=94=B3=E8=AF=B7=E6=96=B0=E5=A2=9E=E9=A1=B5=E9=9D=A2?=
=?UTF-8?q?=EF=BC=8C=E6=89=B9=E6=AC=A1=E4=B8=8D=E5=BA=94=E8=AF=A5=E5=8F=AF?=
=?UTF-8?q?=E4=BB=A5=E7=BC=96=E8=BE=91=EF=BC=8C=E7=9B=AE=E5=89=8D=E5=8F=AF?=
=?UTF-8?q?=E7=BC=96=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../productionreturnRequestMain/index.vue | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue b/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue
index eed1ca90a..95a6c30c7 100644
--- a/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue
+++ b/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue
@@ -263,13 +263,13 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
}).then((res) => {
fromManagementPrecision.value = res[0].ManagementPrecision
})
- if (fromManagementPrecision.value == 'BY_QUANTITY') {
- newRow['batchFormItemType'] = 'FormDate'
- newRow['disabled_batch'] = false
- } else {
- newRow['batchFormItemType'] = ''
- newRow['disabled_batch'] = true
- }
+ // if (fromManagementPrecision.value == 'BY_QUANTITY') {
+ // newRow['batchFormItemType'] = 'FormDate'
+ // newRow['disabled_batch'] = false
+ // } else {
+ // newRow['batchFormItemType'] = ''
+ // newRow['disabled_batch'] = true
+ // }
if(tableData.value.find(item1=>item1['itemCode'] == item['itemCode'])){
messageItemCodes.push(item['itemCode'])
From f60929923f8774541f626de0b10d6cfa71920151 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Tue, 19 Nov 2024 16:39:42 +0800
Subject: [PATCH 20/35] YT-1096YT-1088YT-1091
---
.../PurchaseClaimRequestMain.data.ts | 10 +++++++---
.../purchaseClaimRequest/index.vue | 17 +++++++++++++++--
2 files changed, 22 insertions(+), 5 deletions(-)
diff --git a/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/PurchaseClaimRequestMain.data.ts b/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/PurchaseClaimRequestMain.data.ts
index d9c899cb3..1de46e92e 100644
--- a/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/PurchaseClaimRequestMain.data.ts
+++ b/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/PurchaseClaimRequestMain.data.ts
@@ -96,6 +96,9 @@ export const PurchaseClaimRequestMain = useCrudSchemas(reactive([
valueFormat: 'x'
}
},
+ detail: {
+ dateFormat:'YYYY-MM-DD HH:mm:ss'
+ }
},
{
label: '供应商发票申请单号',
@@ -203,8 +206,9 @@ export const PurchaseClaimRequestDetail = useCrudSchemas(reactive(
table: {
},
tableForm:{
- multiple:false,//多选
- isInpuFocusShow: true, // 开启查询弹窗
+ multiple: true,//多选
+ isInpuFocusShow: false, // 开启查询弹窗
+ disabled:true,
searchListPlaceholder: '请选择物料代码',// 输入框占位文本
searchField: 'itemCode', // 查询弹窗赋值字段
searchTitle: '供应商物料信息', // 查询弹窗标题
@@ -227,7 +231,7 @@ export const PurchaseClaimRequestDetail = useCrudSchemas(reactive(
isMainValue: false
}],
verificationPage: ItembasicApi.getItemListByCodes, // tableForm下方输入框校验失去焦点之后是否正确的方法
- isShowTableFormSearch: false, //tableForm下方是否出现输入框
+ isShowTableFormSearch: true, //tableForm下方是否出现输入框
verificationParams: [{
key: 'itemCode',
action: '==',
diff --git a/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/index.vue b/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/index.vue
index c1b32b578..69b98c380 100644
--- a/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/index.vue
+++ b/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/index.vue
@@ -50,7 +50,7 @@
{
/** 添加/修改操作 */
const formRef = ref()
-const openForm = async (type: string, row?: number) => {
+const openForm = async (type: string, row?: any) => {
tableData.value = [] // 重置明细数据
+ if (row?.id) {
+ PurchaseClaimRequestMain.allSchemas.formSchema.forEach(item => {
+ if (item.field == 'supplierCode') {
+ item.componentProps.isSearchList = false
+ }
+ })
+ } else {
+ PurchaseClaimRequestMain.allSchemas.formSchema.forEach(item => {
+ if (item.field == 'supplierCode') {
+ item.componentProps.isSearchList = true
+ }
+ })
+ }
formRef.value.open(type, row)
}
/** 详情操作 */
From f95465e509970b4ea5043c42fce0d1e18ecbf699 Mon Sep 17 00:00:00 2001
From: yufei_wang <2267742828@qq.com>
Date: Tue, 19 Nov 2024 17:07:46 +0800
Subject: [PATCH 21/35] =?UTF-8?q?=E9=94=80=E5=94=AE=E5=BC=80=E7=A5=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../CustomerSaleInvoiceBasicForm.vue | 250 +++++++++++++++++
.../customerSaleInvoiceRequestMain/index.vue | 257 +-----------------
2 files changed, 255 insertions(+), 252 deletions(-)
create mode 100644 src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue
diff --git a/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue b/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue
new file mode 100644
index 000000000..d16bb0b12
--- /dev/null
+++ b/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue
@@ -0,0 +1,250 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/index.vue b/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/index.vue
index d960b2589..5b5e64477 100644
--- a/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/index.vue
+++ b/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/index.vue
@@ -39,49 +39,7 @@
-
+
import download from '@/utils/download'
+import CustomerSaleInvoiceBasicForm from './CustomerSaleInvoiceBasicForm.vue'
import { CustomerSaleInvoiceMain,CustomerSaleInvoiceMainRules,CustomerSaleInvoiceDetailRules,CustomerSaleInvoiceDetail} from './customerSaleInvoiceRequestMain.data'
import * as CustomerSaleInvoiceMainApi from '@/api/wms/customerSaleInvoiceMain'
import * as CustomerSaleInvoiceDetailApi from '@/api/wms/customerSaleInvoiceDetail'
@@ -143,68 +102,7 @@ const updataTableColumns = (val) => {
tableColumns.value = val
}
-// 查询页面返回
-const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => {
- nextTick(async () => {
- if (type == 'tableForm') {
- if(formField == 'itemCode') {
- let itemCodes = val.filter(item=>tableData.value.find(item1=>item1['itemCode']==item['itemCode']))
- if(itemCodes.length>0){
- itemCodes = itemCodes.map(item=>(item['itemCode']))
- message.warning(`物料${itemCodes.join(',')}已经存在`)
- }
- val = val.filter(item=>!tableData.value.find(item1=>item1['itemCode']==item['itemCode']))
- if(val.length==0) return
- val.forEach(item=>{
- const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item}))
- row[formField] = item[searchField]
- newRow['uom'] = item['customerUom']
- newRow['id'] = item['id']
- tableData.value.push(newRow)
- })
- }else{
- row[formField] = val[0][searchField]
- }
- // if(formField == 'itemCode') {
- // row['uom'] = val[0]['customerUom']
- // }
- // 明细查询页赋值
-
- } else {
- const setV = {}
- if(formField == 'customerStatementNumber') {
- //客户对账单
- setV['customerCode'] = val[0]['customerCode']
- setV['customerName'] = val[0]['customerName']
- CustomerStatementDetailApi.getCustomerStatementDetailPage({
- pageNo:1,
- pageNSize: 100,
- masterId:val[0]['id']
- }).then((res) => {
- console.log(55,res)
- tableData.value = res.list && res.list.length > 0 ?res.list : []
- tableData.value.forEach(item=>{
- item['sumPrice'] = item['price'] + item['allocationPrice']
- // 未税金额 默认等于数量*合计单价,可修改,必填,最多可输入2位小数
- item['beforeTaxAmount'] = item['sumPrice']*item['qty']
- // 含税金额 未税价格+税额,四舍五入保留2位小数
- item['afterTaxAmount'] = item['beforeTaxAmount'] + item['taxAmount'] //含税金额
-
- // 税额:taxAmount 未税价格*税率/100,四舍五入保留2位小数
- item['taxAmount'] = (item['beforeTaxAmount'] * formRef.formModel['taxRate'])/100 //含税金额
-
-
- })
-
- })
- // tableData.value = []
-
- }
- setV[formField] = val[0][searchField]
- formRef.setValues(setV)
- }
- })
-}
+
// 查询页面返回——详情
const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
nextTick(() => {
@@ -282,13 +180,7 @@ const butttondata = (row,$index) => {
return []
}
return [
- // defaultButtons.mainListPlanOpeBtn({hide:isShowMainButton(row,['5']),hasPermi:`wms:customer-sale-invoice-request-main:open`}), // 打开
- // defaultButtons.mainListPlanCloBtn({hide:isShowMainButton(row,['1','2','3','4']),hasPermi:`wms:customer-sale-invoice-request-main:close`}), // 关闭
- // defaultButtons.mainListPlanSubBtn({hide:isShowMainButton(row,['1']),hasPermi:`wms:customer-sale-invoice-request-main:submit`}), // 提交审批
- // defaultButtons.mainListPlanTurBtn({hide:isShowMainButton(row,['2']),hasPermi:`wms:customer-sale-invoice-request-main:reject`}), // 驳回
- // defaultButtons.mainListPlanAppBtn({hide:isShowMainButton(row,['2']),hasPermi:`wms:customer-sale-invoice-request-main:agree`}), // 审批通过
defaultButtons.mainListPlanPubBtn({hide:isShowMainButton(row,['0']),hasPermi:`wms:customer-sale-invoice-request-main:publish`}), // 发布
- // defaultButtons.mainListPlanResBtn({hide:isShowMainButton(row,['4']),hasPermi:`wms:customer-sale-invoice-request-main:resetting`}), // 重置
defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['0']),hasPermi:`wms:customer-sale-invoice-request-main:update`}), // 编辑
defaultButtons.mainListCancelBtn({hide: isShowMainButton(row,['0']),hasPermi:'wms:customer-sale-invoice-request-main:cancel'}), //作废
@@ -329,16 +221,7 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */
const formRef = ref()
const openForm =async (type: string, row?: any) => {
- CustomerSaleInvoiceMain.allSchemas.formSchema.forEach((item) => {
- if(item.field == 'customerStatementNumber'){
- item.componentProps.disabled = type=='update'
- item.componentProps.isSearchList = type!='update'
- item.componentProps.enterSearch = type!='update'
-
- }
- })
- tableData.value = [] // 重置明细数据
- formRef.value.open(type, row)
+ formRef.value.openForm(type,row)
}
/** 详情操作 */
@@ -347,20 +230,7 @@ const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue,'planDeliverMain')
}
-/** 删除按钮操作 */
-const handleDelete = async (id: number) => {
- try {
- // 删除的二次确认
- await message.delConfirm()
- tableObject.loading = true
- // 发起删除
- await CustomerSaleInvoiceMainApi.deleteCustomerSaleInvoiceMain(id)
- tableObject.loading = false
- message.success(t('common.delSuccess'))
- // 刷新列表
- buttonBaseClick('refresh',null)
- } catch {}
-}
+
/** 导出按钮操作 */
const handleExport = async () => {
@@ -378,123 +248,6 @@ const handleExport = async () => {
}
}
-/**
- * tableForm方法
-*/
-const tableFormKeys = {}
-CustomerSaleInvoiceDetail.allSchemas.tableFormColumns.forEach(item => {
- tableFormKeys[item.field] = item.default ? item.default : ''
-})
-const tableData = ref([])
-
-// 添加明细
-const handleAddTable = () => {
- tableData.value.push(JSON.parse(JSON.stringify(tableFormKeys)))
-}
-// 删除明细
-const handleDeleteTable = (item, index) => {
- let itemIndex = tableData.value.indexOf(item)
- if(itemIndex>-1){
- tableData.value.splice(itemIndex, 1)
- }
-}
-const tableSelectionDelete = (selection) => {
- tableData.value = tableData.value.filter(item => !selection.includes(item))
-}
-
-const onChange = (field, cur, formRef)=>{
-
- console.log('onChange',field, cur, formRef)
-
- if(field == 'taxRate'){
- // 税额:taxAmount 未税价格*税率/100,四舍五入保留2位小数
- tableData.value.forEach(item=>{
- item['taxAmount'] = (item['beforeTaxAmount'] * cur)/100 //含税金额
- })
- }
-}
-
-const inputNumberChange = (field, index, row, val) => {
- console.log('inputNumberChange',field, index, row, val)
- // 合计单价 = 销售单价 + 模具分摊单价
- row['sumPrice'] = row['price'] + row['allocationPrice']
-
- // 含税金额 = 未税价格+税额,四舍五入保留2位小数
- row['afterTaxAmount'] = row['beforeTaxAmount'] + row['taxAmount']
-
- // 模具分摊单价 默认从模具分摊对账单带出,未税金额修改后重新计算,等于未税金额/数量-销售单价
- row['allocationPrice'] = row['beforeTaxAmount']/row['qty'] - row['price']
-
-
-}
-//为true表示子表数据中存在数量为0的数据
-const flag = ref(false)
-
-// 主子数据 提交
-const submitForm = async (formType, submitData) => {
- let data = {...submitData}
- if(data.masterId){
- data.id = data.masterId
- }
- data.subList = tableData.value // 拼接子表数据参数
- data.subList.forEach(item=>{
- item.toWarehouseCode = data.toWarehouseCode
- item.toLocationCode = data.toLocationCode
- })
- data.businessType = businessType.value
- // 判断是否重复物料
- let isExist = false
- tableData.value.forEach(item => {
- let rs = tableData.value.filter(filterItem => (filterItem.itemCode == item.itemCode))
- if(rs.length > 1) isExist = true
- })
- if (isExist) {
- formRef.value.formLoading = false
- return message.warning('物料代码重复')
- }
- data.subList.forEach(obj => {
- if(obj.qty == 0){
- message.error(`数量不能为0!`)
- flag.value = true
- return;
- }
- })
- if(flag.value){
- return
- }
- var isHave =CustomerSaleInvoiceMain.allSchemas.formSchema.some(function (item) {
- return item.field === 'beginTime' || item.field === 'endTime';
- });
- if(isHave){
- if(data.beginTime && data.endTime && data.beginTime >=data.expireTime){
- message.error('结束时间要大于开始时间')
- return;
- }
- }
- console.log(data.beginTime)
- if(!data.beginTime)data.beginTime = null;
- if(!data.planDate)data.planDate = null;
- if(!data.endTime)data.endTime = null;
- formRef.value.formLoading = true
- try {
- if (formType === 'create') {
- await CustomerSaleInvoiceMainApi.createCustomerSaleInvoiceMain(data)
- message.success(t('common.createSuccess'))
- } else {
- await CustomerSaleInvoiceMainApi.updateCustomerSaleInvoiceMain(data)
- message.success(t('common.updateSuccess'))
- }
- formRef.value.dialogVisible = false
- // 刷新当前列表
- if (formType === 'create') {
- getList()
- }else{
- buttonBaseClick('refresh',null)
- }
- } finally {
- formRef.value.formLoading = false
- }
-}
/** 导入 */
const importFormRef = ref()
From da48dfe6d5fef03a18ffe4dfe0ffcfca2d08b797 Mon Sep 17 00:00:00 2001
From: zhaoyiran
Date: Tue, 19 Nov 2024 19:40:51 +0800
Subject: [PATCH 22/35] =?UTF-8?q?YT-1098=E7=89=A9=E6=96=99=E5=8C=85?=
=?UTF-8?q?=E8=A3=85=E4=BF=A1=E6=81=AF=EF=BC=8C=E7=BC=BA=E5=B0=91=E7=89=A9?=
=?UTF-8?q?=E6=96=99=E5=90=8D=E7=A7=B0=E3=80=81=E5=A4=87=E6=B3=A8=E5=AD=97?=
=?UTF-8?q?=E6=AE=B5=EF=BC=9B=E6=95=B0=E6=8D=AE=E6=9D=A5=E6=BA=90=EF=BC=8C?=
=?UTF-8?q?=E5=BA=94=E6=98=AF=E4=B8=8B=E6=8B=89=E9=80=89?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/utils/dict.ts | 1 +
.../itemManage/itempackage/index.vue | 1 +
.../itempackage/itempackage.data.ts | 36 ++++++++++++++++++-
3 files changed, 37 insertions(+), 1 deletion(-)
diff --git a/src/utils/dict.ts b/src/utils/dict.ts
index 8755f5c6e..57bdadce7 100644
--- a/src/utils/dict.ts
+++ b/src/utils/dict.ts
@@ -283,6 +283,7 @@ export enum DICT_TYPE {
CONTAINER_STATUS = 'container_status', // 容器状态
PREDICT_TIME_TYPE = 'predict_time_type', // 预测时间类型
PACK_UNIT_TYPE = 'pack_unit_type', // 包装规格类型
+ PACK_DATA_SOURCE = 'pack_data_source', // 物料包装数据来源
TRANSFER_REASON = 'transfer_reason', // 调拨出入库原因
PURCHASERECEIPT_SOURCE_TYPE = 'purchasereceipt_source_type', //采购收货数据来源
PLAN_PRODUCTION_TYPE = 'plan_production_type', // 生产计划类型
diff --git a/src/views/wms/basicDataManage/itemManage/itempackage/index.vue b/src/views/wms/basicDataManage/itemManage/itempackage/index.vue
index 6037ec1dc..358c4d3ef 100644
--- a/src/views/wms/basicDataManage/itemManage/itempackage/index.vue
+++ b/src/views/wms/basicDataManage/itemManage/itempackage/index.vue
@@ -357,6 +357,7 @@ const searchTableSuccess = (formField, searchField, val, formRef) => {
const setV = {}
setV[formField] = val[0][searchField]
if('itemCode'==formField){
+ setV['itemName'] = val[0]['name']
setV['uom'] = val[0]['uom']
}
if('packUnit'==formField){
diff --git a/src/views/wms/basicDataManage/itemManage/itempackage/itempackage.data.ts b/src/views/wms/basicDataManage/itemManage/itempackage/itempackage.data.ts
index 2fed930a9..e9004c76c 100644
--- a/src/views/wms/basicDataManage/itemManage/itempackage/itempackage.data.ts
+++ b/src/views/wms/basicDataManage/itemManage/itempackage/itempackage.data.ts
@@ -46,6 +46,24 @@ export const Itempackaging = useCrudSchemas(reactive([
}
}
},
+ {
+ label: '物料名称',
+ field: 'itemName',
+ sort: 'custom',
+ isSearch: false,
+ table: {
+ width: 120
+ },
+ form: {
+ componentProps: {
+ disabled: true
+ }
+ },
+ isTable:true,
+ isTableForm:true,
+ isForm:true,
+ isDetail:true
+ },
{
label: '计量单位',
field: 'uom',
@@ -56,7 +74,8 @@ export const Itempackaging = useCrudSchemas(reactive([
isTable: true,
table: {
width: 120
- },form: {
+ },
+ form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
disabled: true
@@ -231,10 +250,25 @@ export const Itempackaging = useCrudSchemas(reactive([
field: 'dataSource',
sort: 'custom',
isForm:false,
+ dictType: DICT_TYPE.PACK_DATA_SOURCE,
+ dictClass: 'string',
table: {
width: 180
},
},
+ {
+ label: '备注',
+ field: 'remark',
+ sort: 'custom',
+ isSearch: false,
+ table: {
+ width: 120
+ },
+ isTable:true,
+ isTableForm:true,
+ isForm:true,
+ isDetail:true
+ },
{
label: '创建时间',
field: 'createTime',
From b8c28119e3989c06193e8df208a6177e49dab6b8 Mon Sep 17 00:00:00 2001
From: "YEJIAXING-PC\\lenovo" <591141169@qq.com>
Date: Tue, 19 Nov 2024 22:23:33 +0800
Subject: [PATCH 23/35] =?UTF-8?q?=E9=87=87=E8=B4=AD=E7=B4=A2=E8=B5=94?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9BUG=20=20YT-309?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/wms/purchaseClaimRequestMain/index.ts | 9 +++++
.../PurchaseClaimRecordMain.data.ts | 10 ++++++
.../PurchaseClaimRequestMain.data.ts | 2 +-
.../purchaseClaimRequest/index.vue | 33 ++++++++++++++++---
4 files changed, 49 insertions(+), 5 deletions(-)
diff --git a/src/api/wms/purchaseClaimRequestMain/index.ts b/src/api/wms/purchaseClaimRequestMain/index.ts
index 9a7356333..e9805950d 100644
--- a/src/api/wms/purchaseClaimRequestMain/index.ts
+++ b/src/api/wms/purchaseClaimRequestMain/index.ts
@@ -44,6 +44,15 @@ export const deletePurchaseClaimRequestMain = async (id: number) => {
return await request.delete({ url: `/wms/purchaseClaim-request-main/delete?id=` + id })
}
+// 关闭审批采购索赔
+export const closePurchaseClaimRequestMain = async (id: number) => {
+ return await request.put({ url: `/wms/purchaseClaim-request-main/close?id=` + id })
+}
+// 关闭审批采购索赔
+export const reAddPurchaseClaimRequestMain = async (id: number) => {
+ return await request.put({ url: `/wms/purchaseClaim-request-main/reAdd?id=` + id })
+}
+
// 提交审批采购索赔
export const subPurchaseClaimRequestMain = async (id: number) => {
return await request.post({ url: `/wms/purchaseClaim-request-main/sub?id=` + id })
diff --git a/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRecord/PurchaseClaimRecordMain.data.ts b/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRecord/PurchaseClaimRecordMain.data.ts
index da43783a0..daa19d2c8 100644
--- a/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRecord/PurchaseClaimRecordMain.data.ts
+++ b/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRecord/PurchaseClaimRecordMain.data.ts
@@ -29,6 +29,16 @@ export const PurchaseClaimRecordMain = useCrudSchemas(reactive([
width: 150
},
},
+ {
+ label: '申请单号',
+ field: 'requestNumber',
+ sort: 'custom',
+ isSearch: true,
+ isForm: false,
+ table: {
+ width: 150
+ },
+ },
{
label: '供应商代码',
field: 'supplierCode',
diff --git a/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/PurchaseClaimRequestMain.data.ts b/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/PurchaseClaimRequestMain.data.ts
index 1de46e92e..95be795cd 100644
--- a/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/PurchaseClaimRequestMain.data.ts
+++ b/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/PurchaseClaimRequestMain.data.ts
@@ -118,7 +118,7 @@ export const PurchaseClaimRequestMain = useCrudSchemas(reactive([
{
label: '状态',
field: 'status',
- dictType: DICT_TYPE.PURCHASECLAIM_REQUEST_STATUS,
+ dictType: DICT_TYPE.REQUEST_STATUS,
dictClass: 'string',
isTable: true,
isForm:false,
diff --git a/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/index.vue b/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/index.vue
index 69b98c380..e4fb200fc 100644
--- a/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/index.vue
+++ b/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/index.vue
@@ -239,7 +239,7 @@ const butttondata = (row, $index) => {
}
return [
defaultButtons.mainListPlanSubBtn({
- hide: isShowMainButton(row, ['0']),
+ hide: isShowMainButton(row, ['1']),
hasPermi: `wms:purchaseClaimRequest:sub`
}), // 提交审批
defaultButtons.mainListPlanAppBtn({
@@ -251,9 +251,12 @@ const butttondata = (row, $index) => {
hasPermi: `wms:purchaseClaimRequest:reject`
}), // 驳回
defaultButtons.mainListEditBtn({
- hide: isShowMainButton(row, ['0','2']),
+ hide: isShowMainButton(row, ['1']),
hasPermi: `wms:purchaseClaimRequest:update`
- }) // 编辑
+ }), // 编辑
+ defaultButtons.mainListCloseBtn({hide:isShowMainButton(row,['1','2','3']),hasPhasPermiermi:`wms:purchaseClaimRequest:close`}), // 关闭
+
+ defaultButtons.mainListReAddBtn({hide:isShowMainButton(row,['4']),hasPhasPermiermi:`wms:purchaseClaimRequest:reAdd`}), // 重新添加
]
}
@@ -277,7 +280,29 @@ const buttonTableClick = async (val, row) => {
else if (val == 'delete') {
// 删除
handleDelete(row.masterId)
- }
+ }else if (val == 'mainClose') { // 关闭
+ await message.confirm('确认要关闭吗?')
+ tableObject.loading = true
+ PurchaseClaimRequestMainApi.closePurchaseClaimRequestMain(row.masterId).then(() => {
+ message.success(t('common.updateSuccess'))
+ tableObject.loading = false
+ buttonBaseClick('refresh',null)
+ }).catch(err => {
+ tableObject.loading = false
+ console.log(err)
+ })
+ } else if (val == 'mainReAdd') { // 重新添加
+ await message.confirm('确认要重新添加吗?')
+ tableObject.loading = true
+ PurchaseClaimRequestMainApi.reAddPurchaseClaimRequestMain(row.masterId).then(() => {
+ message.success(t('common.updateSuccess'))
+ tableObject.loading = false
+ buttonBaseClick('refresh',null)
+ }).catch(err => {
+ tableObject.loading = false
+ console.log(err)
+ })
+ }
}
From 15c87776929e5c5aa763d090135902e05a1f4241 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Wed, 20 Nov 2024 08:51:58 +0800
Subject: [PATCH 24/35] =?UTF-8?q?YT-1092=E6=96=B0=E5=A2=9E=E7=8A=B6?=
=?UTF-8?q?=E6=80=81=E7=9A=84=E9=87=87=E8=B4=AD=E7=B4=A2=E8=B5=94=E7=94=B3?=
=?UTF-8?q?=E8=AF=B7=E6=98=8E=E7=BB=86=E5=BA=94=E8=AF=A5=E6=98=AF=E5=8F=AF?=
=?UTF-8?q?=E7=BC=96=E8=BE=91=E7=9A=84=EF=BC=8C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../supplierManage/purchaseClaim/purchaseClaimRequest/index.vue | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/index.vue b/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/index.vue
index e4fb200fc..57c23b3dc 100644
--- a/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/index.vue
+++ b/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/index.vue
@@ -78,6 +78,8 @@
:apiUpdate="PurchaseClaimRequestDetailApi.updatePurchaseClaimRequestDetail"
:apiPage="PurchaseClaimRequestDetailApi.getPurchaseClaimRequestDetailPage"
:apiDelete="PurchaseClaimRequestDetailApi.deletePurchaseClaimRequestDetail"
+ :detailButtonIsShowDelete="false"
+ :detailButtonIsShowAdd="false"
/>
Date: Wed, 20 Nov 2024 08:55:04 +0800
Subject: [PATCH 25/35] =?UTF-8?q?=E6=96=99=E7=AD=96=E7=95=A5=20=E5=92=8C?=
=?UTF-8?q?=20=E5=8F=91=E8=B4=A7=E7=AD=96=E7=95=A5=EF=BC=8C=E8=A7=84?=
=?UTF-8?q?=E5=88=99=E6=9D=A1=E4=BB=B6=E9=87=8C=E7=9A=84=E7=89=A9=E6=96=99?=
=?UTF-8?q?=E8=A6=81=E6=94=B9=E6=88=90=E6=94=BE=E5=A4=A7=E9=95=9C=E7=AD=9B?=
=?UTF-8?q?=E9=80=89?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../strategy/deliverStrategy/AddForm.vue | 40 +++++++++++++----
.../strategy/downShelfStrategy/AddForm.vue | 43 +++++++++++++++----
2 files changed, 66 insertions(+), 17 deletions(-)
diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/deliverStrategy/AddForm.vue b/src/views/wms/basicDataManage/strategySetting/strategy/deliverStrategy/AddForm.vue
index 7c56b4b18..d942b9216 100644
--- a/src/views/wms/basicDataManage/strategySetting/strategy/deliverStrategy/AddForm.vue
+++ b/src/views/wms/basicDataManage/strategySetting/strategy/deliverStrategy/AddForm.vue
@@ -167,14 +167,13 @@
v-else-if="item.ParamCode == 'Project'"
:disabled="formData.priority==0&&formType=='update'"
/>
-
+
+
+
+
+
+
+
@@ -483,6 +482,8 @@ import * as TransactiontypeApi from '@/api/wms/transactiontype'
import { Transactiontype } from '@/views/wms/basicDataManage/documentSetting/transactiontype/transactiontype.data'
import { Productionline } from '@/views/wms/basicDataManage/factoryModeling/productionline/productionline.data'
import * as ProductionlineApi from '@/api/wms/productionline'
+import * as ItembasicApi from '@/api/wms/itembasic'
+import { Itembasic} from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data'
import { Customer, CustomerRules } from '@/views/wms/basicDataManage/customerManage/customer/customer.data'
import * as CustomerApi from '@/api/wms/customer'
@@ -853,6 +854,21 @@ const blurCustomerList = async ()=>{
}
}
}
+
+//物料
+const searchItemCode = ()=>{
+ searchTableRef.value.open(
+ '请选择物料',
+ Itembasic.allSchemas,
+ ItembasicApi.getItembasicPage,
+ 'ItemCode',
+ 'code',
+ true,
+ undefined,
+ undefined,
+ undefined
+ )
+}
// 生产线
const searchTransactionType = ()=>{
searchTableRef.value.open(
@@ -960,6 +976,14 @@ const searchTableSuccess = (formField, searchField, val, type, row) => {
}
return
}
+ if(formField=='ItemCode'){
+ // 条件规则--物料
+ let itemCode = formData.value.condition.find(item=>item['ParamCode']=='ItemCode')
+ if(itemCode){
+ itemCode.Value = val.map(item=>(item['code'])).join(',')
+ }
+ return
+ }
// let searchTableTitle = warehouseType.value == 'WarehouseCode'?'请选择仓库':warehouseType.value == 'AreaCode'?'请选择库区':warehouseType.value == 'LocationGroupCode'?'请选择库位组':warehouseType.value == 'LocationCode'?'请选择库位':''
console.log('searchTableSuccess',formField, searchField, val, type, row)
console.log(val.map(item=>(item['code'])).join(','))
diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue b/src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue
index 088d6d02e..2cf69dc8d 100644
--- a/src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue
+++ b/src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue
@@ -215,14 +215,13 @@
v-else-if="item.ParamCode == 'Project'"
:disabled="formData.priority==0&&formType=='update'"
/>
-
+
+
+
+
+
+
+
@@ -680,7 +679,8 @@ import { DICT_TYPE, getStrDictOptions } from '@/utils/dict'
import * as TransactiontypeApi from '@/api/wms/transactiontype'
import { Productionline } from '@/views/wms/basicDataManage/factoryModeling/productionline/productionline.data'
import * as ProductionlineApi from '@/api/wms/productionline'
-
+import * as ItembasicApi from '@/api/wms/itembasic'
+import { Itembasic} from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data'
const { t } = useI18n() // 国际化
const message = useMessage() // 消息弹窗
@@ -1009,6 +1009,23 @@ const blurWarehouse = async ()=>{
})
}
+
+
+//物料
+const searchItemCode = ()=>{
+ searchTableRef.value.open(
+ '请选择物料',
+ Itembasic.allSchemas,
+ ItembasicApi.getItembasicPage,
+ 'ItemCode',
+ 'code',
+ true,
+ undefined,
+ undefined,
+ undefined
+ )
+}
+
//事务类型
const searchTransactionType = ()=>{
searchTableRef.value.open(
@@ -1108,6 +1125,14 @@ const searchTableSuccess = (formField, searchField, val, type, row) => {
}
return
}
+ if(formField=='ItemCode'){
+ // 条件规则--物料
+ let itemCode = formData.value.condition.find(item=>item['ParamCode']=='ItemCode')
+ if(itemCode){
+ itemCode.Value = val.map(item=>(item['code'])).join(',')
+ }
+ return
+ }
// let searchTableTitle = warehouseType.value == 'WarehouseCode'?'请选择仓库':warehouseType.value == 'AreaCode'?'请选择库区':warehouseType.value == 'LocationGroupCode'?'请选择库位组':warehouseType.value == 'LocationCode'?'请选择库位':''
console.log('searchTableSuccess',formField, searchField, val, type, row)
console.log(val.map(item=>(item['code'])).join(','))
From 485efcda90a969e4d92e2f09c7c04eb0a776b857 Mon Sep 17 00:00:00 2001
From: yufei_wang <2267742828@qq.com>
Date: Wed, 20 Nov 2024 09:46:52 +0800
Subject: [PATCH 26/35] =?UTF-8?q?=E9=94=80=E5=94=AE=E5=BC=80=E7=A5=A8?=
=?UTF-8?q?=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../wms/customerSaleInvoiceDetail/index.ts | 7 +++-
.../CustomerSaleInvoiceBasicForm.vue | 8 +++-
.../customerSaleInvoiceRequestMain.data.ts | 22 +++++++++-
.../customerSaleInvoiceRequestMain/index.vue | 42 ++++++++++++++++++-
4 files changed, 74 insertions(+), 5 deletions(-)
diff --git a/src/api/wms/customerSaleInvoiceDetail/index.ts b/src/api/wms/customerSaleInvoiceDetail/index.ts
index af4c750bd..48acdabac 100644
--- a/src/api/wms/customerSaleInvoiceDetail/index.ts
+++ b/src/api/wms/customerSaleInvoiceDetail/index.ts
@@ -61,7 +61,12 @@ export const deleteCustomerSaleInvoiceDetail = async (id: number) => {
// 导出客户销售开票子信息表(WMS) Excel
export const exportCustomerSaleInvoiceDetail = async (params) => {
- return await request.download({ url: `/wms/customer-sale-invoice-detail/export-excel`, params })
+ if (params.isSearch) {
+ const data = { ...params }
+ return await request.downloadPost({ url: `/wms/customer-sale-invoice-detail/export-excel-senior`, data })
+ } else {
+ return await request.download({ url: `/wms/customer-sale-invoice-detail/export-excel`, params })
+ }
}
// 下载用户导入模板
diff --git a/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue b/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue
index d16bb0b12..1b5c63917 100644
--- a/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue
+++ b/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue
@@ -91,6 +91,9 @@ const inputNumberChange = (field, index, row, val) => {
// 模具分摊单价 默认从模具分摊对账单带出,未税金额修改后重新计算,等于未税金额/数量-销售单价
row['allocationPrice'] = row['beforeTaxAmount']/row['qty'] - row['price']
+
+ // 税额:taxAmount 未税价格*税率/100,四舍五入保留2位小数
+ row['taxAmount'] = (row['beforeTaxAmount'] * formRef.value.formRef.formModel['taxRate'])/100 //含税金额
}
@@ -205,12 +208,13 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
item['sumPrice'] = item['price'] + item['allocationPrice']
// 未税金额 默认等于数量*合计单价,可修改,必填,最多可输入2位小数
item['beforeTaxAmount'] = item['sumPrice']*item['qty']
- // 含税金额 未税价格+税额,四舍五入保留2位小数
- item['afterTaxAmount'] = item['beforeTaxAmount'] + item['taxAmount'] //含税金额
// 税额:taxAmount 未税价格*税率/100,四舍五入保留2位小数
item['taxAmount'] = (item['beforeTaxAmount'] * formRef.formModel['taxRate'])/100 //含税金额
+ // 含税金额 未税价格+税额,四舍五入保留2位小数
+ item['afterTaxAmount'] = item['beforeTaxAmount'] + item['taxAmount'] //含税金额
+
})
diff --git a/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/customerSaleInvoiceRequestMain.data.ts b/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/customerSaleInvoiceRequestMain.data.ts
index a286401fc..cbaa842c8 100644
--- a/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/customerSaleInvoiceRequestMain.data.ts
+++ b/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/customerSaleInvoiceRequestMain.data.ts
@@ -53,7 +53,14 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive([
dictClass: 'string',
table:{
width:120
- }
+ },
+ search:{
+ component:'Select',
+ componentProps: {
+ multiple:true,
+ }
+
+ },
},
{
label: '客户对账单',
@@ -200,6 +207,9 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive([
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
},
+ detail: {
+ dateFormat : 'YYYY-MM-DD HH:mm:ss'
+ },
form: {
component: 'DatePicker',
componentProps: {
@@ -232,6 +242,16 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive([
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
},
+ detail: {
+ dateFormat : 'YYYY-MM-DD HH:mm:ss'
+ },
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ type: 'datetime',
+ valueFormat: 'x',
+ }
+ },
isForm: false,
table:{
width:180
diff --git a/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/index.vue b/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/index.vue
index 5b5e64477..f89ebbd09 100644
--- a/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/index.vue
+++ b/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/index.vue
@@ -56,6 +56,8 @@
:detailButtonIsShowAddStatusArray="['0']"
:detailButtonIsShowDelete="false"
:detailButtonIsShowAdd="false"
+ :otherHeadButttonData = "[defaultButtons.defaultExportBtn({hasPermi:`wms:customer-sale-invoice-request-main:export` })]"
+ @buttonBaseClick="detailButtonBaseClick"
@searchTableSuccessDetail="searchTableSuccessDetail"
/>
@@ -75,6 +77,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import * as AreabasicApi from '@/api/wms/areabasic'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
+import { status } from 'nprogress'
const { loadStart, loadDone } = usePageLoading()
// 销售开票申请
defineOptions({ name: 'customerSaleInvoiceMain' })
@@ -102,7 +105,28 @@ const updataTableColumns = (val) => {
tableColumns.value = val
}
+// 点击子表按钮事件
+const detailButtonBaseClick = async (val, item,tableObject) => {
+ if (val == 'export') {
+ // 子表导出
+ console.log('子表导出',val, tableObject)
+ try {
+ // 导出的二次确认
+ await message.exportConfirm()
+ // 发起导出
+ loadStart()
+ const excelTitle = ref(route.meta.title)
+ const data = await CustomerSaleInvoiceDetailApi.exportCustomerSaleInvoiceDetail(tableObject.params)
+ download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
+ } catch {
+
+ } finally {
+ loadDone()
+ }
+
+ }
+}
// 查询页面返回——详情
const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
nextTick(() => {
@@ -276,6 +300,22 @@ const searchFormClick = (searchData) => {
}
const seachRef = ref()
const onSearchChange = (field, value)=>{
+ console.log('onSearchChange',field,value)
+ if(field=='status'){
+ // 状态
+ if(value.length>0){
+ if(value[value.length-1]==''){
+ //全选
+ seachRef.value.setFormValues({
+ status:['']
+ })
+ }else{
+ seachRef.value.setFormValues({
+ status:value.filter(item=>item!='')
+ })
+ }
+ }
+ }
if(field=='customerCode'){
if(value.length>0){
if(value[value.length-1]=='ALL'){
@@ -293,7 +333,7 @@ const onSearchChange = (field, value)=>{
}
const searchClick = async (data)=>{
console.log('查询',data)
- setSearchParams({...data,customerCode:data.customerCode.filter(item=>item!='ALL')})
+ setSearchParams({...data,customerCode:data.customerCode.filter(item=>item!='ALL'),status:data.status.filter(item=>item!='')})
}
/** 初始化 **/
onMounted(async () => {
From cb3bd2f04fcd58208033fd1bb1669cc608d94696 Mon Sep 17 00:00:00 2001
From: liuchen864 <23082234@qq.com>
Date: Wed, 20 Nov 2024 10:02:26 +0800
Subject: [PATCH 27/35] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E5=A2=9E=E5=8A=A0?=
=?UTF-8?q?=E9=A1=BA=E5=BC=95=E5=AE=A2=E6=88=B7=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../customerManage/customer/customer.data.ts | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/src/views/wms/basicDataManage/customerManage/customer/customer.data.ts b/src/views/wms/basicDataManage/customerManage/customer/customer.data.ts
index 9c1472a0a..800f1e5dc 100644
--- a/src/views/wms/basicDataManage/customerManage/customer/customer.data.ts
+++ b/src/views/wms/basicDataManage/customerManage/customer/customer.data.ts
@@ -18,6 +18,16 @@ export const Customer = useCrudSchemas(reactive([
fixed: 'left'
},
},
+ {
+ label: '顺引代码',
+ field: 'shunyinCode',
+ isSearch: true,
+ sort: 'custom',
+ table: {
+ width: 150,
+ fixed: 'left'
+ },
+ },
{
label: '名称',
field: 'name',
@@ -294,6 +304,9 @@ export const CustomerRules = reactive({
{ max: 50, message: '不得超过50个字符', trigger: 'blur' },
{ validator:validateYS, message: '请输入正确的代码', trigger: 'blur'}
],
+ shunyinCode: [
+ { max: 50, message: '不得超过50个字符', trigger: 'blur' }
+ ],
name: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
From 435b39bb2035d2f73f51d71d6c7d0ec8c5286ef5 Mon Sep 17 00:00:00 2001
From: yufei_wang <2267742828@qq.com>
Date: Wed, 20 Nov 2024 10:33:46 +0800
Subject: [PATCH 28/35] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../CustomerSaleInvoiceBasicForm.vue | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue b/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue
index 1b5c63917..b5c6e245b 100644
--- a/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue
+++ b/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue
@@ -83,8 +83,6 @@ const onChange = (field, cur, formRef)=>{
}
const inputNumberChange = (field, index, row, val) => {
console.log('inputNumberChange',field, index, row, val)
- // 合计单价 = 销售单价 + 模具分摊单价
- row['sumPrice'] = row['price'] + row['allocationPrice']
// 含税金额 = 未税价格+税额,四舍五入保留2位小数
row['afterTaxAmount'] = row['beforeTaxAmount'] + row['taxAmount']
@@ -92,6 +90,9 @@ const inputNumberChange = (field, index, row, val) => {
// 模具分摊单价 默认从模具分摊对账单带出,未税金额修改后重新计算,等于未税金额/数量-销售单价
row['allocationPrice'] = row['beforeTaxAmount']/row['qty'] - row['price']
+ // 合计单价 = 销售单价 + 模具分摊单价
+ row['sumPrice'] = row['price'] + row['allocationPrice']
+
// 税额:taxAmount 未税价格*税率/100,四舍五入保留2位小数
row['taxAmount'] = (row['beforeTaxAmount'] * formRef.value.formRef.formModel['taxRate'])/100 //含税金额
From 9878678ff0f67f0c2b3fc43724aa4e4b968d2e7f Mon Sep 17 00:00:00 2001
From: zhaoyiran
Date: Wed, 20 Nov 2024 10:39:43 +0800
Subject: [PATCH 29/35] =?UTF-8?q?YT-648=E7=BB=9F=E4=B8=80=E5=BA=93?=
=?UTF-8?q?=E5=AD=98=E4=BD=99=E9=A2=9D=E5=BC=B9=E6=A1=86=E5=AD=97=E6=AE=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../inventorymoveRequestMain.data.ts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/inventorymoveRequestMain.data.ts b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/inventorymoveRequestMain.data.ts
index b81dbc7ae..0b843af71 100644
--- a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/inventorymoveRequestMain.data.ts
+++ b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/inventorymoveRequestMain.data.ts
@@ -1188,7 +1188,7 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive(
searchListPlaceholder: '请选择从批次',
searchField: 'packingNumber',
searchTitle: '库存余额信息',
- searchAllSchemas: BalanceShow.allSchemas,
+ searchAllSchemas: BalancePopWindow.allSchemas,
searchPage: BalanceApi.selectLocationTypeToBalance,
},
form: {
@@ -1200,7 +1200,7 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive(
searchListPlaceholder: '请选择从批次',
searchField: 'packingNumber',
searchTitle: '库存余额信息',
- searchAllSchemas: BalanceShow.allSchemas,
+ searchAllSchemas: BalancePopWindow.allSchemas,
searchPage: BalanceApi.selectLocationTypeToBalance,
}
},
From 67024860891e8ca49b3765e532ca9d14ad4ba160 Mon Sep 17 00:00:00 2001
From: songguoqiang <765017469@qq.com>
Date: Wed, 20 Nov 2024 10:49:33 +0800
Subject: [PATCH 30/35] =?UTF-8?q?YT-1112:=E9=87=87=E8=B4=AD=E6=94=B6?=
=?UTF-8?q?=E8=B4=A7=E5=8E=BB=E6=8E=89=E5=AF=BC=E5=85=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../developPurchasereceiptRequestMain/index.vue | 2 +-
.../purchasereceipt/purchasereceiptRequestMain/index.vue | 2 +-
.../toolPurchasereceiptRequestMain/index.vue | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/views/wms/purchasereceiptManage/developpurchasereceipt/developPurchasereceiptRequestMain/index.vue b/src/views/wms/purchasereceiptManage/developpurchasereceipt/developPurchasereceiptRequestMain/index.vue
index 58df96c81..f17d7c283 100644
--- a/src/views/wms/purchasereceiptManage/developpurchasereceipt/developPurchasereceiptRequestMain/index.vue
+++ b/src/views/wms/purchasereceiptManage/developpurchasereceipt/developPurchasereceiptRequestMain/index.vue
@@ -319,7 +319,7 @@ const { getList, setSearchParams } = tableMethods
// 列表头部按钮
const HeadButttondata = [
// defaultButtons.defaultAddBtn(null), // 新增
- defaultButtons.defaultImportBtn(null), // 导入
+ // defaultButtons.defaultImportBtn(null), // 导入
defaultButtons.defaultExportBtn({hasPermi:'wms:purchasereceipt-request-main:export'}), // 导出
defaultButtons.defaultFreshBtn(null), // 刷新
defaultButtons.defaultFilterBtn(null), // 筛选
diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue
index 953b58f20..5a3b54f6c 100644
--- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue
+++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue
@@ -319,7 +319,7 @@ const { getList, setSearchParams } = tableMethods
// 列表头部按钮
const HeadButttondata = [
// defaultButtons.defaultAddBtn(null), // 新增
- defaultButtons.defaultImportBtn(null), // 导入
+ // defaultButtons.defaultImportBtn(null), // 导入
defaultButtons.defaultExportBtn({hasPermi:'wms:purchasereceipt-request-main:export'}), // 导出
defaultButtons.defaultFreshBtn(null), // 刷新
defaultButtons.defaultFilterBtn(null), // 筛选
diff --git a/src/views/wms/purchasereceiptManage/toolpurchasereceipt/toolPurchasereceiptRequestMain/index.vue b/src/views/wms/purchasereceiptManage/toolpurchasereceipt/toolPurchasereceiptRequestMain/index.vue
index a575b3724..31c81903b 100644
--- a/src/views/wms/purchasereceiptManage/toolpurchasereceipt/toolPurchasereceiptRequestMain/index.vue
+++ b/src/views/wms/purchasereceiptManage/toolpurchasereceipt/toolPurchasereceiptRequestMain/index.vue
@@ -319,7 +319,7 @@ const { getList, setSearchParams } = tableMethods
// 列表头部按钮
const HeadButttondata = [
// defaultButtons.defaultAddBtn(null), // 新增
- defaultButtons.defaultImportBtn(null), // 导入
+ // defaultButtons.defaultImportBtn(null), // 导入
defaultButtons.defaultExportBtn({hasPermi:'wms:purchasereceipt-request-main:export'}), // 导出
defaultButtons.defaultFreshBtn(null), // 刷新
defaultButtons.defaultFilterBtn(null), // 筛选
From 62286aa64f4172ee1dbb73efc9cf793ac0a22015 Mon Sep 17 00:00:00 2001
From: yufei_wang <2267742828@qq.com>
Date: Wed, 20 Nov 2024 10:55:33 +0800
Subject: [PATCH 31/35] =?UTF-8?q?=E7=BB=86=E8=8A=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../wms/customerSaleInvoiceDetail/index.ts | 11 ++++-
.../customerSaleInvoiceRecordMain.data.ts | 41 ++++++++++++-------
.../customerSaleInvoiceRecordMain/index.vue | 28 ++++++++++++-
.../customerSaleInvoiceRequestMain.data.ts | 2 +
.../customerSaleInvoiceRequestMain/index.vue | 2 +-
5 files changed, 65 insertions(+), 19 deletions(-)
diff --git a/src/api/wms/customerSaleInvoiceDetail/index.ts b/src/api/wms/customerSaleInvoiceDetail/index.ts
index 48acdabac..774630b37 100644
--- a/src/api/wms/customerSaleInvoiceDetail/index.ts
+++ b/src/api/wms/customerSaleInvoiceDetail/index.ts
@@ -60,7 +60,7 @@ export const deleteCustomerSaleInvoiceDetail = async (id: number) => {
}
// 导出客户销售开票子信息表(WMS) Excel
-export const exportCustomerSaleInvoiceDetail = async (params) => {
+export const exportCustomerSaleInvoiceRequestDetail = async (params) => {
if (params.isSearch) {
const data = { ...params }
return await request.downloadPost({ url: `/wms/customer-sale-invoice-detail/export-excel-senior`, data })
@@ -68,6 +68,15 @@ export const exportCustomerSaleInvoiceDetail = async (params) => {
return await request.download({ url: `/wms/customer-sale-invoice-detail/export-excel`, params })
}
}
+// 导出客户销售开票子信息表(WMS) Excel
+export const exportCustomerSaleInvoiceRecordDetail = async (params) => {
+ if (params.isSearch) {
+ const data = { ...params }
+ return await request.downloadPost({ url: `/wms/customer-sale-invoice-record-detail/export-excel-senior`, data })
+ } else {
+ return await request.download({ url: `/wms/customer-sale-invoice-record-detail/export-excel`, params })
+ }
+}
// 下载用户导入模板
export const importTemplate = () => {
diff --git a/src/views/wms/deliversettlementManage/customerSaleInvoiceRecordMain/customerSaleInvoiceRecordMain.data.ts b/src/views/wms/deliversettlementManage/customerSaleInvoiceRecordMain/customerSaleInvoiceRecordMain.data.ts
index 3955a8085..a3c7a12e7 100644
--- a/src/views/wms/deliversettlementManage/customerSaleInvoiceRecordMain/customerSaleInvoiceRecordMain.data.ts
+++ b/src/views/wms/deliversettlementManage/customerSaleInvoiceRecordMain/customerSaleInvoiceRecordMain.data.ts
@@ -79,6 +79,7 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive([
field: 'customerCode',
sort: 'custom',
isSearch: true,
+ isDetail:false,
form: {
componentProps: {
disabled:true
@@ -113,6 +114,7 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive([
disabled: true
}
},
+ isDetail:false,
table:{
width:150
}
@@ -202,21 +204,30 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive([
field: 'remark',
sort: 'custom',
},
- // {
- // label: '创建时间',
- // field: 'createTime',
- // sort: 'custom',
- // formatter: dateFormatter,
- // 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,
- // },
+ {
+ label: '创建时间',
+ field: 'createTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isTable:false,
+ isDetail:true,
+ detail: {
+ dateFormat : 'YYYY-MM-DD HH:mm:ss'
+ },
+ isForm: false,
+ },
+ {
+ label: '最后更新时间',
+ field: 'updateTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isTable:false,
+ isDetail:true,
+ detail: {
+ dateFormat : 'YYYY-MM-DD HH:mm:ss'
+ },
+ isForm: false,
+ },
]))
// 表单校验
export const CustomerSaleInvoiceDetailRules = reactive({
diff --git a/src/views/wms/deliversettlementManage/customerSaleInvoiceRecordMain/index.vue b/src/views/wms/deliversettlementManage/customerSaleInvoiceRecordMain/index.vue
index e34e66657..e5e9c8d30 100644
--- a/src/views/wms/deliversettlementManage/customerSaleInvoiceRecordMain/index.vue
+++ b/src/views/wms/deliversettlementManage/customerSaleInvoiceRecordMain/index.vue
@@ -47,6 +47,9 @@
:apiUpdate="CustomerSaleInvoiceDetailApi.updateCustomerSaleInvoiceDetail"
:apiPage="CustomerSaleInvoiceDetailApi.getCustomerSaleInvoiceRecordDetailPage"
:apiDelete="CustomerSaleInvoiceDetailApi.deleteCustomerSaleInvoiceDetail"
+ :detailButtonIsShowAdd="false"
+ :otherHeadButttonData = "[defaultButtons.defaultExportBtn({hasPermi:`wms:customer-sale-invoice-record-main:export` })]"
+ @buttonBaseClick="detailButtonBaseClick"
:Echo="Echo"
@searchTableSuccessDetail="searchTableSuccessDetail"
/>
@@ -84,7 +87,28 @@ const { tableObject, tableMethods } = useTable({
const updataTableColumns = (val) => {
tableColumns.value = val
}
+// 点击子表按钮事件
+const detailButtonBaseClick = async (val, item,tableObject) => {
+ if (val == 'export') {
+ // 子表导出
+ console.log('子表导出',val, tableObject)
+ try {
+ // 导出的二次确认
+ await message.exportConfirm()
+ // 发起导出
+ loadStart()
+ const excelTitle = ref(route.meta.title)
+ const data = await CustomerSaleInvoiceDetailApi.exportCustomerSaleInvoiceRecordDetail(tableObject.params)
+ download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
+ } catch {
+
+ } finally {
+ loadDone()
+ }
+
+ }
+}
// 查询页面返回——详情
const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
nextTick(() => {
@@ -108,8 +132,8 @@ const Echo = []
const { getList, setSearchParams } = tableMethods
// 列表头部按钮
const HeadButttondata = [
- defaultButtons.defaultImportBtn({hasPermi:`wms:customer-sale-invoice-main:import` }), // 导入
- defaultButtons.defaultExportBtn({hasPermi:`wms:customer-sale-invoice-main:export` }), // 导出
+ defaultButtons.defaultImportBtn({hasPermi:`wms:customer-sale-invoice-record-main:import` }), // 导入
+ defaultButtons.defaultExportBtn({hasPermi:`wms:customer-sale-invoice-record-main:export` }), // 导出
defaultButtons.defaultFreshBtn(null), // 刷新
defaultButtons.defaultFilterBtn(null), // 筛选
defaultButtons.defaultSetBtn(null), // 设置
diff --git a/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/customerSaleInvoiceRequestMain.data.ts b/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/customerSaleInvoiceRequestMain.data.ts
index cbaa842c8..e3736494e 100644
--- a/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/customerSaleInvoiceRequestMain.data.ts
+++ b/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/customerSaleInvoiceRequestMain.data.ts
@@ -103,6 +103,7 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive([
disabled:true
}
},
+ isDetail:false,
search:{
component:'Select',
value:custormList.length>1?[custormList[0]['customerCode']]:[],
@@ -132,6 +133,7 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive([
disabled: true
}
},
+ isDetail:false,
table:{
width:150
}
diff --git a/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/index.vue b/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/index.vue
index f89ebbd09..332003adb 100644
--- a/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/index.vue
+++ b/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/index.vue
@@ -116,7 +116,7 @@ const detailButtonBaseClick = async (val, item,tableObject) => {
// 发起导出
loadStart()
const excelTitle = ref(route.meta.title)
- const data = await CustomerSaleInvoiceDetailApi.exportCustomerSaleInvoiceDetail(tableObject.params)
+ const data = await CustomerSaleInvoiceDetailApi.exportCustomerSaleInvoiceRequestDetail(tableObject.params)
download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
From c196d9733459a118e8d48e22a3564bf8562c7a70 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Wed, 20 Nov 2024 10:58:37 +0800
Subject: [PATCH 32/35] =?UTF-8?q?YT-1093=E5=AE=A1=E6=89=B9=E4=B8=AD?=
=?UTF-8?q?=E7=9A=84=E9=87=87=E8=B4=AD=E7=B4=A2=E8=B5=94=E7=94=B3=E8=AF=B7?=
=?UTF-8?q?=E5=BA=94=E8=AF=A5=E5=8F=AA=E8=83=BD=E7=BC=96=E8=BE=91=E7=B4=A2?=
=?UTF-8?q?=E8=B5=94=E9=87=91=E9=A2=9D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../wms/purchaseClaimRequestDetail/index.ts | 12 ++---
src/components/Detail/src/Detail.vue | 24 +++++++++-
.../PurchaseClaimRequestMain.data.ts | 16 +++++++
.../purchaseClaimRequest/index.vue | 48 +++++++++++++++++--
4 files changed, 89 insertions(+), 11 deletions(-)
diff --git a/src/api/wms/purchaseClaimRequestDetail/index.ts b/src/api/wms/purchaseClaimRequestDetail/index.ts
index 807f97df5..0d4a45117 100644
--- a/src/api/wms/purchaseClaimRequestDetail/index.ts
+++ b/src/api/wms/purchaseClaimRequestDetail/index.ts
@@ -15,29 +15,29 @@ export const getPurchaseClaimRequestDetailList = async (supplierCode) => {
}
// 创建采购索赔子
export const createPurchaseClaimRequestDetail = async (data) => {
- return await request.post({ url: `/wms/purchase-claim-request-detail/create`, data })
+ return await request.post({ url: `/wms/purchaseClaim-request-detail/create`, data })
}
// 修改采购索赔子
export const updatePurchaseClaimRequestDetail = async (data) => {
- return await request.put({ url: `/wms/purchase-claim-request-detail/update`, data })
+ return await request.put({ url: `/wms/purchaseClaim-request-detail/update`, data })
}
// 删除采购索赔子
export const deletePurchaseClaimRequestDetail = async (id) => {
- return await request.delete({ url: `/wms/purchase-claim-request-detail/delete?id=` + id })
+ return await request.delete({ url: `/wms/purchaseClaim-request-detail/delete?id=` + id })
}
// 获得采购索赔子
export const getPurchaseClaimRequestDetail = async (id) => {
- return await request.get({ url: `/wms/purchase-claim-request-detail/get?id=` + id })
+ return await request.get({ url: `/wms/purchaseClaim-request-detail/get?id=` + id })
}
// 导出采购索赔子 Excel
export const exportPurchaseClaimRequestDetailExcel = async (params) => {
if (params.isSearch) {
const data = {...params}
- return await request.downloadPost({url: `/wms/purchase-claim-request-detail/export-excel-senior`, data})
+ return await request.downloadPost({ url: `/wms/purchaseClaim-request-detail/export-excel-senior`, data})
} else {
- return await request.download({ url: `/wms/purchase-claim-request-detail/export-excel`, params })
+ return await request.download({ url: `/wms/purchaseClaim-request-detail/export-excel`, params })
}
}
diff --git a/src/components/Detail/src/Detail.vue b/src/components/Detail/src/Detail.vue
index ba1ba9f05..f465845f0 100644
--- a/src/components/Detail/src/Detail.vue
+++ b/src/components/Detail/src/Detail.vue
@@ -476,6 +476,12 @@ const props = defineProps({
required: false,
default: 8
},
+ // 根据状态判断是否自定义子表弹窗
+ isChangeDetailDrawer:{
+ type:Array,
+ required: false,
+ default: () => []
+ },
})
const allSchemas = ref(props.allSchemas)
const detailAllSchemasRef = ref(props.detailAllSchemas)
@@ -1015,9 +1021,23 @@ const buttonTableClick = async (val, row) => {
}
}
/** 添加/修改操作 */
+// 根据状态返回判断详情是否显示自定义弹窗
+const isShowChangeDetailDrawer = (row, val) => {
+ if(!val || val &&val.length == 0) return false;
+ if (val.indexOf(row.status) > -1) {
+ return true
+ } else {
+ return false
+ }
+}
const openForm = async (type: string, row?: number) => {
- formRef.value.open(type, row, masterParmas.value)
- emit('detailOpenForm', type, row)
+ // 自定义弹框
+ if (isShowChangeDetailDrawer(curRow.value,props.isChangeDetailDrawer)) {
+ emit('detailOpenForm', type, row, masterParmas.value)
+ }else{
+ formRef.value.open(type, row, masterParmas.value)
+ emit('detailOpenForm', type, row)
+ }
}
// form 提交
const submitForm = async (formType, data) => {
diff --git a/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/PurchaseClaimRequestMain.data.ts b/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/PurchaseClaimRequestMain.data.ts
index 95be795cd..0d63b2516 100644
--- a/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/PurchaseClaimRequestMain.data.ts
+++ b/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/PurchaseClaimRequestMain.data.ts
@@ -344,3 +344,19 @@ export const PurchaseClaimRequestDetail = useCrudSchemas(reactive(
isTableForm: false,
}
]))
+export const PurchaseClaimRequestAmount = useCrudSchemas(reactive([
+ {
+ label: '索赔金额',
+ field: 'claimAmount',
+ sort: 'custom',
+ isSearch: false,
+ isTable: true,
+ table: {
+ },
+ tableForm: {
+ type: 'InputNumber',
+ min: 0,
+ precision: 5
+ }
+ },
+]))
\ No newline at end of file
diff --git a/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/index.vue b/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/index.vue
index 57c23b3dc..f28284030 100644
--- a/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/index.vue
+++ b/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/index.vue
@@ -72,7 +72,7 @@
ref="detailRef"
:isBasic="false"
:allSchemas="PurchaseClaimRequestMain.allSchemas"
- :detailAllSchemas="PurchaseClaimRequestDetail.allSchemas"
+ :detailAllSchemas="detailAllSchemas"
:detailAllSchemasRules="PurchaseClaimRequestDetailRules"
:apiCreate="PurchaseClaimRequestDetailApi.createPurchaseClaimRequestDetail"
:apiUpdate="PurchaseClaimRequestDetailApi.updatePurchaseClaimRequestDetail"
@@ -80,6 +80,9 @@
:apiDelete="PurchaseClaimRequestDetailApi.deletePurchaseClaimRequestDetail"
:detailButtonIsShowDelete="false"
:detailButtonIsShowAdd="false"
+ :detailButtonIsShowAddStatusArray="['1','2']"
+ :isChangeDetailDrawer="['2']"
+ @detailOpenForm="detailOpenForm"
/>
+