diff --git a/src/views/superFusionPlatform/mainPlatform/moduleAndLayout/moduleCom/oa/assetFlow/assetFlow.vue b/src/views/superFusionPlatform/mainPlatform/moduleAndLayout/moduleCom/oa/assetFlow/assetFlow.vue new file mode 100644 index 0000000..14a1be5 --- /dev/null +++ b/src/views/superFusionPlatform/mainPlatform/moduleAndLayout/moduleCom/oa/assetFlow/assetFlow.vue @@ -0,0 +1,109 @@ + + + + + + + + 查看更多>> + + 无更多数据~ + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/superFusionPlatform/mainPlatform/moduleAndLayout/moduleCom/oa/assetFlow/assetFlowLarge.vue b/src/views/superFusionPlatform/mainPlatform/moduleAndLayout/moduleCom/oa/assetFlow/assetFlowLarge.vue new file mode 100644 index 0000000..822ffd6 --- /dev/null +++ b/src/views/superFusionPlatform/mainPlatform/moduleAndLayout/moduleCom/oa/assetFlow/assetFlowLarge.vue @@ -0,0 +1,238 @@ + + + + + 类型 + + + + {{item.name}} + + + + + + + + + + + + + + + + + + + + + + + + 共{{totalNum}}条 + + + + + + + + + \ No newline at end of file diff --git a/src/views/superFusionPlatform/mainPlatform/moduleAndLayout/moduleCom/oa/assetFlow/assetItem.vue b/src/views/superFusionPlatform/mainPlatform/moduleAndLayout/moduleCom/oa/assetFlow/assetItem.vue new file mode 100644 index 0000000..f1b5956 --- /dev/null +++ b/src/views/superFusionPlatform/mainPlatform/moduleAndLayout/moduleCom/oa/assetFlow/assetItem.vue @@ -0,0 +1,153 @@ + + + + + + + + {{operationType}} + + + + {{position == 'left' ? personName + '(' + deptName + ')' : operationTime}} + + + {{position == 'right' ? personName + '(' + deptName + ')' : operationTime}} + + + 成功【{{operationType}}】{{assetCode}} {{assetName}} + + + + {{operationType}} + + + + + + + + + + \ No newline at end of file diff --git a/src/views/superFusionPlatform/mainPlatform/moduleAndLayout/moduleCom/oa/assetFlow/interConfig.js b/src/views/superFusionPlatform/mainPlatform/moduleAndLayout/moduleCom/oa/assetFlow/interConfig.js new file mode 100644 index 0000000..c6c6706 --- /dev/null +++ b/src/views/superFusionPlatform/mainPlatform/moduleAndLayout/moduleCom/oa/assetFlow/interConfig.js @@ -0,0 +1,18 @@ +export default { + /* + * 获取服务器端系统时间 + * */ + "getNowTime":{ + url:'/intellioa/common/getNowTime', + method:'get', + isTestLogin:true + }, + /* + * 资产流水报表 + * */ + "getAssetWaterReport":{ + url:'/intellioa/asset/assetReport/getAssetWaterReport', + method:'get', + isTestLogin:true + }, +} diff --git a/src/views/superFusionPlatform/mainPlatform/moduleAndLayout/moduleCom/oa/common/dateChoose.vue b/src/views/superFusionPlatform/mainPlatform/moduleAndLayout/moduleCom/oa/common/dateChoose.vue index 967acbf..8ac9d38 100644 --- a/src/views/superFusionPlatform/mainPlatform/moduleAndLayout/moduleCom/oa/common/dateChoose.vue +++ b/src/views/superFusionPlatform/mainPlatform/moduleAndLayout/moduleCom/oa/common/dateChoose.vue @@ -13,6 +13,7 @@ * 日期可选 * begin_date:"" 默认当前月1号 * end_date:"" 默认当天 + * hideDefaultDate:"" 是否隐藏默认日期 * @flushDate 接收回传起止日期 * */ @@ -27,9 +28,11 @@ } }, created(){ - this.getNowTime(); + if(!this.$props.hideDefaultDate){ + this.getNowTime(); + } }, - props:['begin_date','end_date'], + props:['begin_date','end_date','hideDefaultDate'], // props:{ // begin_date:{ // type:moment, diff --git a/src/views/superFusionPlatform/mainPlatform/moduleAndLayout/moduleCom/oa/common/portrait.vue b/src/views/superFusionPlatform/mainPlatform/moduleAndLayout/moduleCom/oa/common/portrait.vue index 81dc85b..ba7f996 100644 --- a/src/views/superFusionPlatform/mainPlatform/moduleAndLayout/moduleCom/oa/common/portrait.vue +++ b/src/views/superFusionPlatform/mainPlatform/moduleAndLayout/moduleCom/oa/common/portrait.vue @@ -22,22 +22,29 @@ }, methods: { getImgSrc: function(personId) { - this.InterfaceConfig.callInterface([{ - url: interConfig.getPersonTxByYw.url, - params: { - person_id:personId, - identity_id:5, - }, - method: interConfig.getPersonTxByYw.method, - isTestLogin: interConfig.getPersonTxByYw.isTestLogin, - }], (result) => { - let resData = result[0].data; - if (result[0].status === 200) { - if (resData.success === true) { - this.imgUrl = StaticParams.getThumbUrl(resData.file_id+"."+resData.extension,100,100,100); + if(personId && personId != ''){ + this.InterfaceConfig.callInterface([{ + url: interConfig.getPersonTxByYw.url, + params: { + person_id:personId, + identity_id:5, + }, + method: interConfig.getPersonTxByYw.method, + isTestLogin: interConfig.getPersonTxByYw.isTestLogin, + }], (result) => { + let resData = result[0].data; + if (result[0].status === 200) { + if (resData.success === true) { + this.imgUrl = StaticParams.getThumbUrl(resData.file_id+"."+resData.extension,100,100,100); + } } - } - }) + }) + } + } + }, + watch:{ + personId:function (newVal) { + this.getImgSrc(newVal) } }, components:{