|
@@ -10,22 +10,17 @@
|
|
label-width="85px"
|
|
label-width="85px"
|
|
>
|
|
>
|
|
<el-row>
|
|
<el-row>
|
|
- <el-col :span="7">
|
|
|
|
|
|
+ <el-col :span="5">
|
|
<el-form-item label="申报日期">
|
|
<el-form-item label="申报日期">
|
|
- <el-date-picker
|
|
|
|
|
|
+ <zj-timegran-date
|
|
v-model="filterForm.data.declaretime"
|
|
v-model="filterForm.data.declaretime"
|
|
- value-format="yyyy-MM-dd"
|
|
|
|
- format="yyyy-MM-dd"
|
|
|
|
- :formatter="declaretime"
|
|
|
|
- type="daterange"
|
|
|
|
- range-separator="至"
|
|
|
|
- start-placeholder="开始日期"
|
|
|
|
- end-placeholder="结束日期"
|
|
|
|
- size="mini"
|
|
|
|
- unlink-panels
|
|
|
|
- :picker-options="pickerOptions"
|
|
|
|
- >
|
|
|
|
- </el-date-picker>
|
|
|
|
|
|
+ style="width: 100%"
|
|
|
|
+ :type="'daterange'"
|
|
|
|
+ :timegranId="filterForm.data.timegranid"
|
|
|
|
+ :oneFoo="getselect"
|
|
|
|
+ :defaultOffset="-1"
|
|
|
|
+ :custom="1"
|
|
|
|
+ ></zj-timegran-date>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="4">
|
|
<el-col :span="4">
|
|
@@ -224,7 +219,7 @@
|
|
min-width="100px"
|
|
min-width="100px"
|
|
:show-overflow-tooltip="true"
|
|
:show-overflow-tooltip="true"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
- <el-table-column
|
|
|
|
|
|
+ <el-table-column
|
|
sortable
|
|
sortable
|
|
prop="filename"
|
|
prop="filename"
|
|
label="附件"
|
|
label="附件"
|
|
@@ -369,7 +364,7 @@
|
|
min-width="100px"
|
|
min-width="100px"
|
|
:show-overflow-tooltip="true"
|
|
:show-overflow-tooltip="true"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
- <el-table-column
|
|
|
|
|
|
+ <el-table-column
|
|
sortable
|
|
sortable
|
|
prop="filename"
|
|
prop="filename"
|
|
label="附件"
|
|
label="附件"
|
|
@@ -451,7 +446,7 @@
|
|
<el-table-column
|
|
<el-table-column
|
|
sortable
|
|
sortable
|
|
prop="bz"
|
|
prop="bz"
|
|
- label="报工人"
|
|
|
|
|
|
+ label="记录人"
|
|
min-width="100px"
|
|
min-width="100px"
|
|
:show-overflow-tooltip="true"
|
|
:show-overflow-tooltip="true"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
@@ -476,14 +471,14 @@
|
|
min-width="100px"
|
|
min-width="100px"
|
|
:show-overflow-tooltip="true"
|
|
:show-overflow-tooltip="true"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
- <el-table-column
|
|
|
|
|
|
+ <el-table-column
|
|
sortable
|
|
sortable
|
|
prop="construfile"
|
|
prop="construfile"
|
|
label="报工附件"
|
|
label="报工附件"
|
|
min-width="100px"
|
|
min-width="100px"
|
|
:show-overflow-tooltip="true"
|
|
:show-overflow-tooltip="true"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
-
|
|
|
|
|
|
+
|
|
<el-table-column
|
|
<el-table-column
|
|
class-name="gn-TableDownloadExcel-none"
|
|
class-name="gn-TableDownloadExcel-none"
|
|
label="操作"
|
|
label="操作"
|
|
@@ -503,7 +498,7 @@
|
|
type="primary"
|
|
type="primary"
|
|
size="mini"
|
|
size="mini"
|
|
@click="but_delect(scope.row)"
|
|
@click="but_delect(scope.row)"
|
|
- >撤销</el-button
|
|
|
|
|
|
+ >删除</el-button
|
|
>
|
|
>
|
|
<el-button
|
|
<el-button
|
|
size="mini"
|
|
size="mini"
|
|
@@ -605,7 +600,7 @@
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
<el-form-item label="报工日期">
|
|
<el-form-item label="报工日期">
|
|
<el-date-picker
|
|
<el-date-picker
|
|
- v-model="filterForm.dataa.signtime"
|
|
|
|
|
|
+ v-model="dialog.editorBox.form.dataa.signtime"
|
|
type="date"
|
|
type="date"
|
|
placeholder="选择日期"
|
|
placeholder="选择日期"
|
|
value-format="yyyy-MM-dd"
|
|
value-format="yyyy-MM-dd"
|
|
@@ -665,7 +660,7 @@
|
|
</el-form>
|
|
</el-form>
|
|
</div>
|
|
</div>
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
- <el-button type="primary" @click="construdataSave()">提交</el-button>
|
|
|
|
|
|
+ <el-button type="primary" @click="test()">提交</el-button>
|
|
<el-button type="primary" @click="reject()">取消</el-button>
|
|
<el-button type="primary" @click="reject()">取消</el-button>
|
|
</span>
|
|
</span>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
@@ -839,7 +834,7 @@
|
|
<el-form-item label="报工日期" prop="signtime">
|
|
<el-form-item label="报工日期" prop="signtime">
|
|
<el-input
|
|
<el-input
|
|
clearable
|
|
clearable
|
|
- v-model="dialog.editorBox.form.data.signtime"
|
|
|
|
|
|
+ v-model="dialog.editorBox.form.dataa.signtime"
|
|
placeholder=""
|
|
placeholder=""
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
disabled
|
|
disabled
|
|
@@ -847,7 +842,7 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
- <el-form-item label="报工人员" prop="bz">
|
|
|
|
|
|
+ <el-form-item label="记录人员" prop="bz">
|
|
<el-input
|
|
<el-input
|
|
clearable
|
|
clearable
|
|
v-model="dialog.editorBox.form.dataa.bz"
|
|
v-model="dialog.editorBox.form.dataa.bz"
|
|
@@ -1086,20 +1081,34 @@
|
|
>
|
|
>
|
|
</span>
|
|
</span>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
+ <el-dialog
|
|
|
|
+ title="提示"
|
|
|
|
+ :visible.sync="dialog.editorBox.datetype"
|
|
|
|
+ width="30%"
|
|
|
|
+ >
|
|
|
|
+ <span>该数据已存在是否继续提报</span>
|
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
|
+ <el-button @click="dialog.editorBox.datetype = false">取 消</el-button>
|
|
|
|
+ <el-button type="primary" @click="construdataSave()">确 定</el-button>
|
|
|
|
+ </span>
|
|
|
|
+ </el-dialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import fileUploadBox from "~/components/zg/fileUploadBox.vue";
|
|
import fileUploadBox from "~/components/zg/fileUploadBox.vue";
|
|
|
|
+import timegranDate from "~/components/zg/timegranDate.vue";
|
|
import { formatDate } from "@/utils/util.js";
|
|
import { formatDate } from "@/utils/util.js";
|
|
import store from "@/store/index.js";
|
|
import store from "@/store/index.js";
|
|
export default {
|
|
export default {
|
|
name: "MaintenanceApplication",
|
|
name: "MaintenanceApplication",
|
|
components: {
|
|
components: {
|
|
"zj-fileUploadBox": fileUploadBox,
|
|
"zj-fileUploadBox": fileUploadBox,
|
|
|
|
+ "zj-timegran-date": timegranDate,
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ valuebl:false,
|
|
signtime: "",
|
|
signtime: "",
|
|
tableDatavalue: [],
|
|
tableDatavalue: [],
|
|
fileList: [],
|
|
fileList: [],
|
|
@@ -1108,37 +1117,6 @@ export default {
|
|
declaretime: "",
|
|
declaretime: "",
|
|
leixin: "add",
|
|
leixin: "add",
|
|
multipleSelection: [],
|
|
multipleSelection: [],
|
|
- pickerOptions: {
|
|
|
|
- shortcuts: [
|
|
|
|
- {
|
|
|
|
- text: "最近一周",
|
|
|
|
- onClick(picker) {
|
|
|
|
- const end = new Date();
|
|
|
|
- const start = new Date();
|
|
|
|
- start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
|
|
|
|
- picker.$emit("pick", [start, end]);
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- text: "最近一个月",
|
|
|
|
- onClick(picker) {
|
|
|
|
- const end = new Date();
|
|
|
|
- const start = new Date();
|
|
|
|
- start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
|
|
|
|
- picker.$emit("pick", [start, end]);
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- text: "最近三个月",
|
|
|
|
- onClick(picker) {
|
|
|
|
- const end = new Date();
|
|
|
|
- const start = new Date();
|
|
|
|
- start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
|
|
|
|
- picker.$emit("pick", [start, end]);
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
- },
|
|
|
|
store,
|
|
store,
|
|
userInfo: {
|
|
userInfo: {
|
|
data: null,
|
|
data: null,
|
|
@@ -1163,7 +1141,7 @@ export default {
|
|
billstatus: "", //审核状态
|
|
billstatus: "", //审核状态
|
|
equipmentname: "", //检修类型
|
|
equipmentname: "", //检修类型
|
|
chargeman: "", //申请人
|
|
chargeman: "", //申请人
|
|
- applayer: "" ,//申请单位
|
|
|
|
|
|
+ applayer: "", //申请单位
|
|
reasoncontent: "", //申请内容
|
|
reasoncontent: "", //申请内容
|
|
bz: "", //备注
|
|
bz: "", //备注
|
|
signtime: "", //审批时间
|
|
signtime: "", //审批时间
|
|
@@ -1269,6 +1247,7 @@ export default {
|
|
},
|
|
},
|
|
dialog: {
|
|
dialog: {
|
|
editorBox: {
|
|
editorBox: {
|
|
|
|
+ datetype: false,
|
|
showtypea: false,
|
|
showtypea: false,
|
|
showtype: false,
|
|
showtype: false,
|
|
show: false,
|
|
show: false,
|
|
@@ -1360,9 +1339,34 @@ export default {
|
|
that.filterForm.data.applayer = that.$route.query.applayer;
|
|
that.filterForm.data.applayer = that.$route.query.applayer;
|
|
}
|
|
}
|
|
that.getselect();
|
|
that.getselect();
|
|
-
|
|
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ test() {
|
|
|
|
+ let that = this;
|
|
|
|
+ let arr = that.tableDataa;
|
|
|
|
+ let a = 0;
|
|
|
|
+ let newdate = that.dialog.editorBox.form.dataa.signtime;
|
|
|
|
+ for (let i = 0; i < arr.length; i++) {
|
|
|
|
+ if (newdate === arr[i].signtime) {
|
|
|
|
+ a += 1;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if (a=== 0) {
|
|
|
|
+ that
|
|
|
|
+ .$confirm("是否保存?", "提示", {
|
|
|
|
+ confirmButtonText: "确定",
|
|
|
|
+ cancelButtonText: "取消",
|
|
|
|
+ type: "warning",
|
|
|
|
+ })
|
|
|
|
+ .then(() => {
|
|
|
|
+ that.construdataSave();
|
|
|
|
+ a=0;
|
|
|
|
+ })
|
|
|
|
+ .catch(() => {});
|
|
|
|
+ }else{
|
|
|
|
+ that.dialog.editorBox.datetype = true;
|
|
|
|
+ }
|
|
|
|
+ },
|
|
reject() {
|
|
reject() {
|
|
this.dialog.editorBox.show = false;
|
|
this.dialog.editorBox.show = false;
|
|
},
|
|
},
|
|
@@ -1827,7 +1831,7 @@ export default {
|
|
equipment: that.dialog.editorBox.form.data.equipment,
|
|
equipment: that.dialog.editorBox.form.data.equipment,
|
|
constructionunits: that.dialog.editorBox.form.data.constructionunits,
|
|
constructionunits: that.dialog.editorBox.form.data.constructionunits,
|
|
construpeople: that.dialog.editorBox.form.data.construpeople,
|
|
construpeople: that.dialog.editorBox.form.data.construpeople,
|
|
- signtime: that.filterForm.dataa.signtime,
|
|
|
|
|
|
+ signtime: that.dialog.editorBox.form.dataa.signtime,
|
|
construcontent: that.dialog.editorBox.form.dataa.construcontent,
|
|
construcontent: that.dialog.editorBox.form.dataa.construcontent,
|
|
bz: that.dialog.editorBox.form.dataa.bz,
|
|
bz: that.dialog.editorBox.form.dataa.bz,
|
|
devicename: that.dialog.editorBox.form.data.devicename,
|
|
devicename: that.dialog.editorBox.form.data.devicename,
|
|
@@ -1872,6 +1876,7 @@ export default {
|
|
} else {
|
|
} else {
|
|
that.$message.error(res.message);
|
|
that.$message.error(res.message);
|
|
}
|
|
}
|
|
|
|
+ that.dialog.editorBox.datetype = false;
|
|
that.getselect1();
|
|
that.getselect1();
|
|
that.fileList = [];
|
|
that.fileList = [];
|
|
that.loading = false;
|
|
that.loading = false;
|
|
@@ -1972,6 +1977,12 @@ export default {
|
|
that.dialog.editorBox.show = true;
|
|
that.dialog.editorBox.show = true;
|
|
(that.fileList = []),
|
|
(that.fileList = []),
|
|
(that.dialog.editorBox.form.dataa.bz = that.userInfo.data.userName);
|
|
(that.dialog.editorBox.form.dataa.bz = that.userInfo.data.userName);
|
|
|
|
+ let nowDate = formatDate(new Date(), "yyyy-MM-dd");
|
|
|
|
+ that.dialog.editorBox.form.dataa.signtime = nowDate;
|
|
|
|
+ that.dialog.editorBox.form.data.signtime = nowDate;
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ that.$refs["dialog_form"].clearValidate();
|
|
|
|
+ }, 100);
|
|
for (let key in that.dialog.editorBox.form.data) {
|
|
for (let key in that.dialog.editorBox.form.data) {
|
|
if (typeof row[key] !== "undefined") {
|
|
if (typeof row[key] !== "undefined") {
|
|
that.dialog.editorBox.form.data[key] = row[key];
|
|
that.dialog.editorBox.form.data[key] = row[key];
|
|
@@ -1993,7 +2004,6 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (row.construfile) {
|
|
if (row.construfile) {
|
|
- console.log("在这里");
|
|
|
|
let fn = (row.construfile + "").trim().split(";");
|
|
let fn = (row.construfile + "").trim().split(";");
|
|
if (fn && fn.length > 0) {
|
|
if (fn && fn.length > 0) {
|
|
let construid = row.construid;
|
|
let construid = row.construid;
|