Commit ec8c74ec by 岑成威

Merge branch 'SAAS+V5.8.4' of 192.168.3.233:glsx/gl_tape into SAAS+V5.8.4

2 parents 24270ac6 1c03567a
...@@ -95,7 +95,7 @@ export default { ...@@ -95,7 +95,7 @@ export default {
computed: { computed: {
currentDateText() { currentDateText() {
let { currentDate } = this, let { currentDate } = this,
dayText = dayjs(currentDate).format('M日D日'), dayText = dayjs(currentDate).format('YY-MM-DD'),
weekText = this.weekCN[currentDate.day()], weekText = this.weekCN[currentDate.day()],
/**今天/明天/昨天/N天前/N天后 */ /**今天/明天/昨天/N天前/N天后 */
desc = this.getDateTips(currentDate) desc = this.getDateTips(currentDate)
......
...@@ -47,10 +47,12 @@ ...@@ -47,10 +47,12 @@
</view> </view>
<view class="footer"> <view class="footer">
<Footer> <Footer>
<view class="btn default-btn" @click="$emit('showNegotiationList')">查看洽谈明细表汇总</view> <view :class="['btn default-btn', { w50: !saveBtn }]" @click="$emit('showNegotiationList')">查看洽谈明细表汇总</view>
<view class="btn default-btn" @click="saveBtn = true" v-if="!saveBtn">编辑</view> <view :class="['btn default-btn',{w50:!saveBtn}]" @click="saveBtn = true" v-if="!saveBtn">编辑</view>
<view class="btn default-btn" @click="$emit('saveReport', list)" v-else>保存</view> <template v-else>
<view class="btn default-btn" @click="$emit('saveReport', list)">保存</view>
<view class="btn" @click="$emit('submitReport', list)">上报数据</view> <view class="btn" @click="$emit('submitReport', list)">上报数据</view>
</template>
</Footer> </Footer>
</view> </view>
</template> </template>
...@@ -73,7 +75,7 @@ import DailyPopup from '../components/DailyPopup/index.vue' ...@@ -73,7 +75,7 @@ import DailyPopup from '../components/DailyPopup/index.vue'
export default { export default {
name: 'StoreDailyReport', name: 'StoreDailyReport',
components: { Table, Nothing, Footer, EditForm, FormItem, DailyPopup }, components: { Table, Nothing, Footer, EditForm, FormItem, DailyPopup },
inject: ['userInfo','sceneType'], inject: ['userInfo', 'sceneType'],
props: { props: {
templateData: { templateData: {
type: Array, type: Array,
...@@ -104,7 +106,7 @@ export default { ...@@ -104,7 +106,7 @@ export default {
}, },
ReportStatus: { ReportStatus: {
handler(val) { handler(val) {
this.saveBtn = val !== 0 this.saveBtn = val != 1
}, },
immediate: true, immediate: true,
deep: true deep: true
...@@ -242,6 +244,7 @@ export default { ...@@ -242,6 +244,7 @@ export default {
flex-wrap: wrap; flex-wrap: wrap;
gap: toRpx(24) toRpx(32); gap: toRpx(24) toRpx(32);
align-content: start; align-content: start;
.list-item { .list-item {
width: calc(50% - #{toRpx(16)}); width: calc(50% - #{toRpx(16)});
} }
...@@ -327,6 +330,7 @@ export default { ...@@ -327,6 +330,7 @@ export default {
} }
} }
} }
.disabled { .disabled {
opacity: .5; opacity: .5;
} }
...@@ -390,6 +394,9 @@ export default { ...@@ -390,6 +394,9 @@ export default {
background: #3b73ff1a; background: #3b73ff1a;
color: #4673ff; color: #4673ff;
} }
.w50{
width: calc(100% / 2 - #{toRpx(32)});
}
} }
} }
</style> </style>
\ No newline at end of file \ No newline at end of file
<template> <template>
<view class="report-content "> <view class="report-content ">
<view :class="['report-component', { 'opacity': showNegotiationList }, { 'show': showReport }]"> <view :class="['report-component', { 'opacity': showNegotiationList }, { 'show': showReport }]">
<template v-if="!editableDate || ReportStatus == 1"> <template v-if="!editableDate">
<Detail :templateData="templateData" /> <Detail :templateData="templateData" />
</template> </template>
<template v-else> <template v-else>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!