From 138d600f319119d24426798adc3f95412881b8d8 Mon Sep 17 00:00:00 2001 From: guoxing <1369478551@qq.com> Date: Thu, 18 Jul 2024 16:33:45 +0800 Subject: [PATCH] 3 --- .../maintenanceOutbound.vue | 3 +- .../maintenanceReturnBound.vue | 199 +++++----- .../maintenanceReceive/repairbillInfo.vue | 35 +- .../src/views/storage/stocktaking/index.vue | 346 ++++++++++++------ 4 files changed, 345 insertions(+), 238 deletions(-) diff --git a/yxt-as-ui/src/views/maintenanceReceive/maintenanceOutbound.vue b/yxt-as-ui/src/views/maintenanceReceive/maintenanceOutbound.vue index f95e36cf91..9f7970ca3e 100644 --- a/yxt-as-ui/src/views/maintenanceReceive/maintenanceOutbound.vue +++ b/yxt-as-ui/src/views/maintenanceReceive/maintenanceOutbound.vue @@ -492,8 +492,7 @@ this.$refs['form_obj'].validate((valid) => { if (valid) { - - req.saveBill(this.formobj) + req.saveOutBill(this.formobj) .then(resp => { if (resp.success) { this.$message({ diff --git a/yxt-as-ui/src/views/maintenanceReceive/maintenanceReturnBound.vue b/yxt-as-ui/src/views/maintenanceReceive/maintenanceReturnBound.vue index 5ade9acb5f..b1e4a7049b 100644 --- a/yxt-as-ui/src/views/maintenanceReceive/maintenanceReturnBound.vue +++ b/yxt-as-ui/src/views/maintenanceReceive/maintenanceReturnBound.vue @@ -26,14 +26,14 @@ * 申请人 - {{formobj.createByName}} + {{ formobj.createByName }} * 申请部门 - {{formobj.deptName}} + {{ formobj.deptName }} @@ -51,10 +51,15 @@ * 退料人 - - - + + @@ -77,14 +82,14 @@ 维修工单编号 - {{formobj.sourceBillNo}} + {{ formobj.sourceBillNo }} 单据日期 - {{formobj.billDate}} + {{ formobj.billDate }} @@ -101,21 +106,21 @@ 工单类型 - {{formobj.billType}} + {{ formobj.billType }} 科目 - {{formobj.subject}} + {{ formobj.subject }} 是否外出 - + 是 否 @@ -129,14 +134,14 @@ 客户名称 - {{formobj.customerName}} + {{ formobj.customerName }} 车牌号/车架号 - {{formobj.vehMark}}/{{formobj.vinNo}} + {{ formobj.vehMark }}/{{ formobj.vinNo }} @@ -185,20 +190,27 @@ --> - - - + + - - - + + @@ -206,8 +218,12 @@ - + @@ -242,7 +258,7 @@ } from '@/utils/index.js' export default { components: { - chooseproducts, + chooseproducts }, data() { return { @@ -251,33 +267,33 @@ submitdisabled: false, formobj: { - "sid": "", - "createBySid": window.sessionStorage.getItem('userSid'), - "createByName": window.sessionStorage.getItem('name'), - "sourceBillSid": "", - "warehouseManagerSid": "", - "warehouseManager": "", - "useOrgSid": "", - "createOrgSid": "", - "deptSid": window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage + 'sid': '', + 'createBySid': window.sessionStorage.getItem('userSid'), + 'createByName': window.sessionStorage.getItem('name'), + 'sourceBillSid': '', + 'warehouseManagerSid': '', + 'warehouseManager': '', + 'useOrgSid': '', + 'createOrgSid': '', + 'deptSid': window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage .getItem('defaultOrgPath').lastIndexOf('/') + 1), - "deptName": window.sessionStorage.getItem('defaultOrgPathName').substring(window + 'deptName': window.sessionStorage.getItem('defaultOrgPathName').substring(window .sessionStorage.getItem('defaultOrgPathName').lastIndexOf('/') + 1), - "createTime": getCurrentDate(), - "remarks": "", - "sourceBillNo": "", - "waitorName": "", - "billDate": "", - "billType": "", - "subject": "", - "customerName": "", - "vehMark": "", - "vinNo": "", - "customerOrg": "", - "sitemVoList": [ + 'createTime': getCurrentDate(), + 'remarks': '', + 'sourceBillNo': '', + 'waitorName': '', + 'billDate': '', + 'billType': '', + 'subject': '', + 'customerName': '', + 'vehMark': '', + 'vinNo': '', + 'customerOrg': '', + 'sitemVoList': [ ], - "detailList": [ + 'detailList': [ ] }, @@ -304,7 +320,7 @@ required: true, message: '请选择领料人', trigger: 'change' - }], + }] } } @@ -318,12 +334,9 @@ if (res.success) { this.receivePerList = res.data - console.log("aaaaaa", this.receivePerList); + console.log('aaaaaa', this.receivePerList) } }) - - - }, showAdd(sid) { @@ -351,7 +364,6 @@ this.formobj.createByName = window.sessionStorage.getItem('name') this.formobj.createTime = getCurrentDate() - getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => { @@ -360,14 +372,11 @@ this.formobj.useOrgSid = res.data } }) - - } else { // 根据resp.code进行异常情况处理 } }) .catch(() => {}) - }, backData(value) { this.viewState = 1 @@ -390,7 +399,6 @@ this.formobj.createByName = window.sessionStorage.getItem('name') this.formobj.createTime = getCurrentDate() - getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => { @@ -399,14 +407,11 @@ this.formobj.useOrgSid = res.data } }) - - } else { // 根据resp.code进行异常情况处理 } }) .catch(() => {}) - }, resetState() { this.viewState = 1 @@ -422,8 +427,7 @@ this.$refs['form_obj'].validate((valid) => { if (valid) { - - req.saveBill(this.formobj) + req.saveQuitBill(this.formobj) .then(resp => { if (resp.success) { this.$message({ @@ -437,40 +441,39 @@ } }) .catch(() => {}) - } }) }, handleReturn(isreload) { if (isreload === 'true') this.$emit('reloadlist') this.formobj = { - "sid": "", - "createBySid": window.sessionStorage.getItem('userSid'), - "createByName": window.sessionStorage.getItem('name'), - "sourceBillSid": "", - "warehouseManagerSid": "", - "warehouseManager": "", - "useOrgSid": "", - "createOrgSid": "", - "deptSid": window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage.getItem( + 'sid': '', + 'createBySid': window.sessionStorage.getItem('userSid'), + 'createByName': window.sessionStorage.getItem('name'), + 'sourceBillSid': '', + 'warehouseManagerSid': '', + 'warehouseManager': '', + 'useOrgSid': '', + 'createOrgSid': '', + 'deptSid': window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage.getItem( 'defaultOrgPath').lastIndexOf('/') + 1), - "deptName": window.sessionStorage.getItem('defaultOrgPathName').substring(window.sessionStorage.getItem( + 'deptName': window.sessionStorage.getItem('defaultOrgPathName').substring(window.sessionStorage.getItem( 'defaultOrgPathName').lastIndexOf('/') + 1), - "createTime": getCurrentDate(), - "remarks": "", - "sourceBillNo": "", - "waitorName": "", - "billDate": "", - "billType": "", - "subject": "", - "customerName": "", - "vehMark": "", - "vinNo": "", - "customerOrg": "", - "sitemVoList": [ + 'createTime': getCurrentDate(), + 'remarks': '', + 'sourceBillNo': '', + 'waitorName': '', + 'billDate': '', + 'billType': '', + 'subject': '', + 'customerName': '', + 'vehMark': '', + 'vinNo': '', + 'customerOrg': '', + 'sitemVoList': [ ], - "detailList": [ + 'detailList': [ ] } @@ -488,18 +491,17 @@ }, getWarehouseList() { - console.log("getWarehouseList>>>>>>>>>>>>>"); + console.log('getWarehouseList>>>>>>>>>>>>>') var parpams = { - orgPath: window.sessionStorage.getItem('defaultOrgPath'), + orgPath: window.sessionStorage.getItem('defaultOrgPath') } - console.log("getWarehouseList", parpams); + console.log('getWarehouseList', parpams) req2.getWarehouses(parpams).then((res) => { if (res.success) { this.warehouseList = res.data - console.log("aaaaaa", this.warehouseList); - + console.log('aaaaaa', this.warehouseList) } }) }, @@ -511,14 +513,13 @@ if (res.success) { this.warehouseRackList = res.data - console.log("bbbbb", this.warehouseRackList); - + console.log('bbbbb', this.warehouseRackList) } }) }, selectWarehouseName(row, val) { - console.log("selectWarehouseName", row); - console.log("selectWarehouseName", val); + console.log('selectWarehouseName', row) + console.log('selectWarehouseName', val) const choose = this.warehouseList.filter((item) => item.sid == val) console.log('>>>>>>>>>selectWarehouseName', choose) row.warehouseName = choose[0].warehouseName @@ -526,27 +527,23 @@ row.warehouseRackCode = '' row.warehouseRackSid = '' - }, selectWarehouseAreaCode(row, val) { - console.log("selectWarehouseAreaCode", val); + console.log('selectWarehouseAreaCode', val) const choose = this.warehouseRackList.filter((item) => item.sid == val) console.log('>>>>>>>>>selectWarehouseAreaCode', choose) row.warehouseRackCode = choose[0].areaCode row.warehouseRackSid = choose[0].sid - }, returnAll() { for (var i = 0; i < this.formobj.detailList.length; i++) { var item = this.formobj.detailList[i] item.count = item.outboundCount - } } - } } diff --git a/yxt-as-ui/src/views/maintenanceReceive/repairbillInfo.vue b/yxt-as-ui/src/views/maintenanceReceive/repairbillInfo.vue index 901dce0e41..5b76fb3a5d 100644 --- a/yxt-as-ui/src/views/maintenanceReceive/repairbillInfo.vue +++ b/yxt-as-ui/src/views/maintenanceReceive/repairbillInfo.vue @@ -4,7 +4,6 @@ {{ viewTitle }} - 反结算 关闭 @@ -78,7 +77,8 @@ 特殊标注 {{ formobj.isSpecialSign == '1' ? '有' : '否' }} + class="addinputInfo" + >{{ formobj.isSpecialSign == '1' ? '有' : '否' }} @@ -143,21 +143,29 @@ 责任划分 {{ formobj.insuranceVo.responsibility }} + class="addinputInfo" + >{{ formobj.insuranceVo.responsibility }} 责任比例 {{ formobj.insuranceVo.responsibilityRatio }} + class="addinputInfo" + >{{ formobj.insuranceVo.responsibilityRatio }} 是否存在人伤 {{ formobj.insuranceVo.isPersonInjuries == '1' ? '是' : formobj.insuranceVo.isPersonInjuries == '0' ? '否' : '' }} + class="addinputInfo" + >{{ formobj.insuranceVo.isPersonInjuries == '1' ? '是' : formobj.insuranceVo.isPersonInjuries == '0' ? '否' : '' }} - + @@ -172,7 +180,8 @@ 是否开发票 {{ formobj.invoiceVo.isInvoicing == '1' ? '是' : formobj.invoiceVo.isInvoicing == '0' ? '否' : '' }} + class="addinputInfo" + >{{ formobj.invoiceVo.isInvoicing == '1' ? '是' : formobj.invoiceVo.isInvoicing == '0' ? '否' : '' }} 发票类型 @@ -253,7 +262,7 @@ {{ formobj.rescueRemarks }} - + @@ -266,14 +275,14 @@ 应收合计: {{ ysTotal }} = 工时费:{{ gsfTotal }} + 材料费:{{ clfTotal }} + - 附加费:{{ fjfTotal }} + 税额:0 + 附加费:{{ fjfTotal }} + 税额:0 实收合计: {{ ssTotal }} = 应收合计:{{ ysTotal }} - - 优惠:{{ yhTotal }} + 优惠:{{ yhTotal }} @@ -439,8 +448,8 @@ fjfTotal() { let fjf = '0' fjf = parseFloat(this.formobj.outAmount !== '' ? this.formobj.outAmount : '0') + parseFloat(this.formobj - .subsidyAmount !== '' ? this.formobj.subsidyAmount : '0') + parseFloat(this.formobj.rescueAmount !== '' ? - this.formobj.rescueAmount : '0') + .subsidyAmount !== '' ? this.formobj.subsidyAmount : '0') + parseFloat(this.formobj.rescueAmount !== '' + ? this.formobj.rescueAmount : '0') if (this.formobj.aitemVos.length > 0) { this.formobj.aitemVos.forEach((e) => { if (e.aitemName !== '') { diff --git a/yxt-as-ui/src/views/storage/stocktaking/index.vue b/yxt-as-ui/src/views/storage/stocktaking/index.vue index ca709dd71d..520059416d 100644 --- a/yxt-as-ui/src/views/storage/stocktaking/index.vue +++ b/yxt-as-ui/src/views/storage/stocktaking/index.vue @@ -9,15 +9,43 @@ - - - + + - - - + + + + + + 至 + + + + + + + + + + + + @@ -33,34 +61,118 @@ - + - - - - - - - - - - + + + 查看 + 办理 + 盘库报告 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + 盘点人 + 审核结果 + + + 生成日期 + 审核结果 + + + 监盘人 + + + + + + + + 备注 + + + + + + + + 保 存 + 关 闭 + + + + @@ -79,6 +191,7 @@ }, data() { return { + dialogVisible: false, btndisabled: false, viewState: 1, // 1、列表 2、添加 3、修改 4、查看 isSearchShow: false, @@ -90,14 +203,21 @@ size: 'small', icon: 'plus', btnKey: 'toAdd', - btnLabel: '新增' + btnLabel: '生成盘点单' + }, + { + type: 'primary', + size: 'small', + icon: 'edit', + btnKey: 'toEdit', + btnLabel: '盘库' }, { type: 'primary', size: 'small', icon: 'edit', btnKey: 'toEdit', - btnLabel: '编辑' + btnLabel: '生成盘库报告' }, { type: 'info', @@ -112,21 +232,39 @@ size: 10, total: 0, params: { - "createDateStart": "", - "createDateEnd": "", + 'createDateStart': '', + 'createDateEnd': '' } }, sids: [], - selectionList: [] + selectionList: [], + stocktakTypeList: [{ + sid: '1', + name: '未完成' + }, + { + sid: '2', + name: '已完成' + } + ], + formobj: {} } }, mounted() { this.$refs['btnbar'].setButtonList(this.btnList) }, created() { - this.loadList() + // this.loadList() }, methods: { + + handleClose() { + this.dialogVisible = false + }, + saveExamine() { + this.dialogVisible = false + }, + // 搜索条件效果 clicksearchShow() { this.isSearchShow = !this.isSearchShow @@ -141,9 +279,9 @@ case 'toAdd': this.toAdd() break - case 'toEdit': - this.toEdit() - break + case 'toEdit': + this.toEdit() + break case 'doClose': this.doClose() break @@ -175,13 +313,6 @@ var pageindex = index + 1 + pagestart return pageindex }, - selectTime1() { - - }, - selectTime2() { - - }, - dosearch() { this.queryParams.current = 1 this.loadList() @@ -192,36 +323,37 @@ size: 10, total: 0, params: { - "createDateStart": "", - "createDateEnd": "", + 'createDateStart': '', + 'createDateEnd': '' } } this.loadList() }, toAdd() { - this.viewState = 2 - this.$refs['divadd'].showAdd() + // this.viewState = 2 + // this.$refs['divadd'].showAdd() + + this.dialogVisible = true }, selectionLineChangeHandle(val) { - console.log("val", val); + console.log('val', val) this.selectionList = val - }, - toEdit(){ - if(this.selectionList.length!=1){ + toEdit() { + if (this.selectionList.length != 1) { this.$message({ type: 'warning', - message: "请选择一条数据。", + message: '请选择一条数据。', showClose: true }) return } - if(this.selectionList[0].checkState==2){ + if (this.selectionList[0].checkState == 2) { this.$message({ type: 'warning', - message: "此记录已完成,不可重复编辑。", + message: '此记录已完成,不可重复编辑。', showClose: true }) return @@ -230,33 +362,6 @@ this.viewState = 3 this.$refs['divadd'].showEdit(this.selectionList[0]) }, - toBuild() { - const loading = this.$loading({ - lock: true, - text: 'Loading', - spinner: 'el-icon-loading', - background: 'rgba(0, 0, 0, 0.7)' - }) - - - req.exportExcel(this.queryParams.params).then((resp) => { - loading.close() - const blob = new Blob([resp], { - type: 'application/vnd.ms-excel' - }) - const fileName = '出入库明细_' + this.queryParams.params.createDateStart + '.xls' - const elink = document.createElement('a') - elink.download = fileName - elink.style.display = 'nonde' - elink.href = URL.createObjectURL(blob) - document.body.appendChild(elink) - elink.click() - URL.revokeObjectURL(elink.href) - document.body.removeChild(elink) - }).catch(() => { - loading.close() - }) - }, doClose() { this.$store.dispatch('tagsView/delView', this.$route) this.$router.go(-1) @@ -266,57 +371,54 @@ this.viewState = 3 this.$refs['divadd'].showEdit(row) }, - toRelevancyInfo(row) { - const tip = '请确认是否删除所选品牌?' - this.$confirm(tip, '提示', { - confirmButtonText: '确定', - cancelButtonText: '取消', - type: 'warning' - }).then(() => { - const loading = this.$loading({ - lock: true, - text: 'Loading', - spinner: 'el-icon-loading', - background: 'rgba(0, 0, 0, 0.7)' - }) - req.deleteGoods(row.sid).then((resp) => { - loading.close() - if (resp.success) { - this.$message({ - type: 'success', - message: resp.msg, - showClose: true - }) - this.loadList() - } else { - // 根据resp.code进行异常情况处理 - } - }).catch(e => { - loading.close() - }) - }).catch(() => {}) - }, + resetState() { this.viewState = 1 - }, - enableChange(sid, state) { - console.log('sid', sid) - console.log('state', state) - req.updateIsEnable(sid, state).then((resp) => { - if (resp.success) { - this.$message({ - type: 'success', - message: '状态已更新', - showClose: true - }) - } else { // 根据resp.code进行异常情况处理 - } - }).catch(e => { - console.log(e) - }) } } }