diff --git a/sgzb-ui/src/views/base/assetAttributeManagement/index.vue b/sgzb-ui/src/views/base/assetAttributeManagement/index.vue index d53de42e..9c20ed9c 100644 --- a/sgzb-ui/src/views/base/assetAttributeManagement/index.vue +++ b/sgzb-ui/src/views/base/assetAttributeManagement/index.vue @@ -93,7 +93,7 @@ /> - + diff --git a/sgzb-ui/src/views/base/comeAndGo/index.vue b/sgzb-ui/src/views/base/comeAndGo/index.vue index f3f712c2..ef09bbcb 100644 --- a/sgzb-ui/src/views/base/comeAndGo/index.vue +++ b/sgzb-ui/src/views/base/comeAndGo/index.vue @@ -151,7 +151,7 @@ /> - + - + diff --git a/sgzb-ui/src/views/base/section/index.vue b/sgzb-ui/src/views/base/section/index.vue index 0882176b..ad993b19 100644 --- a/sgzb-ui/src/views/base/section/index.vue +++ b/sgzb-ui/src/views/base/section/index.vue @@ -145,7 +145,7 @@ /> - + diff --git a/sgzb-ui/src/views/base/unit/index.vue b/sgzb-ui/src/views/base/unit/index.vue index 068a181f..466cecb0 100644 --- a/sgzb-ui/src/views/base/unit/index.vue +++ b/sgzb-ui/src/views/base/unit/index.vue @@ -83,7 +83,7 @@ /> - + diff --git a/sgzb-ui/src/views/claimAndRefund/constructionSite/constructionSite.vue b/sgzb-ui/src/views/claimAndRefund/constructionSite/constructionSite.vue index 379b7f16..d73893af 100644 --- a/sgzb-ui/src/views/claimAndRefund/constructionSite/constructionSite.vue +++ b/sgzb-ui/src/views/claimAndRefund/constructionSite/constructionSite.vue @@ -153,7 +153,7 @@ /> - + diff --git a/sgzb-ui/src/views/claimAndRefund/receive/agreement.vue b/sgzb-ui/src/views/claimAndRefund/receive/agreement.vue index 23d996e6..e7bb541d 100644 --- a/sgzb-ui/src/views/claimAndRefund/receive/agreement.vue +++ b/sgzb-ui/src/views/claimAndRefund/receive/agreement.vue @@ -132,91 +132,138 @@ /> - + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - - - - - - - - - + + + + + + + + - + - + - + - + - + @@ -372,7 +372,7 @@ :title="title" :visible.sync="uploadOpen" width="450px" - append-to-body + append-to-body :close-on-click-modal="false" >
diff --git a/sgzb-ui/src/views/store/label/labelBindingHistory.vue b/sgzb-ui/src/views/store/label/labelBindingHistory.vue index 34577ef8..954dd153 100644 --- a/sgzb-ui/src/views/store/label/labelBindingHistory.vue +++ b/sgzb-ui/src/views/store/label/labelBindingHistory.vue @@ -221,7 +221,7 @@ :title="title" :visible.sync="uploadOpen" width="500px" - append-to-body + append-to-body :close-on-click-modal="false" >
@@ -232,7 +232,7 @@ - + diff --git a/sgzb-ui/src/views/store/label/labelType.vue b/sgzb-ui/src/views/store/label/labelType.vue index 5ea8c44b..17f851e4 100644 --- a/sgzb-ui/src/views/store/label/labelType.vue +++ b/sgzb-ui/src/views/store/label/labelType.vue @@ -109,7 +109,7 @@ /> - + diff --git a/sgzb-ui/src/views/store/newBuy/newAccessory/newAccessoryAccept.vue b/sgzb-ui/src/views/store/newBuy/newAccessory/newAccessoryAccept.vue index 9ffffaad..a52493a0 100644 --- a/sgzb-ui/src/views/store/newBuy/newAccessory/newAccessoryAccept.vue +++ b/sgzb-ui/src/views/store/newBuy/newAccessory/newAccessoryAccept.vue @@ -9,9 +9,7 @@ value-format="yyyy-MM-dd" type="date" :disabled="isCheck||isView" - range-separator="-" - start-placeholder="开始日期" - end-placeholder="结束日期" + placeholder="请选择采购日期" > @@ -21,9 +19,8 @@ value-format="yyyy-MM-dd" type="date" :disabled="isCheck||isView" - range-separator="-" - start-placeholder="开始日期" - end-placeholder="结束日期" + :picker-options="pickerOptions" + placeholder="请选择到货日期" > @@ -176,7 +173,7 @@ - + @@ -332,6 +329,29 @@ export default { }, }; }, + computed: { + pickerOptions() { + const that = this; + return { + disabledDate(time) { + if (that.maForm.purchaseTime) { + return ( + time.getTime() < Date.now() || + time.getTime() < new Date(that.maForm.purchaseTime).getTime() - 8.64e7 + ); + } + return time.getTime() < Date.now(); //实现1效果 + }, + }; + }, + }, + watch: { + 'maForm.purchaseTime'() { + if (this.maForm.purchaseTime != '') { + this.maForm.arrivalTime = '' + } + } + }, created() { const taskId = this.$route.query && this.$route.query.taskId; this.taskId = taskId; diff --git a/sgzb-ui/src/views/store/newBuy/newAccessory/newAccessoryList.vue b/sgzb-ui/src/views/store/newBuy/newAccessory/newAccessoryList.vue index e70810e6..2a881fd1 100644 --- a/sgzb-ui/src/views/store/newBuy/newAccessory/newAccessoryList.vue +++ b/sgzb-ui/src/views/store/newBuy/newAccessory/newAccessoryList.vue @@ -113,32 +113,7 @@ :limit.sync="queryParams.pageSize" @pagination="getList" /> - - - - - - - - - - - - - - - - - - - - - - - +
diff --git a/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesAccept.vue b/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesAccept.vue index 34b20c75..c2bc3b54 100644 --- a/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesAccept.vue +++ b/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesAccept.vue @@ -110,7 +110,7 @@ - + diff --git a/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesArrival.vue b/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesArrival.vue index 587908e9..7a0ed5a7 100644 --- a/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesArrival.vue +++ b/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesArrival.vue @@ -58,9 +58,7 @@ style="width: 240px" value-format="yyyy-MM-dd" type="date" - range-separator="-" - start-placeholder="开始日期" - end-placeholder="结束日期" + placeholder="请选择采购日期" > @@ -68,10 +66,9 @@ v-model="maForm.arrivalTime" style="width: 240px" value-format="yyyy-MM-dd" + :picker-options="pickerOptions" type="date" - range-separator="-" - start-placeholder="开始日期" - end-placeholder="结束日期" + placeholder="请选择到货日期" > @@ -310,9 +307,32 @@ export default { // purchaser: [ // { required: true, message: "采购员不能为空", trigger: "blur" } // ] - } + }, }; }, + computed: { + pickerOptions() { + const that = this; + return { + disabledDate(time) { + if (that.maForm.purchaseTime) { + return ( + time.getTime() < Date.now() || + time.getTime() < new Date(that.maForm.purchaseTime).getTime() - 8.64e7 + ); + } + return time.getTime() < Date.now(); //实现1效果 + }, + }; + }, + }, + watch: { + 'maForm.purchaseTime'() { + if (this.maForm.purchaseTime != '') { + this.maForm.arrivalTime = '' + } + } + }, created() { const taskId = this.$route.query && this.$route.query.taskId; this.taskId = taskId; @@ -384,6 +404,7 @@ export default { break; } } + this.$set(row, 'createTime', null); this.$set(row, 'productionTime', ''); this.$set(row, 'supplierId', ''); this.$set(row, 'purchasePrice', 0); @@ -543,11 +564,14 @@ export default { /** 删除按钮操作 */ handleDelete(row) { console.log(row.id) - this.equipmentList.forEach((item,index)=>{ - if(item.id == row.id){ - this.equipmentList.splice(index,1) - } - }) + this.$modal.confirm('是否确认删除该数据项?').then(() => { + this.equipmentList.forEach((item,index)=>{ + if(item.id == row.id){ + this.equipmentList.splice(index,1) + } + }) + }).catch(() => {}); + // const roleIds = row.roleId || this.ids; // this.$modal.confirm('是否确认删除角色编号为"' + roleIds + '"的数据项?').then(function() { @@ -562,7 +586,9 @@ export default { // this.download('system/role/export', { // ...this.queryParams // }, `role_${new Date().getTime()}.xlsx`) - } + }, + + } }; diff --git a/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesCode.vue b/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesCode.vue index 60b021dd..930a72e5 100644 --- a/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesCode.vue +++ b/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesCode.vue @@ -99,7 +99,7 @@ /> --> - + diff --git a/sgzb-ui/src/views/store/shelves/shelvesConfig.vue b/sgzb-ui/src/views/store/shelves/shelvesConfig.vue index 4a382cff..991dfa76 100644 --- a/sgzb-ui/src/views/store/shelves/shelvesConfig.vue +++ b/sgzb-ui/src/views/store/shelves/shelvesConfig.vue @@ -153,7 +153,7 @@ - + diff --git a/sgzb-ui/src/views/store/shelves/shelvesList.vue b/sgzb-ui/src/views/store/shelves/shelvesList.vue index 043fcfc1..133ac5e9 100644 --- a/sgzb-ui/src/views/store/shelves/shelvesList.vue +++ b/sgzb-ui/src/views/store/shelves/shelvesList.vue @@ -75,7 +75,7 @@ - + diff --git a/sgzb-ui/src/views/store/tools/devices.vue b/sgzb-ui/src/views/store/tools/devices.vue index 8975d957..d3d700fc 100644 --- a/sgzb-ui/src/views/store/tools/devices.vue +++ b/sgzb-ui/src/views/store/tools/devices.vue @@ -157,7 +157,7 @@ /> - + diff --git a/sgzb-ui/src/views/store/tools/toolsSupplier.vue b/sgzb-ui/src/views/store/tools/toolsSupplier.vue index 18b0f4bf..ce5f1dff 100644 --- a/sgzb-ui/src/views/store/tools/toolsSupplier.vue +++ b/sgzb-ui/src/views/store/tools/toolsSupplier.vue @@ -121,7 +121,7 @@ /> - + diff --git a/sgzb-ui/src/views/store/tools/toolsType.vue b/sgzb-ui/src/views/store/tools/toolsType.vue index 08d8bb4e..01a4278f 100644 --- a/sgzb-ui/src/views/store/tools/toolsType.vue +++ b/sgzb-ui/src/views/store/tools/toolsType.vue @@ -158,7 +158,7 @@ - + @@ -305,7 +305,7 @@ - + diff --git a/sgzb-ui/src/views/store/warehousing/accessoryWarehousing.vue b/sgzb-ui/src/views/store/warehousing/accessoryWarehousing.vue index 069ac90d..1075fef1 100644 --- a/sgzb-ui/src/views/store/warehousing/accessoryWarehousing.vue +++ b/sgzb-ui/src/views/store/warehousing/accessoryWarehousing.vue @@ -161,7 +161,7 @@ - + - + diff --git a/sgzb-ui/src/views/system/role/index.vue b/sgzb-ui/src/views/system/role/index.vue index fb3b5ef0..4249b3b7 100644 --- a/sgzb-ui/src/views/system/role/index.vue +++ b/sgzb-ui/src/views/system/role/index.vue @@ -156,7 +156,7 @@ /> - + @@ -208,7 +208,7 @@ - + diff --git a/sgzb-ui/src/views/system/user/index.vue b/sgzb-ui/src/views/system/user/index.vue index 1d1beb5f..67ba555b 100644 --- a/sgzb-ui/src/views/system/user/index.vue +++ b/sgzb-ui/src/views/system/user/index.vue @@ -203,7 +203,7 @@ - +