|
|
|
|
@ -620,6 +620,8 @@
|
|
|
|
|
"
|
|
|
|
|
:total="total"
|
|
|
|
|
></el-pagination>
|
|
|
|
|
|
|
|
|
|
<!-- 更改时间 -->
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-card>
|
|
|
|
|
@ -641,6 +643,29 @@
|
|
|
|
|
:is-show.sync="isShowFieldExport"
|
|
|
|
|
:select="select"
|
|
|
|
|
/>
|
|
|
|
|
<!-- 更改时间 -->
|
|
|
|
|
<el-dialog
|
|
|
|
|
title="请选择时间"
|
|
|
|
|
:visible.sync="isShowTime"
|
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
|
width="30%"
|
|
|
|
|
>
|
|
|
|
|
<!-- 日期时间选择器 -->
|
|
|
|
|
<el-date-picker
|
|
|
|
|
v-model="selectedDateTime"
|
|
|
|
|
type="datetime"
|
|
|
|
|
placeholder="选择日期时间"
|
|
|
|
|
format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
:clearable="false"
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
></el-date-picker>
|
|
|
|
|
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button @click="isShowTime = false,timeId='',selectedDateTime=''">取消</el-button>
|
|
|
|
|
<el-button type="primary" @click="updateTime">确定</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
@ -675,6 +700,10 @@ export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
isShowFieldExport: false,
|
|
|
|
|
timeId:'',
|
|
|
|
|
isShowTime:false,
|
|
|
|
|
selectedDateTime:'',
|
|
|
|
|
selectedDateType:'',
|
|
|
|
|
can_pay:'',
|
|
|
|
|
beforeList:[],
|
|
|
|
|
todoTotal: [],
|
|
|
|
|
@ -851,7 +880,7 @@ export default {
|
|
|
|
|
// 选择明细
|
|
|
|
|
async toOutPay(row) {
|
|
|
|
|
// this.$refs.payMx.payId = row.id;
|
|
|
|
|
this.$refs.payMx.payList = row;
|
|
|
|
|
this.$refs.payMx.payList = [row];
|
|
|
|
|
this.isShowPay = true;
|
|
|
|
|
},
|
|
|
|
|
// 批量支付
|
|
|
|
|
@ -1025,25 +1054,47 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
async cellDblclickEvent({ row, column }) {
|
|
|
|
|
if (this.$store.state.user.username !== "admin") return;
|
|
|
|
|
// if (this.$store.state.user.username !== "admin") return;
|
|
|
|
|
if(!this.$store.state.user.roles.includes("全局流程监管")) return
|
|
|
|
|
|
|
|
|
|
if (column.field === "created_at" || column.field === "updated_at") {
|
|
|
|
|
this.$prompt("请输入时间", "提示", {
|
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
|
inputPattern:
|
|
|
|
|
/^(?:19|20)[0-9][0-9]-(?:(?:0[1-9])|(?:1[0-2]))-(?:(?:[0-2][1-9])|(?:[1-3][0-1])) (?:(?:[0-2][0-3])|(?:[0-1][0-9])):[0-5][0-9]:[0-5][0-9]$/,
|
|
|
|
|
inputErrorMessage: "时间格式不正确",
|
|
|
|
|
}).then(({ value }) => {
|
|
|
|
|
updateFlowTime({
|
|
|
|
|
id: row.id,
|
|
|
|
|
date: value,
|
|
|
|
|
}).then((_) => {
|
|
|
|
|
this.$message.success("更新成功");
|
|
|
|
|
this.getList();
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
this.timeId = row.id
|
|
|
|
|
this.selectedDateType = column.field
|
|
|
|
|
this.selectedDateTime = row[column.field]
|
|
|
|
|
this.isShowTime = true
|
|
|
|
|
// this.$prompt("请输入时间", "提示", {
|
|
|
|
|
// confirmButtonText: "确定",
|
|
|
|
|
// cancelButtonText: "取消",
|
|
|
|
|
// inputType:'datetime',
|
|
|
|
|
// inputPattern:
|
|
|
|
|
// /^(?:19|20)[0-9][0-9]-(?:(?:0[1-9])|(?:1[0-2]))-(?:(?:[0-2][1-9])|(?:[1-3][0-1])) (?:(?:[0-2][0-3])|(?:[0-1][0-9])):[0-5][0-9]:[0-5][0-9]$/,
|
|
|
|
|
// inputErrorMessage: "时间格式不正确",
|
|
|
|
|
// }).then(({ value }) => {
|
|
|
|
|
// updateFlowTime({
|
|
|
|
|
// id: row.id,
|
|
|
|
|
// date: value,
|
|
|
|
|
// }).then((_) => {
|
|
|
|
|
// this.$message.success("更新成功");
|
|
|
|
|
// this.getList();
|
|
|
|
|
// });
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
updateTime(){
|
|
|
|
|
updateFlowTime({
|
|
|
|
|
id: this.timeId,
|
|
|
|
|
date: this.selectedDateTime,
|
|
|
|
|
date_type:this.selectedDateType,
|
|
|
|
|
}).then((_) => {
|
|
|
|
|
this.$message.success("更新成功");
|
|
|
|
|
this.timeId = ''
|
|
|
|
|
this.selectedDateTime = ''
|
|
|
|
|
this.selectedDateType = ''
|
|
|
|
|
this.isShowTime = false
|
|
|
|
|
this.getList();
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
checkboxChange() {
|
|
|
|
|
const reserveRecords =
|
|
|
|
|
|