Browse Source

feat: 流水账插件

text-draggable
xuesinan 4 years ago
parent
commit
d6becd2631
  1. 3
      src/components/tall/plugin/Plugin.vue
  2. 20
      src/plugins/p-daily-account/p-daily-account-detail.vue
  3. 1
      src/store/tall/task/index.js

3
src/components/tall/plugin/Plugin.vue

@ -3,9 +3,12 @@
<!-- 交付物插件 -->
<p-deliver v-else-if="pluginId === '15'" />
<!-- 交付物插件2 -->
<!-- <p-deliver-second v-else-if="pluginId === '25'" /> -->
<!-- 资源管理 -->
<!-- <p-source-manage v-else-if="pluginId === '16'" class="p-2" /> -->
<!-- 财务审批统计 -->
<!-- <p-finance-audit v-else-if="pluginId === '17'" class="p-2" /> -->
<!-- 财务条 -->

20
src/plugins/p-daily-account/p-daily-account-detail.vue

@ -123,7 +123,7 @@
<label class="flex-shrink-0 text-right" style="width: 120px; line-height: 32px">
<span style="color: #ff5353; margin-right: 5px">*</span>截止时间
</label>
<a-date-picker class="w-full" v-model:value="item.showDeadLine" />
<a-date-picker class="w-full" v-model:value="item.showDeadLine" :disabled="isDisabled" />
</div>
</a-form-item>
@ -170,8 +170,8 @@
<div class="flex">
<label class="flex-shrink-0 text-right" style="width: 120px; line-height: 32px"> 是否协作 </label>
<a-radio-group v-model:value="item.cooperation" class="w-full items-center" style="display: flex">
<a-radio class="items-center" style="display: flex" :value="1"></a-radio>
<a-radio class="items-center" style="display: flex" :value="0"></a-radio>
<a-radio class="items-center" style="display: flex" :value="1" :disabled="isDisabled"></a-radio>
<a-radio class="items-center" style="display: flex" :value="0" :disabled="isDisabled"></a-radio>
</a-radio-group>
</div>
</a-form-item>
@ -184,14 +184,14 @@
</a-form-item>
</div>
<a-form-item>
<a-form-item v-if="!isDisabled">
<div class="flex">
<label class="flex-shrink-0 text-right" style="width: 120px"></label>
<a-button style="color: #1890ff; border-color: #1890ff" type="dashed" @click="addFormItem">+ 添加</a-button>
</div>
</a-form-item>
<a-form-item>
<a-form-item v-if="!isDisabled">
<div class="flex items-center">
<label class="flex-shrink-0 text-right" style="width: 120px"></label>
<a-button class="mr-4" type="primary" @click="submitForm">提交</a-button>
@ -339,7 +339,7 @@ async function getQueryTasks(query) {
const obj = {
empId: member.id,
key,
time: dayjs(+new Date().getTime()).format('MM-DD'),
time: dayjs(+params.param.startTime).format('MM-DD'),
staff: `${member.empName}`,
program: [],
};
@ -394,7 +394,6 @@ function handlePage(e) {
//
function showModal(data, proId) {
console.log('data', data, proId);
isDisabled.value = dayjs(+new Date().getTime()).format('MM-DD') !== data.time;
visible.value = true;
@ -405,8 +404,8 @@ function showModal(data, proId) {
});
modalFormState.value.forEach((item, index) => {
item.showDeadLine = dayjs(+item.deadline);
item.showDuration = `${item.duration / 3600000}`;
item.showDeadLine = item.deadline ? dayjs(+item.deadline) : dayjs(+new Date().getTime());
item.showDuration = item.duration ? `${item.duration / 3600000}` : '2';
item.sequence = index;
});
}
@ -418,13 +417,12 @@ function filterOption(input, option) {
//
function handleDuration(e, index) {
console.log('index', index, e);
modalFormState.value[index].duration = e;
}
//
function handleInspector(e, index) {
modalFormState.value[index].inspector = e;
modalFormState.value[index].checker = e;
}
//

1
src/store/tall/task/index.js

@ -411,7 +411,6 @@ export default {
*/
setTaskDetailShow(state, data) {
state.taskDetailShow = data;
console.log('taskDetailShow', state.taskDetailShow);
},
},

Loading…
Cancel
Save