Browse Source

所有任务中的说明加上在线编辑功能和所有出库中备注也是一样加上编辑功能

branch_ccpg_220107
44673626 3 years ago
parent
commit
cbaebb9a3a
  1. 10
      vue/src/components/ImportExcel-base/index.vue
  2. 20
      vue/src/router/modules/vw_menu.js
  3. 278
      vue/src/views/ux/billManage/InvoiceSettledDetailDiff/index.vue
  4. 266
      vue/src/views/ux/billManage/InvoiceSettledDiff/index.vue
  5. 269
      vue/src/views/ux/billManage/IssuedUnsettled/index.vue
  6. 123
      vue/src/views/ux/billManage/KanbanUnSettled/index.vue
  7. 8
      vue/src/views/ux/billManage/SettleDoorPanel/index.vue
  8. 276
      vue/src/views/ux/billManage/UnInvoiceSettledDetailDiff/index.vue
  9. 265
      vue/src/views/ux/billManage/UnSettleDiffExport/index.vue
  10. 11
      vue/src/views/ux/billManage/UnSettledDiff/index.vue
  11. 119
      vue/src/views/ux/billManage/kanBanWithCode/index.vue
  12. 4
      vue/src/views/ux/billManage/kanBanWithOutCode/index.vue
  13. 94
      vue/src/views/ux/billManage/kanbanOutOrder/index.vue
  14. 104
      vue/src/views/ux/billManage/kanbanWithOutOrder/index.vue
  15. 268
      vue/src/views/ux/billManage/sparePart/index.vue
  16. 268
      vue/src/views/ux/billManage/sparePart90/index.vue
  17. 5
      vue/src/views/ux/billManage/sparepartOutOrder/detail.vue
  18. 100
      vue/src/views/ux/billManage/sparepartOutOrder/index.vue
  19. 100
      vue/src/views/ux/billManage/sparepartOutOrder90/index.vue
  20. 97
      vue/src/views/ux/billManage/vwOutOrder/index.vue
  21. 101
      vue/src/views/ux/vw/dataInput/hq_f_outorder/index.vue
  22. 100
      vue/src/views/ux/vw/dataInput/hq_f_outorder_chickout/index.vue
  23. 138
      vue/src/views/ux/vw/dataInput/hq_f_report/index.vue
  24. 154
      vue/src/views/ux/vw/dataInput/hq_f_sparepart/index.vue
  25. 101
      vue/src/views/ux/vw/dataInput/hq_h_checkout/index.vue
  26. 101
      vue/src/views/ux/vw/dataInput/hq_h_outorder/index.vue
  27. 144
      vue/src/views/ux/vw/dataInput/hq_h_report/index.vue
  28. 142
      vue/src/views/ux/vw/dataInput/hq_h_sparepart/index.vue
  29. 34
      vue/src/views/ux/vw/dataInput/hq_kb_output/detail.vue
  30. 96
      vue/src/views/ux/vw/dataInput/hq_kb_output/index.vue
  31. 101
      vue/src/views/ux/vw/dataInput/hq_m_checkout/index.vue
  32. 100
      vue/src/views/ux/vw/dataInput/hq_m_outorder/index.vue
  33. 137
      vue/src/views/ux/vw/dataInput/hq_m_report/index.vue
  34. 138
      vue/src/views/ux/vw/dataInput/hq_m_sparepart/index.vue
  35. 101
      vue/src/views/ux/vw/dataInput/hq_y_checkout/index.vue
  36. 101
      vue/src/views/ux/vw/dataInput/hq_y_outorder/index.vue
  37. 149
      vue/src/views/ux/vw/dataInput/hq_y_report/index.vue
  38. 20
      vue/src/views/ux/vw/dataInput/hq_y_sparepart/index.vue

10
vue/src/components/ImportExcel-base/index.vue

@ -394,7 +394,7 @@ export default {
HQ_H_CHECKOUT: "/api/settleaccount/WmsHQHSharePartoutput/ExcelImport", //H HQ_H_CHECKOUT: "/api/settleaccount/WmsHQHSharePartoutput/ExcelImport", //H
HQ_M_CHECKOUT: "/api/settleaccount/WmsHQMSharePartoutput/ExcelImport", //M HQ_M_CHECKOUT: "/api/settleaccount/WmsHQMSharePartoutput/ExcelImport", //M
Wms_HqKB_Output: Wms_HqKB_Output:
"/api/settleaccount/WmsHQMSharePartoutput/ExcelImport", // "/api/settleaccount/WmsHQKBOutput/ExcelImport", //
//HQ_Y_CHECKOUT: "/api/settleaccount//ExcelImport", //轿 //HQ_Y_CHECKOUT: "/api/settleaccount//ExcelImport", //轿
}[this.crmType] || "" }[this.crmType] || ""
); );
@ -533,9 +533,11 @@ export default {
}, },
// //
sureClick() { sureClick() {
if (this.versionValue == "") { if (this.crmType != "priceList" && this.crmType != "spareparts") {
this.$message.error("必须选择版本!"); if (this.versionValue == "") {
return false; this.$message.error("必须选择版本!");
return false;
}
} }
if ( if (
this.fileuploadList === [] || this.fileuploadList === [] ||

20
vue/src/router/modules/vw_menu.js

@ -167,16 +167,16 @@ const vwMenudataRouter = {
icon: '看板' icon: '看板'
} }
}, },
{ // {
path: '/kbunsettle', // path: '/kbunsettle',
component: () => import('@/views/ux/billManage/KanbanUnSettled'), // component: () => import('@/views/ux/billManage/KanbanUnSettled'),
name: 'KanbanUnSettled',//命名路由 // name: 'KanbanUnSettled',//命名路由
meta: { // meta: {
title: '看板未结输出', // title: '看板未结输出',
roles: ['SettleAccount.Reports'],//控制页面角色(可以设置多个角色) // roles: ['SettleAccount.Reports'],//控制页面角色(可以设置多个角色)
icon: '看板' // icon: '看板'
} // }
}, // },
// { // {
// path: '/kbwithoutcode', // path: '/kbwithoutcode',
// component: () => import('@/views/ux/billManage/kanBanWithOutCode'), // component: () => import('@/views/ux/billManage/kanBanWithOutCode'),

278
vue/src/views/ux/billManage/InvoiceSettledDetailDiff/index.vue

@ -88,6 +88,7 @@
@row-click="handleRowClick" @row-click="handleRowClick"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@filter-change="filterChange" @filter-change="filterChange"
@cell-dblclick="dblhandleCurrentChange"
> >
<el-table-column type="selection" width="44px"></el-table-column> <el-table-column type="selection" width="44px"></el-table-column>
<el-table-column <el-table-column
@ -106,32 +107,39 @@
</template> </template>
</el-table-column> </el-table-column>
<!-- 操作名称 --> <!-- 在线编译说明 -->
<!-- <el-table-column <el-table-column label="说明" width="400" align="center">
prop="actionName"
label="操作名称(单击箭头过滤)"
width="165"
column-key="actionName"
:filters="[
{ text: '导出', value: '导出' },
{ text: '消息', value: '消息' },
]"
filter-placement="bottom-end"
:filter-method="filterHandler"
>
<template slot-scope="scope"> <template slot-scope="scope">
<div align="center"> <el-input
<el-tag ref="inputRef"
v-for="(item, index) in menuCateMap" v-if="scope.row.isEditCell"
v-show="scope.row.actionName == item.value" v-model.number="scope.row.remark"
:key="index" class="el-input"
:type="item.cssName" v-focus
> @blur="cellBlur(scope.row, scope.column)"
{{ item.label }} />
</el-tag> <span v-else>{{ scope.row.remark }}</span>
</div> <el-button
style="margin-left: 5px"
v-if="scope.row.isEditCell"
type="success"
icon="el-icon-check"
size="small"
circle
@click="submitName(scope.row)"
></el-button>
<el-button
v-show="scope.row.isEditCell"
class="cancel-btn"
size="mini"
icon="el-icon-refresh"
type="warning"
@click.native.prevent="handleCancel(scope.row)"
>
cancel
</el-button>
</template> </template>
</el-table-column> --> </el-table-column>
<!-- 状态 --> <!-- 状态 -->
<el-table-column <el-table-column
prop="stateName" prop="stateName"
@ -211,154 +219,6 @@
/> />
</div> </div>
<!-- 任务日志详细 -->
<el-dialog
title="任务详细"
:visible.sync="openView"
width="700px"
append-to-body
>
<el-form ref="form" :model="form" label-width="120px" size="mini">
<el-row>
<el-col :span="24">
<div class="overall">
<!-- 步骤条 -->
<div class="steps-box">
<ul class="steps">
<li
v-for="(item, index) in stepList"
:key="index"
:class="{ active: activeIndex - 1 === index }"
>
<p :class="{ li_active: activeIndex > index }">
<i :class="item.icon"></i>
</p>
<div
class="text"
:class="{ li_active: activeIndex > index }"
>
{{ item.title }}
</div>
</li>
</ul>
</div>
<!-- 步骤条对应内容 -->
<div class="Article-content">
<el-tabs v-model="activeName">
<el-tab-pane label="基本信息" name="first">
<div class="dialog-body">
<div
class="content"
v-for="(item, index) in stepList"
:key="index"
v-show="activeIndex == index + 1"
>
<div>
<el-card style="height: 300px; margin: 2px">
<div
v-if="activeIndex == 1"
slot="header"
class="clearfix"
>
<span>当前状态等待执行</span>
</div>
<div
v-else-if="activeIndex == 2"
slot="header"
class="clearfix"
>
<span>当前状态执行中...</span>
</div>
<div
v-else-if="activeIndex == 3"
slot="header"
class="clearfix"
>
<div id="chatarea">
<div
style="display: inline; color: #71d87f"
v-if="form.stateName == 'Succeeded'"
>
执行结果执行成功
</div>
<div
style="display: inline; color: #ff5640"
v-else-if="form.stateName == 'Failed'"
>
执行结果执行失败
</div>
</div>
</div>
<div>
<el-col :span="12">
<el-form-item label="模块名称:">{{
form.name
}}</el-form-item>
<el-form-item label="操作名称:">{{
form.actionName
}}</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="创建人:">{{
form.creator
}}</el-form-item>
<el-form-item label="创建时间:">
<el-date-picker
value-format="yyyy-MM-dd hh:mm:ss"
format="yyyy-MM-dd hh:mm:ss"
v-model="form.createdAt"
type="date"
class="picker"
disabled
></el-date-picker>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item
label="异常信息:"
style="color: #ff5640"
v-if="form.stateName == 'Failed'"
>
<el-button
class="result-info__btn--err"
type="text"
@click="downloadErrData(form.error)"
>下载错误数据</el-button
>
</el-form-item>
<el-form-item
label="生成数据:"
style="color: #ff5640"
v-else-if="
form.stateName == 'Succeeded' &&
form.actionName == '导出'
"
>
<el-button
class="result-info__btn--err"
type="text"
@click="downloadErrData(form.downFileName)"
>下载生成数据</el-button
>
</el-form-item>
</el-col>
</div>
</el-card>
</div>
</div>
</div>
</el-tab-pane>
</el-tabs>
</div>
</div>
</el-col>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="openView = false"> </el-button>
</div>
</el-dialog>
<!--统计功能表单渲染--> <!--统计功能表单渲染-->
<el-dialog <el-dialog
:visible.sync="dialogFormVisible" :visible.sync="dialogFormVisible"
@ -924,11 +784,11 @@ export default {
prop: "createdAt", prop: "createdAt",
width: 150, width: 150,
}); });
tempsTabs.push({ // tempsTabs.push({
label: "说明", // label: "",
prop: "remark", // prop: "remark",
width: 350, // width: 350,
}); // });
tempsTabs.push({ tempsTabs.push({
label: "审批状态", label: "审批状态",
prop: "fileName", prop: "fileName",
@ -938,6 +798,58 @@ export default {
}, },
}, },
methods: { methods: {
dblhandleCurrentChange(row, column, cell, event) {
if (column.label === "说明") {
row.isEditCell = true;
this.$set(row, "isEditCell", true);
this.$nextTick(() => {
// elementautofocus
//this.$refs.inputRef.focus();
this.$refs["inputRef"].focus();
});
}
this.list = this.list.filter((item) => {
return item;
});
},
//
cellBlur(row, column) {
row.isEditCell = false;
this.$set(row, "isEditCell", false);
},
// 线
submitName(row) {
let getguid = row.id;
let getremark = row.remark;
this.$axios
.gets("/api/settleaccount/Job/updateRemark", {
p_id: getguid,
remark: getremark,
})
.then((response) => {
if (response == true) {
this.$notify({
title: "成功",
message: "更新成功",
type: "success",
duration: 2000,
});
this.getList();
}
})
.catch(() => {
this.listLoading = false;
});
},
//
handleCancel(row) {
row.isEditCell = false;
this.$set(row, "isEditCell", false);
this.getList();
},
handleSelectionChange(val) {
this.multipleSelection = val;
},
sortChange(data) { sortChange(data) {
const { prop, order } = data; const { prop, order } = data;
if (!prop || !order) { if (!prop || !order) {
@ -1311,21 +1223,21 @@ export default {
}, },
getdateValue(val) { getdateValue(val) {
this.startTime = val; this.startTime = val;
this.getbalanceIndexData(); //this.getbalanceIndexData();
}, },
getdateVal(val) { getdateVal(val) {
this.endTime = val; this.endTime = val;
this.getbalanceIndexData(); //this.getbalanceIndexData();
}, },
//cp5 //cp5
getdateValueCp5(val) { getdateValueCp5(val) {
this.cp5startTime = val; this.cp5startTime = val;
this.getbalanceIndexData(); //this.getbalanceIndexData();
}, },
getdateValCp5(val) { getdateValCp5(val) {
this.cp5endTime = val; this.cp5endTime = val;
this.getbalanceIndexData(); //this.getbalanceIndexData();
}, },
getCurrentMonthFirst() { getCurrentMonthFirst() {
var date = new Date(); var date = new Date();
@ -1622,6 +1534,10 @@ export default {
.posts("/api/settleaccount/Job/list", this.listQuery) .posts("/api/settleaccount/Job/list", this.listQuery)
.then((response) => { .then((response) => {
this.list = response; this.list = response;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => { setTimeout(() => {
// //
this.listLoading = false; this.listLoading = false;

266
vue/src/views/ux/billManage/InvoiceSettledDiff/index.vue

@ -70,6 +70,7 @@
style="width: 100%" style="width: 100%"
@row-click="handleRowClick" @row-click="handleRowClick"
@filter-change="filterChange" @filter-change="filterChange"
@cell-dblclick="dblhandleCurrentChange"
> >
<el-table-column type="selection" width="44px"></el-table-column> <el-table-column type="selection" width="44px"></el-table-column>
<el-table-column <el-table-column
@ -88,32 +89,40 @@
</template> </template>
</el-table-column> </el-table-column>
<!-- 操作名称 --> <!-- 在线编译说明 -->
<el-table-column <el-table-column label="说明" width="400" align="center">
prop="actionName"
label="操作名称(单击箭头过滤)"
width="165"
column-key="actionName"
:filters="[
{ text: '导出', value: '导出' },
{ text: '消息', value: '消息' },
]"
filter-placement="bottom-end"
:filter-method="filterHandler"
>
<template slot-scope="scope"> <template slot-scope="scope">
<div align="center"> <el-input
<el-tag ref="inputRef"
v-for="(item, index) in menuCateMap" v-if="scope.row.isEditCell"
v-show="scope.row.actionName == item.value" v-model.number="scope.row.remark"
:key="index" class="el-input"
:type="item.cssName" v-focus
> @blur="cellBlur(scope.row, scope.column)"
{{ item.label }} />
</el-tag> <span v-else>{{ scope.row.remark }}</span>
</div> <el-button
style="margin-left: 5px"
v-if="scope.row.isEditCell"
type="success"
icon="el-icon-check"
size="small"
circle
@click="submitName(scope.row)"
></el-button>
<el-button
v-show="scope.row.isEditCell"
class="cancel-btn"
size="mini"
icon="el-icon-refresh"
type="warning"
@click.native.prevent="handleCancel(scope.row)"
>
cancel
</el-button>
</template> </template>
</el-table-column> </el-table-column>
<!-- 状态 --> <!-- 状态 -->
<el-table-column <el-table-column
prop="stateName" prop="stateName"
@ -193,154 +202,6 @@
/> />
</div> </div>
<!-- 任务日志详细 -->
<el-dialog
title="任务详细"
:visible.sync="openView"
width="700px"
append-to-body
>
<el-form ref="form" :model="form" label-width="120px" size="mini">
<el-row>
<el-col :span="24">
<div class="overall">
<!-- 步骤条 -->
<div class="steps-box">
<ul class="steps">
<li
v-for="(item, index) in stepList"
:key="index"
:class="{ active: activeIndex - 1 === index }"
>
<p :class="{ li_active: activeIndex > index }">
<i :class="item.icon"></i>
</p>
<div
class="text"
:class="{ li_active: activeIndex > index }"
>
{{ item.title }}
</div>
</li>
</ul>
</div>
<!-- 步骤条对应内容 -->
<div class="Article-content">
<el-tabs v-model="activeName">
<el-tab-pane label="基本信息" name="first">
<div class="dialog-body">
<div
class="content"
v-for="(item, index) in stepList"
:key="index"
v-show="activeIndex == index + 1"
>
<div>
<el-card style="height: 300px; margin: 2px">
<div
v-if="activeIndex == 1"
slot="header"
class="clearfix"
>
<span>当前状态等待执行</span>
</div>
<div
v-else-if="activeIndex == 2"
slot="header"
class="clearfix"
>
<span>当前状态执行中...</span>
</div>
<div
v-else-if="activeIndex == 3"
slot="header"
class="clearfix"
>
<div id="chatarea">
<div
style="display: inline; color: #71d87f"
v-if="form.stateName == 'Succeeded'"
>
执行结果执行成功
</div>
<div
style="display: inline; color: #ff5640"
v-else-if="form.stateName == 'Failed'"
>
执行结果执行失败
</div>
</div>
</div>
<div>
<el-col :span="12">
<el-form-item label="模块名称:">{{
form.name
}}</el-form-item>
<el-form-item label="操作名称:">{{
form.actionName
}}</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="创建人:">{{
form.creator
}}</el-form-item>
<el-form-item label="创建时间:">
<el-date-picker
value-format="yyyy-MM-dd hh:mm:ss"
format="yyyy-MM-dd hh:mm:ss"
v-model="form.createdAt"
type="date"
class="picker"
disabled
></el-date-picker>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item
label="异常信息:"
style="color: #ff5640"
v-if="form.stateName == 'Failed'"
>
<el-button
class="result-info__btn--err"
type="text"
@click="downloadErrData(form.error)"
>下载错误数据</el-button
>
</el-form-item>
<el-form-item
label="生成数据:"
style="color: #ff5640"
v-else-if="
form.stateName == 'Succeeded' &&
form.actionName == '导出'
"
>
<el-button
class="result-info__btn--err"
type="text"
@click="downloadErrData(form.downFileName)"
>下载生成数据</el-button
>
</el-form-item>
</el-col>
</div>
</el-card>
</div>
</div>
</div>
</el-tab-pane>
</el-tabs>
</div>
</div>
</el-col>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="openView = false"> </el-button>
</div>
</el-dialog>
<!--统计功能表单渲染--> <!--统计功能表单渲染-->
<el-dialog <el-dialog
:visible.sync="dialogFormVisible" :visible.sync="dialogFormVisible"
@ -643,11 +504,7 @@ export default {
prop: "createdAt", prop: "createdAt",
width: 150, width: 150,
}); });
tempsTabs.push({
label: "说明",
prop: "remark",
width: 220,
});
// tempsTabs.push({ // tempsTabs.push({
// label: "", // label: "",
// prop: "actionName", // prop: "actionName",
@ -662,6 +519,55 @@ export default {
}, },
}, },
methods: { methods: {
dblhandleCurrentChange(row, column, cell, event) {
if (column.label === "说明") {
row.isEditCell = true;
this.$set(row, "isEditCell", true);
this.$nextTick(() => {
// elementautofocus
//this.$refs.inputRef.focus();
this.$refs["inputRef"].focus();
});
}
this.list = this.list.filter((item) => {
return item;
});
},
//
cellBlur(row, column) {
row.isEditCell = false;
this.$set(row, "isEditCell", false);
},
// 线
submitName(row) {
let getguid = row.id;
let getremark = row.remark;
this.$axios
.gets("/api/settleaccount/Job/updateRemark", {
p_id: getguid,
remark: getremark,
})
.then((response) => {
if (response == true) {
this.$notify({
title: "成功",
message: "更新成功",
type: "success",
duration: 2000,
});
this.getList();
}
})
.catch(() => {
this.listLoading = false;
});
},
//
handleCancel(row) {
row.isEditCell = false;
this.$set(row, "isEditCell", false);
this.getList();
},
handleSelectionChange(val) { handleSelectionChange(val) {
this.multipleSelection = val; this.multipleSelection = val;
}, },
@ -755,11 +661,11 @@ export default {
}, },
getdateValue(val) { getdateValue(val) {
this.startTime = val; this.startTime = val;
this.getbalanceIndexData(); //this.getbalanceIndexData();
}, },
getdateVal(val) { getdateVal(val) {
this.endTime = val; this.endTime = val;
this.getbalanceIndexData(); //his.getbalanceIndexData();
}, },
getCurrentMonthFirst() { getCurrentMonthFirst() {
@ -995,6 +901,10 @@ export default {
.posts("/api/settleaccount/Job/list", this.listQuery) .posts("/api/settleaccount/Job/list", this.listQuery)
.then((response) => { .then((response) => {
this.list = response; this.list = response;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => { setTimeout(() => {
// //
this.listLoading = false; this.listLoading = false;

269
vue/src/views/ux/billManage/IssuedUnsettled/index.vue

@ -70,6 +70,7 @@
@row-click="handleRowClick" @row-click="handleRowClick"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@filter-change="filterChange" @filter-change="filterChange"
@cell-dblclick="dblhandleCurrentChange"
> >
<el-table-column type="selection" width="44px"></el-table-column> <el-table-column type="selection" width="44px"></el-table-column>
<el-table-column <el-table-column
@ -88,8 +89,41 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="说明" width="400" align="center">
<template slot-scope="scope">
<el-input
ref="inputRef"
v-if="scope.row.isEditCell"
v-model.number="scope.row.remark"
class="el-input"
v-focus
@blur="cellBlur(scope.row, scope.column)"
/>
<span v-else>{{ scope.row.remark }}</span>
<el-button
style="margin-left: 5px"
v-if="scope.row.isEditCell"
type="success"
icon="el-icon-check"
size="small"
circle
@click="submitName(scope.row)"
></el-button>
<el-button
v-show="scope.row.isEditCell"
class="cancel-btn"
size="mini"
icon="el-icon-refresh"
type="warning"
@click.native.prevent="handleCancel(scope.row)"
>
cancel
</el-button>
</template>
</el-table-column>
<!-- 操作名称 --> <!-- 操作名称 -->
<el-table-column <!-- <el-table-column
prop="actionName" prop="actionName"
label="操作名称(单击箭头过滤)" label="操作名称(单击箭头过滤)"
width="165" width="165"
@ -113,7 +147,7 @@
</el-tag> </el-tag>
</div> </div>
</template> </template>
</el-table-column> </el-table-column> -->
<!-- 状态 --> <!-- 状态 -->
<el-table-column <el-table-column
prop="stateName" prop="stateName"
@ -193,154 +227,6 @@
/> />
</div> </div>
<!-- 任务日志详细 -->
<el-dialog
title="任务详细"
:visible.sync="openView"
width="700px"
append-to-body
>
<el-form ref="form" :model="form" label-width="120px" size="mini">
<el-row>
<el-col :span="24">
<div class="overall">
<!-- 步骤条 -->
<div class="steps-box">
<ul class="steps">
<li
v-for="(item, index) in stepList"
:key="index"
:class="{ active: activeIndex - 1 === index }"
>
<p :class="{ li_active: activeIndex > index }">
<i :class="item.icon"></i>
</p>
<div
class="text"
:class="{ li_active: activeIndex > index }"
>
{{ item.title }}
</div>
</li>
</ul>
</div>
<!-- 步骤条对应内容 -->
<div class="Article-content">
<el-tabs v-model="activeName">
<el-tab-pane label="基本信息" name="first">
<div class="dialog-body">
<div
class="content"
v-for="(item, index) in stepList"
:key="index"
v-show="activeIndex == index + 1"
>
<div>
<el-card style="height: 300px; margin: 2px">
<div
v-if="activeIndex == 1"
slot="header"
class="clearfix"
>
<span>当前状态等待执行</span>
</div>
<div
v-else-if="activeIndex == 2"
slot="header"
class="clearfix"
>
<span>当前状态执行中...</span>
</div>
<div
v-else-if="activeIndex == 3"
slot="header"
class="clearfix"
>
<div id="chatarea">
<div
style="display: inline; color: #71d87f"
v-if="form.stateName == 'Succeeded'"
>
执行结果执行成功
</div>
<div
style="display: inline; color: #ff5640"
v-else-if="form.stateName == 'Failed'"
>
执行结果执行失败
</div>
</div>
</div>
<div>
<el-col :span="12">
<el-form-item label="模块名称:">{{
form.name
}}</el-form-item>
<el-form-item label="操作名称:">{{
form.actionName
}}</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="创建人:">{{
form.creator
}}</el-form-item>
<el-form-item label="创建时间:">
<el-date-picker
value-format="yyyy-MM-dd hh:mm:ss"
format="yyyy-MM-dd hh:mm:ss"
v-model="form.createdAt"
type="date"
class="picker"
disabled
></el-date-picker>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item
label="异常信息:"
style="color: #ff5640"
v-if="form.stateName == 'Failed'"
>
<el-button
class="result-info__btn--err"
type="text"
@click="downloadErrData(form.error)"
>下载错误数据</el-button
>
</el-form-item>
<el-form-item
label="生成数据:"
style="color: #ff5640"
v-else-if="
form.stateName == 'Succeeded' &&
form.actionName == '导出'
"
>
<el-button
class="result-info__btn--err"
type="text"
@click="downloadErrData(form.downFileName)"
>下载生成数据</el-button
>
</el-form-item>
</el-col>
</div>
</el-card>
</div>
</div>
</div>
</el-tab-pane>
</el-tabs>
</div>
</div>
</el-col>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="openView = false"> </el-button>
</div>
</el-dialog>
<!--统计功能表单渲染--> <!--统计功能表单渲染-->
<el-dialog <el-dialog
:visible.sync="dialogFormVisible" :visible.sync="dialogFormVisible"
@ -670,6 +556,7 @@ export default {
taskId: "", taskId: "",
name: "", name: "",
type: "", type: "",
Sorting: "",
}, },
page: 1, page: 1,
dialogFormVisible: false, dialogFormVisible: false,
@ -746,11 +633,11 @@ export default {
prop: "createdAt", prop: "createdAt",
width: 150, width: 150,
}); });
tempsTabs.push({ // tempsTabs.push({
label: "说明", // label: "",
prop: "remark", // prop: "remark",
width: 220, // width: 220,
}); // });
// tempsTabs.push({ // tempsTabs.push({
// label: "", // label: "",
// prop: "stateName", // prop: "stateName",
@ -760,6 +647,60 @@ export default {
}, },
}, },
methods: { methods: {
dblhandleCurrentChange(row, column, cell, event) {
if (column.label === "说明") {
row.isEditCell = true;
this.$set(row, "isEditCell", true);
this.$nextTick(() => {
// elementautofocus
//this.$refs.inputRef.focus();
this.$refs["inputRef"].focus();
});
}
this.list = this.list.filter((item) => {
return item;
});
},
//
cellBlur(row, column) {
row.isEditCell = false;
this.$set(row, "isEditCell", false);
},
// 线
submitName(row) {
let getguid = row.id;
let getremark = row.remark;
this.$axios
.gets("/api/settleaccount/Job/updateRemark", {
p_id: getguid,
remark: getremark,
})
.then((response) => {
if (response == true) {
this.$notify({
title: "成功",
message: "更新成功",
type: "success",
duration: 2000,
});
this.getList();
}
})
.catch(() => {
this.listLoading = false;
});
},
//
handleCancel(row) {
row.isEditCell = false;
//row.stockQty = row.originalstockQty;
this.$set(row, "isEditCell", false);
// this.$message({
// message: "",
// type: "warning",
// });
this.getList();
},
handleSelectionChange(val) { handleSelectionChange(val) {
this.multipleSelection = val; this.multipleSelection = val;
}, },
@ -825,8 +766,9 @@ export default {
this.$axios this.$axios
.posts("/api/settleaccount/Job/versionlist", this.listQuery) .posts("/api/settleaccount/Job/versionlist", this.listQuery)
.then((response) => { .then((response) => {
let res = response.reverse(); //
this.JobVersionList = []; this.JobVersionList = [];
response.forEach((element) => { res.forEach((element, index) => {
let options = {}; let options = {};
options.value = element; options.value = element;
options.label = element; options.label = element;
@ -853,11 +795,11 @@ export default {
}, },
getdateValue(val) { getdateValue(val) {
this.startTime = val; this.startTime = val;
this.getbalanceIndexData(); //this.getbalanceIndexData();
}, },
getdateVal(val) { getdateVal(val) {
this.endTime = val; this.endTime = val;
this.getbalanceIndexData(); //this.getbalanceIndexData();
}, },
getCurrentMonthFirst() { getCurrentMonthFirst() {
@ -994,9 +936,12 @@ export default {
}); });
}, },
handleCreate() { handleCreate() {
this.$nextTick(() => { // this.$nextTick(() => {
// this.$refs["formCount"].resetFields();
// });
if (this.$refs["formCount"] !== undefined) {
this.$refs["formCount"].resetFields(); this.$refs["formCount"].resetFields();
}); }
this.formTitle = "报表统计"; this.formTitle = "报表统计";
this.isEdit = false; this.isEdit = false;
this.form = {}; this.form = {};
@ -1124,6 +1069,10 @@ export default {
.posts("/api/settleaccount/Job/list", this.listQuery) .posts("/api/settleaccount/Job/list", this.listQuery)
.then((response) => { .then((response) => {
this.list = response; this.list = response;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => { setTimeout(() => {
// //
this.listLoading = false; this.listLoading = false;

123
vue/src/views/ux/billManage/KanbanUnSettled/index.vue

@ -70,6 +70,7 @@
@row-click="handleRowClick" @row-click="handleRowClick"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@filter-change="filterChange" @filter-change="filterChange"
@cell-dblclick="dblhandleCurrentChange"
> >
<el-table-column type="selection" width="44px"></el-table-column> <el-table-column type="selection" width="44px"></el-table-column>
<el-table-column <el-table-column
@ -88,32 +89,40 @@
</template> </template>
</el-table-column> </el-table-column>
<!-- 操作名称 --> <!-- 在线编译说明 -->
<!-- <el-table-column <el-table-column label="说明" width="400" align="center">
prop="actionName"
label="操作名称(单击箭头过滤)"
width="165"
column-key="actionName"
:filters="[
{ text: '导出', value: '导出' },
{ text: '消息', value: '消息' },
]"
filter-placement="bottom-end"
:filter-method="filterHandler"
>
<template slot-scope="scope"> <template slot-scope="scope">
<div align="center"> <el-input
<el-tag ref="inputRef"
v-for="(item, index) in menuCateMap" v-if="scope.row.isEditCell"
v-show="scope.row.actionName == item.value" v-model.number="scope.row.remark"
:key="index" class="el-input"
:type="item.cssName" v-focus
> @blur="cellBlur(scope.row, scope.column)"
{{ item.label }} />
</el-tag> <span v-else>{{ scope.row.remark }}</span>
</div> <el-button
style="margin-left: 5px"
v-if="scope.row.isEditCell"
type="success"
icon="el-icon-check"
size="small"
circle
@click="submitName(scope.row)"
></el-button>
<el-button
v-show="scope.row.isEditCell"
class="cancel-btn"
size="mini"
icon="el-icon-refresh"
type="warning"
@click.native.prevent="handleCancel(scope.row)"
>
cancel
</el-button>
</template> </template>
</el-table-column> --> </el-table-column>
<!-- 状态 --> <!-- 状态 -->
<el-table-column <el-table-column
prop="stateName" prop="stateName"
@ -611,11 +620,7 @@ export default {
prop: "createdAt", prop: "createdAt",
width: 150, width: 150,
}); });
tempsTabs.push({
label: "说明",
prop: "remark",
width: 220,
});
tempsTabs.push({ tempsTabs.push({
label: "审批状态", label: "审批状态",
prop: "fileName", prop: "fileName",
@ -625,6 +630,55 @@ export default {
}, },
}, },
methods: { methods: {
dblhandleCurrentChange(row, column, cell, event) {
if (column.label === "说明") {
row.isEditCell = true;
this.$set(row, "isEditCell", true);
this.$nextTick(() => {
// elementautofocus
//this.$refs.inputRef.focus();
this.$refs["inputRef"].focus();
});
}
this.list = this.list.filter((item) => {
return item;
});
},
//
cellBlur(row, column) {
row.isEditCell = false;
this.$set(row, "isEditCell", false);
},
// 线
submitName(row) {
let getguid = row.id;
let getremark = row.remark;
this.$axios
.gets("/api/settleaccount/Job/updateRemark", {
p_id: getguid,
remark: getremark,
})
.then((response) => {
if (response == true) {
this.$notify({
title: "成功",
message: "更新成功",
type: "success",
duration: 2000,
});
this.getList();
}
})
.catch(() => {
this.listLoading = false;
});
},
//
handleCancel(row) {
row.isEditCell = false;
this.$set(row, "isEditCell", false);
this.getList();
},
handleSelectionChange(val) { handleSelectionChange(val) {
this.multipleSelection = val; this.multipleSelection = val;
}, },
@ -739,11 +793,11 @@ export default {
}, },
getdateValue(val) { getdateValue(val) {
this.startTime = val; this.startTime = val;
this.getbalanceIndexData(); //this.getbalanceIndexData();
}, },
getdateVal(val) { getdateVal(val) {
this.endTime = val; this.endTime = val;
this.getbalanceIndexData(); //this.getbalanceIndexData();
}, },
getCurrentMonthFirst() { getCurrentMonthFirst() {
@ -836,8 +890,7 @@ export default {
: undefined; : undefined;
this.listExportQuery.end = this.endTime ? this.endTime : undefined; this.listExportQuery.end = this.endTime ? this.endTime : undefined;
console.log( console.log(
"大众看板未结明细-导出条件:" + "大众看板未结明细-导出条件:" + JSON.stringify(this.listExportQuery)
JSON.stringify(this.listExportQuery)
); );
this.$axios this.$axios
.posts( .posts(
@ -994,6 +1047,10 @@ export default {
.posts("/api/settleaccount/Job/list", this.listQuery) .posts("/api/settleaccount/Job/list", this.listQuery)
.then((response) => { .then((response) => {
this.list = response; this.list = response;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => { setTimeout(() => {
// //
this.listLoading = false; this.listLoading = false;

8
vue/src/views/ux/billManage/SettleDoorPanel/index.vue

@ -897,20 +897,20 @@ export default {
//cp7 //cp7
getdateValue(val) { getdateValue(val) {
this.startTime = val; this.startTime = val;
this.getbalanceIndexData(); //this.getbalanceIndexData();
}, },
getdateVal(val) { getdateVal(val) {
this.endTime = val; this.endTime = val;
this.getbalanceIndexData(); //this.getbalanceIndexData();
}, },
//cp5 //cp5
getdateValueCp5(val) { getdateValueCp5(val) {
this.cp5startTime = val; this.cp5startTime = val;
this.getbalanceIndexData(); //this.getbalanceIndexData();
}, },
getdateValCp5(val) { getdateValCp5(val) {
this.cp5endTime = val; this.cp5endTime = val;
this.getbalanceIndexData(); //this.getbalanceIndexData();
}, },
getCurrentMonthFirst() { getCurrentMonthFirst() {

276
vue/src/views/ux/billManage/UnInvoiceSettledDetailDiff/index.vue

@ -70,6 +70,7 @@
@row-click="handleRowClick" @row-click="handleRowClick"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@filter-change="filterChange" @filter-change="filterChange"
@cell-dblclick="dblhandleCurrentChange"
> >
<el-table-column type="selection" width="44px"></el-table-column> <el-table-column type="selection" width="44px"></el-table-column>
<el-table-column <el-table-column
@ -88,30 +89,37 @@
</template> </template>
</el-table-column> </el-table-column>
<!-- 操作名称 --> <!-- 在线编译说明 -->
<el-table-column <el-table-column label="说明" width="400" align="center">
prop="actionName"
label="操作名称(单击箭头过滤)"
width="165"
column-key="actionName"
:filters="[
{ text: '导出', value: '导出' },
{ text: '消息', value: '消息' },
]"
filter-placement="bottom-end"
:filter-method="filterHandler"
>
<template slot-scope="scope"> <template slot-scope="scope">
<div align="center"> <el-input
<el-tag ref="inputRef"
v-for="(item, index) in menuCateMap" v-if="scope.row.isEditCell"
v-show="scope.row.actionName == item.value" v-model.number="scope.row.remark"
:key="index" class="el-input"
:type="item.cssName" v-focus
> @blur="cellBlur(scope.row, scope.column)"
{{ item.label }} />
</el-tag> <span v-else>{{ scope.row.remark }}</span>
</div> <el-button
style="margin-left: 5px"
v-if="scope.row.isEditCell"
type="success"
icon="el-icon-check"
size="small"
circle
@click="submitName(scope.row)"
></el-button>
<el-button
v-show="scope.row.isEditCell"
class="cancel-btn"
size="mini"
icon="el-icon-refresh"
type="warning"
@click.native.prevent="handleCancel(scope.row)"
>
cancel
</el-button>
</template> </template>
</el-table-column> </el-table-column>
<!-- 状态 --> <!-- 状态 -->
@ -193,154 +201,6 @@
/> />
</div> </div>
<!-- 任务日志详细 -->
<el-dialog
title="任务详细"
:visible.sync="openView"
width="700px"
append-to-body
>
<el-form ref="form" :model="form" label-width="120px" size="mini">
<el-row>
<el-col :span="24">
<div class="overall">
<!-- 步骤条 -->
<div class="steps-box">
<ul class="steps">
<li
v-for="(item, index) in stepList"
:key="index"
:class="{ active: activeIndex - 1 === index }"
>
<p :class="{ li_active: activeIndex > index }">
<i :class="item.icon"></i>
</p>
<div
class="text"
:class="{ li_active: activeIndex > index }"
>
{{ item.title }}
</div>
</li>
</ul>
</div>
<!-- 步骤条对应内容 -->
<div class="Article-content">
<el-tabs v-model="activeName">
<el-tab-pane label="基本信息" name="first">
<div class="dialog-body">
<div
class="content"
v-for="(item, index) in stepList"
:key="index"
v-show="activeIndex == index + 1"
>
<div>
<el-card style="height: 300px; margin: 2px">
<div
v-if="activeIndex == 1"
slot="header"
class="clearfix"
>
<span>当前状态等待执行</span>
</div>
<div
v-else-if="activeIndex == 2"
slot="header"
class="clearfix"
>
<span>当前状态执行中...</span>
</div>
<div
v-else-if="activeIndex == 3"
slot="header"
class="clearfix"
>
<div id="chatarea">
<div
style="display: inline; color: #71d87f"
v-if="form.stateName == 'Succeeded'"
>
执行结果执行成功
</div>
<div
style="display: inline; color: #ff5640"
v-else-if="form.stateName == 'Failed'"
>
执行结果执行失败
</div>
</div>
</div>
<div>
<el-col :span="12">
<el-form-item label="模块名称:">{{
form.name
}}</el-form-item>
<el-form-item label="操作名称:">{{
form.actionName
}}</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="创建人:">{{
form.creator
}}</el-form-item>
<el-form-item label="创建时间:">
<el-date-picker
value-format="yyyy-MM-dd hh:mm:ss"
format="yyyy-MM-dd hh:mm:ss"
v-model="form.createdAt"
type="date"
class="picker"
disabled
></el-date-picker>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item
label="异常信息:"
style="color: #ff5640"
v-if="form.stateName == 'Failed'"
>
<el-button
class="result-info__btn--err"
type="text"
@click="downloadErrData(form.error)"
>下载错误数据</el-button
>
</el-form-item>
<el-form-item
label="生成数据:"
style="color: #ff5640"
v-else-if="
form.stateName == 'Succeeded' &&
form.actionName == '导出'
"
>
<el-button
class="result-info__btn--err"
type="text"
@click="downloadErrData(form.downFileName)"
>下载生成数据</el-button
>
</el-form-item>
</el-col>
</div>
</el-card>
</div>
</div>
</div>
</el-tab-pane>
</el-tabs>
</div>
</div>
</el-col>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="openView = false"> </el-button>
</div>
</el-dialog>
<!--统计功能表单渲染--> <!--统计功能表单渲染-->
<el-dialog <el-dialog
:visible.sync="dialogFormVisible" :visible.sync="dialogFormVisible"
@ -794,15 +654,60 @@ export default {
prop: "createdAt", prop: "createdAt",
width: 150, width: 150,
}); });
tempsTabs.push({
label: "说明",
prop: "remark",
width: 220,
});
return tempsTabs; return tempsTabs;
}, },
}, },
methods: { methods: {
dblhandleCurrentChange(row, column, cell, event) {
if (column.label === "说明") {
row.isEditCell = true;
this.$set(row, "isEditCell", true);
this.$nextTick(() => {
// elementautofocus
//this.$refs.inputRef.focus();
this.$refs["inputRef"].focus();
});
}
this.list = this.list.filter((item) => {
return item;
});
},
//
cellBlur(row, column) {
row.isEditCell = false;
this.$set(row, "isEditCell", false);
},
// 线
submitName(row) {
let getguid = row.id;
let getremark = row.remark;
this.$axios
.gets("/api/settleaccount/Job/updateRemark", {
p_id: getguid,
remark: getremark,
})
.then((response) => {
if (response == true) {
this.$notify({
title: "成功",
message: "更新成功",
type: "success",
duration: 2000,
});
this.getList();
}
})
.catch(() => {
this.listLoading = false;
});
},
//
handleCancel(row) {
row.isEditCell = false;
this.$set(row, "isEditCell", false);
this.getList();
},
handleSelectionChange(val) { handleSelectionChange(val) {
this.multipleSelection = val; this.multipleSelection = val;
}, },
@ -896,21 +801,21 @@ export default {
}, },
getdateValue(val) { getdateValue(val) {
this.startTime = val; this.startTime = val;
this.getbalanceIndexData(); //this.getbalanceIndexData();
}, },
getdateVal(val) { getdateVal(val) {
this.endTime = val; this.endTime = val;
this.getbalanceIndexData(); //this.getbalanceIndexData();
}, },
//cp5 //cp5
getdateValueCp5(val) { getdateValueCp5(val) {
this.cp5startTime = val; this.cp5startTime = val;
this.getbalanceIndexData(); //this.getbalanceIndexData();
}, },
getdateValCp5(val) { getdateValCp5(val) {
this.cp5endTime = val; this.cp5endTime = val;
this.getbalanceIndexData(); //this.getbalanceIndexData();
}, },
getCurrentMonthFirst() { getCurrentMonthFirst() {
@ -1055,9 +960,12 @@ export default {
}); });
}, },
handleCreate() { handleCreate() {
this.$nextTick(() => { // this.$nextTick(() => {
// this.$refs["formCount"].resetFields();
// });
if (this.$refs["formCount"] !== undefined) {
this.$refs["formCount"].resetFields(); this.$refs["formCount"].resetFields();
}); }
this.formTitle = "报表统计"; this.formTitle = "报表统计";
this.isEdit = false; this.isEdit = false;
this.form = {}; this.form = {};
@ -1187,6 +1095,10 @@ export default {
.posts("/api/settleaccount/Job/list", this.listQuery) .posts("/api/settleaccount/Job/list", this.listQuery)
.then((response) => { .then((response) => {
this.list = response; this.list = response;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => { setTimeout(() => {
// //
this.listLoading = false; this.listLoading = false;

265
vue/src/views/ux/billManage/UnSettleDiffExport/index.vue

@ -71,6 +71,7 @@
@row-click="handleRowClick" @row-click="handleRowClick"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@filter-change="filterChange" @filter-change="filterChange"
@cell-dblclick="dblhandleCurrentChange"
> >
<el-table-column type="selection" width="44px"></el-table-column> <el-table-column type="selection" width="44px"></el-table-column>
<el-table-column <el-table-column
@ -89,30 +90,37 @@
</template> </template>
</el-table-column> </el-table-column>
<!-- 操作名称 --> <!-- 在线编译说明 -->
<el-table-column <el-table-column label="说明" width="400" align="center">
prop="actionName"
label="操作名称(单击箭头过滤)"
width="165"
column-key="actionName"
:filters="[
{ text: '导出', value: '导出' },
{ text: '消息', value: '消息' },
]"
filter-placement="bottom-end"
:filter-method="filterHandler"
>
<template slot-scope="scope"> <template slot-scope="scope">
<div align="center"> <el-input
<el-tag ref="inputRef"
v-for="(item, index) in menuCateMap" v-if="scope.row.isEditCell"
v-show="scope.row.actionName == item.value" v-model.number="scope.row.remark"
:key="index" class="el-input"
:type="item.cssName" v-focus
> @blur="cellBlur(scope.row, scope.column)"
{{ item.label }} />
</el-tag> <span v-else>{{ scope.row.remark }}</span>
</div> <el-button
style="margin-left: 5px"
v-if="scope.row.isEditCell"
type="success"
icon="el-icon-check"
size="small"
circle
@click="submitName(scope.row)"
></el-button>
<el-button
v-show="scope.row.isEditCell"
class="cancel-btn"
size="mini"
icon="el-icon-refresh"
type="warning"
@click.native.prevent="handleCancel(scope.row)"
>
cancel
</el-button>
</template> </template>
</el-table-column> </el-table-column>
<!-- 状态 --> <!-- 状态 -->
@ -194,154 +202,6 @@
/> />
</div> </div>
<!-- 任务日志详细 -->
<el-dialog
title="任务详细"
:visible.sync="openView"
width="700px"
append-to-body
>
<el-form ref="form" :model="form" label-width="120px" size="mini">
<el-row>
<el-col :span="24">
<div class="overall">
<!-- 步骤条 -->
<div class="steps-box">
<ul class="steps">
<li
v-for="(item, index) in stepList"
:key="index"
:class="{ active: activeIndex - 1 === index }"
>
<p :class="{ li_active: activeIndex > index }">
<i :class="item.icon"></i>
</p>
<div
class="text"
:class="{ li_active: activeIndex > index }"
>
{{ item.title }}
</div>
</li>
</ul>
</div>
<!-- 步骤条对应内容 -->
<div class="Article-content">
<el-tabs v-model="activeName">
<el-tab-pane label="基本信息" name="first">
<div class="dialog-body">
<div
class="content"
v-for="(item, index) in stepList"
:key="index"
v-show="activeIndex == index + 1"
>
<div>
<el-card style="height: 300px; margin: 2px">
<div
v-if="activeIndex == 1"
slot="header"
class="clearfix"
>
<span>当前状态等待执行</span>
</div>
<div
v-else-if="activeIndex == 2"
slot="header"
class="clearfix"
>
<span>当前状态执行中...</span>
</div>
<div
v-else-if="activeIndex == 3"
slot="header"
class="clearfix"
>
<div id="chatarea">
<div
style="display: inline; color: #71d87f"
v-if="form.stateName == 'Succeeded'"
>
执行结果执行成功
</div>
<div
style="display: inline; color: #ff5640"
v-else-if="form.stateName == 'Failed'"
>
执行结果执行失败
</div>
</div>
</div>
<div>
<el-col :span="12">
<el-form-item label="模块名称:">{{
form.name
}}</el-form-item>
<el-form-item label="操作名称:">{{
form.actionName
}}</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="创建人:">{{
form.creator
}}</el-form-item>
<el-form-item label="创建时间:">
<el-date-picker
value-format="yyyy-MM-dd hh:mm:ss"
format="yyyy-MM-dd hh:mm:ss"
v-model="form.createdAt"
type="date"
class="picker"
disabled
></el-date-picker>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item
label="异常信息:"
style="color: #ff5640"
v-if="form.stateName == 'Failed'"
>
<el-button
class="result-info__btn--err"
type="text"
@click="downloadErrData(form.error)"
>下载错误数据</el-button
>
</el-form-item>
<el-form-item
label="生成数据:"
style="color: #ff5640"
v-else-if="
form.stateName == 'Succeeded' &&
form.actionName == '导出'
"
>
<el-button
class="result-info__btn--err"
type="text"
@click="downloadErrData(form.downFileName)"
>下载生成数据</el-button
>
</el-form-item>
</el-col>
</div>
</el-card>
</div>
</div>
</div>
</el-tab-pane>
</el-tabs>
</div>
</div>
</el-col>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="openView = false"> </el-button>
</div>
</el-dialog>
<!--统计功能表单渲染--> <!--统计功能表单渲染-->
<el-dialog <el-dialog
:visible.sync="dialogFormVisible" :visible.sync="dialogFormVisible"
@ -755,11 +615,7 @@ export default {
prop: "createdAt", prop: "createdAt",
width: 150, width: 150,
}); });
tempsTabs.push({
label: "说明",
prop: "remark",
width: 220,
});
// tempsTabs.push({ // tempsTabs.push({
// label: "", // label: "",
// prop: "stateName", // prop: "stateName",
@ -769,6 +625,55 @@ export default {
}, },
}, },
methods: { methods: {
dblhandleCurrentChange(row, column, cell, event) {
if (column.label === "说明") {
row.isEditCell = true;
this.$set(row, "isEditCell", true);
this.$nextTick(() => {
// elementautofocus
//this.$refs.inputRef.focus();
this.$refs["inputRef"].focus();
});
}
this.list = this.list.filter((item) => {
return item;
});
},
//
cellBlur(row, column) {
row.isEditCell = false;
this.$set(row, "isEditCell", false);
},
// 线
submitName(row) {
let getguid = row.id;
let getremark = row.remark;
this.$axios
.gets("/api/settleaccount/Job/updateRemark", {
p_id: getguid,
remark: getremark,
})
.then((response) => {
if (response == true) {
this.$notify({
title: "成功",
message: "更新成功",
type: "success",
duration: 2000,
});
this.getList();
}
})
.catch(() => {
this.listLoading = false;
});
},
//
handleCancel(row) {
row.isEditCell = false;
this.$set(row, "isEditCell", false);
this.getList();
},
handleSelectionChange(val) { handleSelectionChange(val) {
this.multipleSelection = val; this.multipleSelection = val;
}, },
@ -862,11 +767,11 @@ export default {
}, },
getdateValue(val) { getdateValue(val) {
this.startTime = val; this.startTime = val;
this.getbalanceIndexData(); //this.getbalanceIndexData();
}, },
getdateVal(val) { getdateVal(val) {
this.endTime = val; this.endTime = val;
this.getbalanceIndexData(); //this.getbalanceIndexData();
}, },
getCurrentMonthFirst() { getCurrentMonthFirst() {
@ -1138,6 +1043,10 @@ export default {
.posts("/api/settleaccount/Job/list", this.listQuery) .posts("/api/settleaccount/Job/list", this.listQuery)
.then((response) => { .then((response) => {
this.list = response; this.list = response;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => { setTimeout(() => {
// //
this.listLoading = false; this.listLoading = false;

11
vue/src/views/ux/billManage/UnSettledDiff/index.vue

@ -852,11 +852,11 @@ export default {
}, },
getdateValue(val) { getdateValue(val) {
this.startTime = val; this.startTime = val;
this.getbalanceIndexData(); //this.getbalanceIndexData();
}, },
getdateVal(val) { getdateVal(val) {
this.endTime = val; this.endTime = val;
this.getbalanceIndexData(); //this.getbalanceIndexData();
}, },
getCurrentMonthFirst() { getCurrentMonthFirst() {
@ -992,9 +992,12 @@ export default {
}); });
}, },
handleCreate() { handleCreate() {
this.$nextTick(() => { // this.$nextTick(() => {
// this.$refs["formCount"].resetFields();
// });
if (this.$refs["formCount"] !== undefined) {
this.$refs["formCount"].resetFields(); this.$refs["formCount"].resetFields();
}); }
this.formTitle = "报表统计"; this.formTitle = "报表统计";
this.isEdit = false; this.isEdit = false;
this.form = {}; this.form = {};

119
vue/src/views/ux/billManage/kanBanWithCode/index.vue

@ -87,6 +87,7 @@
@row-click="handleRowClick" @row-click="handleRowClick"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@filter-change="filterChange" @filter-change="filterChange"
@cell-dblclick="dblhandleCurrentChange"
> >
<el-table-column type="selection" width="44px"></el-table-column> <el-table-column type="selection" width="44px"></el-table-column>
<el-table-column <el-table-column
@ -105,32 +106,39 @@
</template> </template>
</el-table-column> </el-table-column>
<!-- 操作名称 --> <!-- 在线编译说明 -->
<!-- <el-table-column <el-table-column label="说明" width="400" align="center">
prop="actionName"
label="操作名称(单击箭头过滤)"
width="165"
column-key="actionName"
:filters="[
{ text: '导出', value: '导出' },
{ text: '消息', value: '消息' },
]"
filter-placement="bottom-end"
:filter-method="filterHandler"
>
<template slot-scope="scope"> <template slot-scope="scope">
<div align="center"> <el-input
<el-tag ref="inputRef"
v-for="(item, index) in menuCateMap" v-if="scope.row.isEditCell"
v-show="scope.row.actionName == item.value" v-model.number="scope.row.remark"
:key="index" class="el-input"
:type="item.cssName" v-focus
> @blur="cellBlur(scope.row, scope.column)"
{{ item.label }} />
</el-tag> <span v-else>{{ scope.row.remark }}</span>
</div> <el-button
style="margin-left: 5px"
v-if="scope.row.isEditCell"
type="success"
icon="el-icon-check"
size="small"
circle
@click="submitName(scope.row)"
></el-button>
<el-button
v-show="scope.row.isEditCell"
class="cancel-btn"
size="mini"
icon="el-icon-refresh"
type="warning"
@click.native.prevent="handleCancel(scope.row)"
>
cancel
</el-button>
</template> </template>
</el-table-column> --> </el-table-column>
<!-- 状态 --> <!-- 状态 -->
<el-table-column <el-table-column
prop="stateName" prop="stateName"
@ -760,11 +768,7 @@ export default {
prop: "createdAt", prop: "createdAt",
width: 150, width: 150,
}); });
tempsTabs.push({
label: "说明",
prop: "remark",
width: 220,
});
tempsTabs.push({ tempsTabs.push({
label: "审批状态", label: "审批状态",
prop: "fileName", prop: "fileName",
@ -774,6 +778,55 @@ export default {
}, },
}, },
methods: { methods: {
dblhandleCurrentChange(row, column, cell, event) {
if (column.label === "说明") {
row.isEditCell = true;
this.$set(row, "isEditCell", true);
this.$nextTick(() => {
// elementautofocus
//this.$refs.inputRef.focus();
this.$refs["inputRef"].focus();
});
}
this.list = this.list.filter((item) => {
return item;
});
},
//
cellBlur(row, column) {
row.isEditCell = false;
this.$set(row, "isEditCell", false);
},
// 线
submitName(row) {
let getguid = row.id;
let getremark = row.remark;
this.$axios
.gets("/api/settleaccount/Job/updateRemark", {
p_id: getguid,
remark: getremark,
})
.then((response) => {
if (response == true) {
this.$notify({
title: "成功",
message: "更新成功",
type: "success",
duration: 2000,
});
this.getList();
}
})
.catch(() => {
this.listLoading = false;
});
},
//
handleCancel(row) {
row.isEditCell = false;
this.$set(row, "isEditCell", false);
this.getList();
},
handleSelectionChange(val) { handleSelectionChange(val) {
this.multipleSelection = val; this.multipleSelection = val;
}, },
@ -1073,11 +1126,11 @@ export default {
}, },
getdateValue(val) { getdateValue(val) {
this.startTime = val; this.startTime = val;
this.getbalanceIndexData(); //this.getbalanceIndexData();
}, },
getdateVal(val) { getdateVal(val) {
this.endTime = val; this.endTime = val;
this.getbalanceIndexData(); //this.getbalanceIndexData();
}, },
getCurrentMonthFirst() { getCurrentMonthFirst() {
@ -1329,6 +1382,10 @@ export default {
.posts("/api/settleaccount/Job/list", this.listQuery) .posts("/api/settleaccount/Job/list", this.listQuery)
.then((response) => { .then((response) => {
this.list = response; this.list = response;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => { setTimeout(() => {
// //
this.listLoading = false; this.listLoading = false;

4
vue/src/views/ux/billManage/kanBanWithOutCode/index.vue

@ -1073,11 +1073,11 @@ export default {
}, },
getdateValue(val) { getdateValue(val) {
this.startTime = val; this.startTime = val;
this.getbalanceIndexData(); //this.getbalanceIndexData();
}, },
getdateVal(val) { getdateVal(val) {
this.endTime = val; this.endTime = val;
this.getbalanceIndexData(); //this.getbalanceIndexData();
}, },
getCurrentMonthFirst() { getCurrentMonthFirst() {

94
vue/src/views/ux/billManage/kanbanOutOrder/index.vue

@ -45,6 +45,7 @@
@sort-change="sortChange" @sort-change="sortChange"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@row-click="handleRowClick" @row-click="handleRowClick"
@cell-dblclick="dblhandleCurrentChange"
> >
<el-table-column <el-table-column
label="单据号" label="单据号"
@ -77,6 +78,39 @@
{{ scope.column.label }} {{ scope.column.label }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" width="400" align="center">
<template slot-scope="scope">
<el-input
ref="inputRef"
v-if="scope.row.isEditCell"
v-model.number="scope.row.remark"
class="el-input"
v-focus
@blur="cellBlur(scope.row, scope.column)"
/>
<span v-else>{{ scope.row.remark }}</span>
<el-button
style="margin-left: 5px"
v-if="scope.row.isEditCell"
type="success"
icon="el-icon-check"
size="small"
circle
@click="submitName(scope.row)"
></el-button>
<el-button
v-show="scope.row.isEditCell"
class="cancel-btn"
size="mini"
icon="el-icon-refresh"
type="warning"
@click.native.prevent="handleCancel(scope.row)"
>
cancel
</el-button>
</template>
</el-table-column>
</el-table> </el-table>
<div class="table-footer"> <div class="table-footer">
<!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"--> <!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"-->
@ -87,7 +121,7 @@
:limit.sync="listQuery.MaxResultCount" :limit.sync="listQuery.MaxResultCount"
@pagination="getList" @pagination="getList"
/> />
<!-- 导入Excel组件 --> <!-- 导入Excel组件 -->
<importExcel <importExcel
ref="importexcel" ref="importexcel"
:show="showExcelImport" :show="showExcelImport"
@ -204,11 +238,63 @@ export default {
//tempsTabs.push({ label: "", prop: "billNum", width: 150 }); //tempsTabs.push({ label: "", prop: "billNum", width: 150 });
tempsTabs.push({ label: "创建人", prop: "creator", width: 160 }); tempsTabs.push({ label: "创建人", prop: "creator", width: 160 });
tempsTabs.push({ label: "创建时间", prop: "creationTime", width: 160 }); tempsTabs.push({ label: "创建时间", prop: "creationTime", width: 160 });
tempsTabs.push({ label: "备注", prop: "remark", width: 120 }); //tempsTabs.push({ label: "", prop: "remark", width: 120 });
return tempsTabs; return tempsTabs;
}, },
}, },
methods: { methods: {
dblhandleCurrentChange(row, column, cell, event) {
if (column.label === "备注") {
row.isEditCell = true;
this.$set(row, "isEditCell", true);
this.$nextTick(() => {
this.$refs["inputRef"].focus();
});
}
this.list = this.list.filter((item) => {
return item;
});
},
//
cellBlur(row, column) {
row.isEditCell = false;
this.$set(row, "isEditCell", false);
},
// 线
submitName(row) {
let getguid = row.id;
let getremark = row.remark;
this.$axios
.gets("/api/settleaccount/wmskanbanoutput/UpdateRemark", {
id: getguid,
remark: getremark,
})
.then((response) => {
if (response == true) {
this.$notify({
title: "成功",
message: "更新成功",
type: "success",
duration: 2000,
});
this.getList();
}
})
.catch(() => {
this.listLoading = false;
});
},
//
handleCancel(row) {
row.isEditCell = false;
//row.stockQty = row.originalstockQty;
this.$set(row, "isEditCell", false);
// this.$message({
// message: "",
// type: "warning",
// });
this.getList();
},
handleImportExcel() { handleImportExcel() {
// //
this.showExcelImport = true; this.showExcelImport = true;
@ -282,6 +368,10 @@ export default {
this.list = response.items; this.list = response.items;
//alert(JSON.stringify(response.Items)) //alert(JSON.stringify(response.Items))
this.totalCount = response.totalCount; this.totalCount = response.totalCount;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => { setTimeout(() => {
// //
this.listLoading = false; this.listLoading = false;

104
vue/src/views/ux/billManage/kanbanWithOutOrder/index.vue

@ -53,6 +53,7 @@
@sort-change="sortChange" @sort-change="sortChange"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@row-click="handleRowClick" @row-click="handleRowClick"
@cell-dblclick="dblhandleCurrentChange"
> >
<el-table-column <el-table-column
label="单据号" label="单据号"
@ -85,6 +86,39 @@
{{ scope.column.label }} {{ scope.column.label }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" width="400" align="center">
<template slot-scope="scope">
<el-input
ref="inputRef"
v-if="scope.row.isEditCell"
v-model.number="scope.row.remark"
class="el-input"
v-focus
@blur="cellBlur(scope.row, scope.column)"
/>
<span v-else>{{ scope.row.remark }}</span>
<el-button
style="margin-left: 5px"
v-if="scope.row.isEditCell"
type="success"
icon="el-icon-check"
size="small"
circle
@click="submitName(scope.row)"
></el-button>
<el-button
v-show="scope.row.isEditCell"
class="cancel-btn"
size="mini"
icon="el-icon-refresh"
type="warning"
@click.native.prevent="handleCancel(scope.row)"
>
cancel
</el-button>
</template>
</el-table-column>
</el-table> </el-table>
<div class="table-footer"> <div class="table-footer">
<!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"--> <!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"-->
@ -267,11 +301,63 @@ export default {
//tempsTabs.push({ label: "", prop: "billNum", width: 150 }); //tempsTabs.push({ label: "", prop: "billNum", width: 150 });
tempsTabs.push({ label: "创建人", prop: "creator", width: 160 }); tempsTabs.push({ label: "创建人", prop: "creator", width: 160 });
tempsTabs.push({ label: "创建时间", prop: "creationTime", width: 160 }); tempsTabs.push({ label: "创建时间", prop: "creationTime", width: 160 });
tempsTabs.push({ label: "备注", prop: "remark", width: 120 }); //tempsTabs.push({ label: "", prop: "remark", width: 120 });
return tempsTabs; return tempsTabs;
}, },
}, },
methods: { methods: {
dblhandleCurrentChange(row, column, cell, event) {
if (column.label === "备注") {
row.isEditCell = true;
this.$set(row, "isEditCell", true);
this.$nextTick(() => {
this.$refs["inputRef"].focus();
});
}
this.list = this.list.filter((item) => {
return item;
});
},
//
cellBlur(row, column) {
row.isEditCell = false;
this.$set(row, "isEditCell", false);
},
// 线
submitName(row) {
let getguid = row.id;
let getremark = row.remark;
this.$axios
.gets("/api/settleaccount/wmskanbanoutputextend/UpdateRemark", {
id: getguid,
remark: getremark,
})
.then((response) => {
if (response == true) {
this.$notify({
title: "成功",
message: "更新成功",
type: "success",
duration: 2000,
});
this.getList();
}
})
.catch(() => {
this.listLoading = false;
});
},
//
handleCancel(row) {
row.isEditCell = false;
//row.stockQty = row.originalstockQty;
this.$set(row, "isEditCell", false);
// this.$message({
// message: "",
// type: "warning",
// });
this.getList();
},
save() { save() {
this.$refs.formCount.validate((valid) => { this.$refs.formCount.validate((valid) => {
if (valid) { if (valid) {
@ -298,12 +384,12 @@ export default {
this.listExportQuery this.listExportQuery
) )
.then((res) => { .then((res) => {
this.$notify({ this.$notify({
title: "成功", title: "成功",
message: "生成成功", message: "生成成功",
type: "success", type: "success",
duration: 2000, duration: 2000,
}); });
this.getList(); this.getList();
this.formLoading = false; this.formLoading = false;
@ -399,6 +485,10 @@ export default {
this.list = response.items; this.list = response.items;
//alert(JSON.stringify(response.Items)) //alert(JSON.stringify(response.Items))
this.totalCount = response.totalCount; this.totalCount = response.totalCount;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => { setTimeout(() => {
// //
this.listLoading = false; this.listLoading = false;

268
vue/src/views/ux/billManage/sparePart/index.vue

@ -95,6 +95,7 @@
@row-click="handleRowClick" @row-click="handleRowClick"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@filter-change="filterChange" @filter-change="filterChange"
@cell-dblclick="dblhandleCurrentChange"
> >
<el-table-column type="selection" width="44px"></el-table-column> <el-table-column type="selection" width="44px"></el-table-column>
<el-table-column <el-table-column
@ -113,32 +114,39 @@
</template> </template>
</el-table-column> </el-table-column>
<!-- 操作名称 --> <!-- 在线编辑说明 -->
<!-- <el-table-column <el-table-column label="说明" width="400" align="center">
prop="actionName"
label="操作名称(单击箭头过滤)"
width="165"
column-key="actionName"
:filters="[
{ text: '导出', value: '导出' },
{ text: '消息', value: '消息' },
]"
filter-placement="bottom-end"
:filter-method="filterHandler"
>
<template slot-scope="scope"> <template slot-scope="scope">
<div align="center"> <el-input
<el-tag ref="inputRef"
v-for="(item, index) in menuCateMap" v-if="scope.row.isEditCell"
v-show="scope.row.actionName == item.value" v-model.number="scope.row.remark"
:key="index" class="el-input"
:type="item.cssName" v-focus
> @blur="cellBlur(scope.row, scope.column)"
{{ item.label }} />
</el-tag> <span v-else>{{ scope.row.remark }}</span>
</div> <el-button
style="margin-left: 5px"
v-if="scope.row.isEditCell"
type="success"
icon="el-icon-check"
size="small"
circle
@click="submitName(scope.row)"
></el-button>
<el-button
v-show="scope.row.isEditCell"
class="cancel-btn"
size="mini"
icon="el-icon-refresh"
type="warning"
@click.native.prevent="handleCancel(scope.row)"
>
cancel
</el-button>
</template> </template>
</el-table-column> --> </el-table-column>
<!-- 状态 --> <!-- 状态 -->
<el-table-column <el-table-column
prop="stateName" prop="stateName"
@ -218,154 +226,6 @@
/> />
</div> </div>
<!-- 任务日志详细 -->
<el-dialog
title="任务详细"
:visible.sync="openView"
width="700px"
append-to-body
>
<el-form ref="form" :model="form" label-width="120px" size="mini">
<el-row>
<el-col :span="24">
<div class="overall">
<!-- 步骤条 -->
<div class="steps-box">
<ul class="steps">
<li
v-for="(item, index) in stepList"
:key="index"
:class="{ active: activeIndex - 1 === index }"
>
<p :class="{ li_active: activeIndex > index }">
<i :class="item.icon"></i>
</p>
<div
class="text"
:class="{ li_active: activeIndex > index }"
>
{{ item.title }}
</div>
</li>
</ul>
</div>
<!-- 步骤条对应内容 -->
<div class="Article-content">
<el-tabs v-model="activeName">
<el-tab-pane label="基本信息" name="first">
<div class="dialog-body">
<div
class="content"
v-for="(item, index) in stepList"
:key="index"
v-show="activeIndex == index + 1"
>
<div>
<el-card style="height: 300px; margin: 2px">
<div
v-if="activeIndex == 1"
slot="header"
class="clearfix"
>
<span>当前状态等待执行</span>
</div>
<div
v-else-if="activeIndex == 2"
slot="header"
class="clearfix"
>
<span>当前状态执行中...</span>
</div>
<div
v-else-if="activeIndex == 3"
slot="header"
class="clearfix"
>
<div id="chatarea">
<div
style="display: inline; color: #71d87f"
v-if="form.stateName == 'Succeeded'"
>
执行结果执行成功
</div>
<div
style="display: inline; color: #ff5640"
v-else-if="form.stateName == 'Failed'"
>
执行结果执行失败
</div>
</div>
</div>
<div>
<el-col :span="12">
<el-form-item label="模块名称:">{{
form.name
}}</el-form-item>
<el-form-item label="操作名称:">{{
form.actionName
}}</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="创建人:">{{
form.creator
}}</el-form-item>
<el-form-item label="创建时间:">
<el-date-picker
value-format="yyyy-MM-dd hh:mm:ss"
format="yyyy-MM-dd hh:mm:ss"
v-model="form.createdAt"
type="date"
class="picker"
disabled
></el-date-picker>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item
label="异常信息:"
style="color: #ff5640"
v-if="form.stateName == 'Failed'"
>
<el-button
class="result-info__btn--err"
type="text"
@click="downloadErrData(form.error)"
>下载错误数据</el-button
>
</el-form-item>
<el-form-item
label="生成数据:"
style="color: #ff5640"
v-else-if="
form.stateName == 'Succeeded' &&
form.actionName == '导出'
"
>
<el-button
class="result-info__btn--err"
type="text"
@click="downloadErrData(form.downFileName)"
>下载生成数据</el-button
>
</el-form-item>
</el-col>
</div>
</el-card>
</div>
</div>
</div>
</el-tab-pane>
</el-tabs>
</div>
</div>
</el-col>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="openView = false"> </el-button>
</div>
</el-dialog>
<!--统计功能表单渲染--> <!--统计功能表单渲染-->
<el-dialog <el-dialog
:visible.sync="dialogFormVisible" :visible.sync="dialogFormVisible"
@ -854,11 +714,7 @@ export default {
prop: "createdAt", prop: "createdAt",
width: 150, width: 150,
}); });
tempsTabs.push({
label: "说明",
prop: "remark",
width: 350,
});
tempsTabs.push({ tempsTabs.push({
label: "审批状态", label: "审批状态",
prop: "fileName", prop: "fileName",
@ -868,6 +724,60 @@ export default {
}, },
}, },
methods: { methods: {
dblhandleCurrentChange(row, column, cell, event) {
if (column.label === "说明") {
row.isEditCell = true;
this.$set(row, "isEditCell", true);
this.$nextTick(() => {
// elementautofocus
//this.$refs.inputRef.focus();
this.$refs["inputRef"].focus();
});
}
this.list = this.list.filter((item) => {
return item;
});
},
//
cellBlur(row, column) {
row.isEditCell = false;
this.$set(row, "isEditCell", false);
},
// 线
submitName(row) {
let getguid = row.id;
let getremark = row.remark;
this.$axios
.gets("/api/settleaccount/Job/updateRemark", {
p_id: getguid,
remark: getremark,
})
.then((response) => {
if (response == true) {
this.$notify({
title: "成功",
message: "更新成功",
type: "success",
duration: 2000,
});
this.getList();
}
})
.catch(() => {
this.listLoading = false;
});
},
//
handleCancel(row) {
row.isEditCell = false;
//row.stockQty = row.originalstockQty;
this.$set(row, "isEditCell", false);
// this.$message({
// message: "",
// type: "warning",
// });
this.getList();
},
//cp5 //cp5
getdateValueCp5(val) { getdateValueCp5(val) {
this.cp5startTime = val; this.cp5startTime = val;
@ -1486,6 +1396,10 @@ export default {
.posts("/api/settleaccount/Job/list", this.listQuery) .posts("/api/settleaccount/Job/list", this.listQuery)
.then((response) => { .then((response) => {
this.list = response; this.list = response;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => { setTimeout(() => {
// //
this.listLoading = false; this.listLoading = false;

268
vue/src/views/ux/billManage/sparePart90/index.vue

@ -87,6 +87,7 @@
@row-click="handleRowClick" @row-click="handleRowClick"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@filter-change="filterChange" @filter-change="filterChange"
@cell-dblclick="dblhandleCurrentChange"
> >
<el-table-column type="selection" width="44px"></el-table-column> <el-table-column type="selection" width="44px"></el-table-column>
<el-table-column <el-table-column
@ -105,32 +106,39 @@
</template> </template>
</el-table-column> </el-table-column>
<!-- 操作名称 --> <!-- 在线编辑说明字段 -->
<!-- <el-table-column <el-table-column label="说明" width="400" align="center">
prop="actionName"
label="操作名称(单击箭头过滤)"
width="165"
column-key="actionName"
:filters="[
{ text: '导出', value: '导出' },
{ text: '消息', value: '消息' },
]"
filter-placement="bottom-end"
:filter-method="filterHandler"
>
<template slot-scope="scope"> <template slot-scope="scope">
<div align="center"> <el-input
<el-tag ref="inputRef"
v-for="(item, index) in menuCateMap" v-if="scope.row.isEditCell"
v-show="scope.row.actionName == item.value" v-model.number="scope.row.remark"
:key="index" class="el-input"
:type="item.cssName" v-focus
> @blur="cellBlur(scope.row, scope.column)"
{{ item.label }} />
</el-tag> <span v-else>{{ scope.row.remark }}</span>
</div> <el-button
style="margin-left: 5px"
v-if="scope.row.isEditCell"
type="success"
icon="el-icon-check"
size="small"
circle
@click="submitName(scope.row)"
></el-button>
<el-button
v-show="scope.row.isEditCell"
class="cancel-btn"
size="mini"
icon="el-icon-refresh"
type="warning"
@click.native.prevent="handleCancel(scope.row)"
>
cancel
</el-button>
</template> </template>
</el-table-column> --> </el-table-column>
<!-- 状态 --> <!-- 状态 -->
<el-table-column <el-table-column
prop="stateName" prop="stateName"
@ -210,154 +218,6 @@
/> />
</div> </div>
<!-- 任务日志详细 -->
<el-dialog
title="任务详细"
:visible.sync="openView"
width="700px"
append-to-body
>
<el-form ref="form" :model="form" label-width="120px" size="mini">
<el-row>
<el-col :span="24">
<div class="overall">
<!-- 步骤条 -->
<div class="steps-box">
<ul class="steps">
<li
v-for="(item, index) in stepList"
:key="index"
:class="{ active: activeIndex - 1 === index }"
>
<p :class="{ li_active: activeIndex > index }">
<i :class="item.icon"></i>
</p>
<div
class="text"
:class="{ li_active: activeIndex > index }"
>
{{ item.title }}
</div>
</li>
</ul>
</div>
<!-- 步骤条对应内容 -->
<div class="Article-content">
<el-tabs v-model="activeName">
<el-tab-pane label="基本信息" name="first">
<div class="dialog-body">
<div
class="content"
v-for="(item, index) in stepList"
:key="index"
v-show="activeIndex == index + 1"
>
<div>
<el-card style="height: 300px; margin: 2px">
<div
v-if="activeIndex == 1"
slot="header"
class="clearfix"
>
<span>当前状态等待执行</span>
</div>
<div
v-else-if="activeIndex == 2"
slot="header"
class="clearfix"
>
<span>当前状态执行中...</span>
</div>
<div
v-else-if="activeIndex == 3"
slot="header"
class="clearfix"
>
<div id="chatarea">
<div
style="display: inline; color: #71d87f"
v-if="form.stateName == 'Succeeded'"
>
执行结果执行成功
</div>
<div
style="display: inline; color: #ff5640"
v-else-if="form.stateName == 'Failed'"
>
执行结果执行失败
</div>
</div>
</div>
<div>
<el-col :span="12">
<el-form-item label="模块名称:">{{
form.name
}}</el-form-item>
<el-form-item label="操作名称:">{{
form.actionName
}}</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="创建人:">{{
form.creator
}}</el-form-item>
<el-form-item label="创建时间:">
<el-date-picker
value-format="yyyy-MM-dd hh:mm:ss"
format="yyyy-MM-dd hh:mm:ss"
v-model="form.createdAt"
type="date"
class="picker"
disabled
></el-date-picker>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item
label="异常信息:"
style="color: #ff5640"
v-if="form.stateName == 'Failed'"
>
<el-button
class="result-info__btn--err"
type="text"
@click="downloadErrData(form.error)"
>下载错误数据</el-button
>
</el-form-item>
<el-form-item
label="生成数据:"
style="color: #ff5640"
v-else-if="
form.stateName == 'Succeeded' &&
form.actionName == '导出'
"
>
<el-button
class="result-info__btn--err"
type="text"
@click="downloadErrData(form.downFileName)"
>下载生成数据</el-button
>
</el-form-item>
</el-col>
</div>
</el-card>
</div>
</div>
</div>
</el-tab-pane>
</el-tabs>
</div>
</div>
</el-col>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="openView = false"> </el-button>
</div>
</el-dialog>
<!--统计功能表单渲染--> <!--统计功能表单渲染-->
<el-dialog <el-dialog
:visible.sync="dialogFormVisible" :visible.sync="dialogFormVisible"
@ -731,11 +591,7 @@ export default {
prop: "createdAt", prop: "createdAt",
width: 150, width: 150,
}); });
tempsTabs.push({
label: "说明",
prop: "remark",
width: 350,
});
tempsTabs.push({ tempsTabs.push({
label: "审批状态", label: "审批状态",
prop: "fileName", prop: "fileName",
@ -745,6 +601,60 @@ export default {
}, },
}, },
methods: { methods: {
dblhandleCurrentChange(row, column, cell, event) {
if (column.label === "说明") {
row.isEditCell = true;
this.$set(row, "isEditCell", true);
this.$nextTick(() => {
// elementautofocus
//this.$refs.inputRef.focus();
this.$refs["inputRef"].focus();
});
}
this.list = this.list.filter((item) => {
return item;
});
},
//
cellBlur(row, column) {
row.isEditCell = false;
this.$set(row, "isEditCell", false);
},
// 线
submitName(row) {
let getguid = row.id;
let getremark = row.remark;
this.$axios
.gets("/api/settleaccount/Job/updateRemark", {
p_id: getguid,
remark: getremark,
})
.then((response) => {
if (response == true) {
this.$notify({
title: "成功",
message: "更新成功",
type: "success",
duration: 2000,
});
this.getList();
}
})
.catch(() => {
this.listLoading = false;
});
},
//
handleCancel(row) {
row.isEditCell = false;
//row.stockQty = row.originalstockQty;
this.$set(row, "isEditCell", false);
// this.$message({
// message: "",
// type: "warning",
// });
this.getList();
},
//cp5 //cp5
getdateValueCp5(val) { getdateValueCp5(val) {
this.cp5startTime = val; this.cp5startTime = val;
@ -1301,6 +1211,10 @@ export default {
.posts("/api/settleaccount/Job/list", this.listQuery) .posts("/api/settleaccount/Job/list", this.listQuery)
.then((response) => { .then((response) => {
this.list = response; this.list = response;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => { setTimeout(() => {
// //
this.listLoading = false; this.listLoading = false;

5
vue/src/views/ux/billManage/sparepartOutOrder/detail.vue

@ -330,6 +330,11 @@ export default {
prop: "materialCode", prop: "materialCode",
width: 150, width: 150,
}); });
tempsTabs.push({
label: "物料代码",
prop: "extend1",
width: 150,
});
tempsTabs.push({ label: "零件描述", prop: "materialDesc", width: 250 }); tempsTabs.push({ label: "零件描述", prop: "materialDesc", width: 250 });
tempsTabs.push({ label: "寄售库存", prop: "stockQty", width: 100 }); tempsTabs.push({ label: "寄售库存", prop: "stockQty", width: 100 });
tempsTabs.push({ label: "结算数量", prop: "qty", width: 100 }); tempsTabs.push({ label: "结算数量", prop: "qty", width: 100 });

100
vue/src/views/ux/billManage/sparepartOutOrder/index.vue

@ -45,6 +45,7 @@
@sort-change="sortChange" @sort-change="sortChange"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@row-click="handleRowClick" @row-click="handleRowClick"
@cell-dblclick="dblhandleCurrentChange"
> >
<el-table-column <el-table-column
label="单据号" label="单据号"
@ -77,6 +78,38 @@
{{ scope.column.label }} {{ scope.column.label }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" width="400" align="center">
<template slot-scope="scope">
<el-input
ref="inputRef"
v-if="scope.row.isEditCell"
v-model.number="scope.row.remark"
class="el-input"
v-focus
@blur="cellBlur(scope.row, scope.column)"
/>
<span v-else>{{ scope.row.remark }}</span>
<el-button
style="margin-left: 5px"
v-if="scope.row.isEditCell"
type="success"
icon="el-icon-check"
size="small"
circle
@click="submitName(scope.row)"
></el-button>
<el-button
v-show="scope.row.isEditCell"
class="cancel-btn"
size="mini"
icon="el-icon-refresh"
type="warning"
@click.native.prevent="handleCancel(scope.row)"
>
cancel
</el-button>
</template>
</el-table-column>
</el-table> </el-table>
<div class="table-footer"> <div class="table-footer">
<!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"--> <!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"-->
@ -87,7 +120,7 @@
:limit.sync="listQuery.MaxResultCount" :limit.sync="listQuery.MaxResultCount"
@pagination="getList" @pagination="getList"
/> />
<!-- 导入Excel组件 --> <!-- 导入Excel组件 -->
<importExcel <importExcel
ref="importexcel" ref="importexcel"
:show="showExcelImport" :show="showExcelImport"
@ -123,7 +156,7 @@ import { formatTimeToTimestamp } from "@/utils/index";
export default { export default {
name: "Sparepartoutorder", name: "Sparepartoutorder",
components: { Pagination, Detail,importExcel }, components: { Pagination, Detail, importExcel },
directives: { permission }, directives: { permission },
data() { data() {
return { return {
@ -204,11 +237,63 @@ export default {
//tempsTabs.push({ label: "", prop: "billNum", width: 150 }); //tempsTabs.push({ label: "", prop: "billNum", width: 150 });
tempsTabs.push({ label: "创建人", prop: "creator", width: 160 }); tempsTabs.push({ label: "创建人", prop: "creator", width: 160 });
tempsTabs.push({ label: "创建时间", prop: "creationTime", width: 160 }); tempsTabs.push({ label: "创建时间", prop: "creationTime", width: 160 });
tempsTabs.push({ label: "备注", prop: "remark", width: 120 }); //tempsTabs.push({ label: "", prop: "remark", width: 120 });
return tempsTabs; return tempsTabs;
}, },
}, },
methods: { methods: {
dblhandleCurrentChange(row, column, cell, event) {
if (column.label === "备注") {
row.isEditCell = true;
this.$set(row, "isEditCell", true);
this.$nextTick(() => {
this.$refs["inputRef"].focus();
});
}
this.list = this.list.filter((item) => {
return item;
});
},
//
cellBlur(row, column) {
row.isEditCell = false;
this.$set(row, "isEditCell", false);
},
// 线
submitName(row) {
let getguid = row.id;
let getremark = row.remark;
this.$axios
.gets("/api/settleaccount/wmsSharePartoutput/UpdateRemark", {
id: getguid,
remark: getremark,
})
.then((response) => {
if (response == true) {
this.$notify({
title: "成功",
message: "更新成功",
type: "success",
duration: 2000,
});
this.getList();
}
})
.catch(() => {
this.listLoading = false;
});
},
//
handleCancel(row) {
row.isEditCell = false;
//row.stockQty = row.originalstockQty;
this.$set(row, "isEditCell", false);
// this.$message({
// message: "",
// type: "warning",
// });
this.getList();
},
handleImportExcel() { handleImportExcel() {
// //
this.showExcelImport = true; this.showExcelImport = true;
@ -277,11 +362,18 @@ export default {
this.listQuery.SkipCount = (this.page - 1) * 15; this.listQuery.SkipCount = (this.page - 1) * 15;
} }
this.$axios this.$axios
.posts("/api/settleaccount/wmsSharePartoutput/WmsSharePartList", this.listQuery) .posts(
"/api/settleaccount/wmsSharePartoutput/WmsSharePartList",
this.listQuery
)
.then((response) => { .then((response) => {
this.list = response.items; this.list = response.items;
//alert(JSON.stringify(response.Items)) //alert(JSON.stringify(response.Items))
this.totalCount = response.totalCount; this.totalCount = response.totalCount;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => { setTimeout(() => {
// //
this.listLoading = false; this.listLoading = false;

100
vue/src/views/ux/billManage/sparepartOutOrder90/index.vue

@ -45,6 +45,7 @@
@sort-change="sortChange" @sort-change="sortChange"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@row-click="handleRowClick" @row-click="handleRowClick"
@cell-dblclick="dblhandleCurrentChange"
> >
<el-table-column <el-table-column
label="单据号" label="单据号"
@ -77,6 +78,38 @@
{{ scope.column.label }} {{ scope.column.label }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" width="400" align="center">
<template slot-scope="scope">
<el-input
ref="inputRef"
v-if="scope.row.isEditCell"
v-model.number="scope.row.remark"
class="el-input"
v-focus
@blur="cellBlur(scope.row, scope.column)"
/>
<span v-else>{{ scope.row.remark }}</span>
<el-button
style="margin-left: 5px"
v-if="scope.row.isEditCell"
type="success"
icon="el-icon-check"
size="small"
circle
@click="submitName(scope.row)"
></el-button>
<el-button
v-show="scope.row.isEditCell"
class="cancel-btn"
size="mini"
icon="el-icon-refresh"
type="warning"
@click.native.prevent="handleCancel(scope.row)"
>
cancel
</el-button>
</template>
</el-table-column>
</el-table> </el-table>
<div class="table-footer"> <div class="table-footer">
<!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"--> <!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"-->
@ -87,7 +120,7 @@
:limit.sync="listQuery.MaxResultCount" :limit.sync="listQuery.MaxResultCount"
@pagination="getList" @pagination="getList"
/> />
<!-- 导入Excel组件 --> <!-- 导入Excel组件 -->
<importExcel <importExcel
ref="importexcel" ref="importexcel"
:show="showExcelImport" :show="showExcelImport"
@ -123,7 +156,7 @@ import { formatTimeToTimestamp } from "@/utils/index";
export default { export default {
name: "Sparepartoutorder90", name: "Sparepartoutorder90",
components: { Pagination, Detail,importExcel }, components: { Pagination, Detail, importExcel },
directives: { permission }, directives: { permission },
data() { data() {
return { return {
@ -204,11 +237,63 @@ export default {
//tempsTabs.push({ label: "", prop: "billNum", width: 150 }); //tempsTabs.push({ label: "", prop: "billNum", width: 150 });
tempsTabs.push({ label: "创建人", prop: "creator", width: 160 }); tempsTabs.push({ label: "创建人", prop: "creator", width: 160 });
tempsTabs.push({ label: "创建时间", prop: "creationTime", width: 160 }); tempsTabs.push({ label: "创建时间", prop: "creationTime", width: 160 });
tempsTabs.push({ label: "备注", prop: "remark", width: 120 }); //tempsTabs.push({ label: "", prop: "remark", width: 120 });
return tempsTabs; return tempsTabs;
}, },
}, },
methods: { methods: {
dblhandleCurrentChange(row, column, cell, event) {
if (column.label === "备注") {
row.isEditCell = true;
this.$set(row, "isEditCell", true);
this.$nextTick(() => {
this.$refs["inputRef"].focus();
});
}
this.list = this.list.filter((item) => {
return item;
});
},
//
cellBlur(row, column) {
row.isEditCell = false;
this.$set(row, "isEditCell", false);
},
// 线
submitName(row) {
let getguid = row.id;
let getremark = row.remark;
this.$axios
.gets("/api/settleaccount/wmsSharePart90output/UpdateRemark", {
id: getguid,
remark: getremark,
})
.then((response) => {
if (response == true) {
this.$notify({
title: "成功",
message: "更新成功",
type: "success",
duration: 2000,
});
this.getList();
}
})
.catch(() => {
this.listLoading = false;
});
},
//
handleCancel(row) {
row.isEditCell = false;
//row.stockQty = row.originalstockQty;
this.$set(row, "isEditCell", false);
// this.$message({
// message: "",
// type: "warning",
// });
this.getList();
},
handleImportExcel() { handleImportExcel() {
// //
this.showExcelImport = true; this.showExcelImport = true;
@ -277,11 +362,18 @@ export default {
this.listQuery.SkipCount = (this.page - 1) * 15; this.listQuery.SkipCount = (this.page - 1) * 15;
} }
this.$axios this.$axios
.posts("/api/settleaccount/wmsSharePart90output/WmsSharePartList", this.listQuery) .posts(
"/api/settleaccount/wmsSharePart90output/WmsSharePartList",
this.listQuery
)
.then((response) => { .then((response) => {
this.list = response.items; this.list = response.items;
//alert(JSON.stringify(response.Items)) //alert(JSON.stringify(response.Items))
this.totalCount = response.totalCount; this.totalCount = response.totalCount;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => { setTimeout(() => {
// //
this.listLoading = false; this.listLoading = false;

97
vue/src/views/ux/billManage/vwOutOrder/index.vue

@ -45,6 +45,7 @@
@sort-change="sortChange" @sort-change="sortChange"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@row-click="handleRowClick" @row-click="handleRowClick"
@cell-dblclick="dblhandleCurrentChange"
> >
<el-table-column <el-table-column
label="单据号" label="单据号"
@ -77,6 +78,39 @@
{{ scope.column.label }} {{ scope.column.label }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" width="400" align="center">
<template slot-scope="scope">
<el-input
ref="inputRef"
v-if="scope.row.isEditCell"
v-model.number="scope.row.remark"
class="el-input"
v-focus
@blur="cellBlur(scope.row, scope.column)"
/>
<span v-else>{{ scope.row.remark }}</span>
<el-button
style="margin-left: 5px"
v-if="scope.row.isEditCell"
type="success"
icon="el-icon-check"
size="small"
circle
@click="submitName(scope.row)"
></el-button>
<el-button
v-show="scope.row.isEditCell"
class="cancel-btn"
size="mini"
icon="el-icon-refresh"
type="warning"
@click.native.prevent="handleCancel(scope.row)"
>
cancel
</el-button>
</template>
</el-table-column>
</el-table> </el-table>
<div class="table-footer"> <div class="table-footer">
<!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"--> <!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"-->
@ -87,7 +121,7 @@
:limit.sync="listQuery.MaxResultCount" :limit.sync="listQuery.MaxResultCount"
@pagination="getList" @pagination="getList"
/> />
<!-- 导入Excel组件 --> <!-- 导入Excel组件 -->
<importExcel <importExcel
ref="importexcel" ref="importexcel"
:show="showExcelImport" :show="showExcelImport"
@ -123,7 +157,7 @@ import { formatTimeToTimestamp } from "@/utils/index";
export default { export default {
name: "sendUnsettledDiffReport", name: "sendUnsettledDiffReport",
components: { Pagination, Detail,importExcel }, components: { Pagination, Detail, importExcel },
directives: { permission }, directives: { permission },
data() { data() {
return { return {
@ -204,11 +238,63 @@ export default {
//tempsTabs.push({ label: "", prop: "billNum", width: 150 }); //tempsTabs.push({ label: "", prop: "billNum", width: 150 });
tempsTabs.push({ label: "创建人", prop: "creator", width: 160 }); tempsTabs.push({ label: "创建人", prop: "creator", width: 160 });
tempsTabs.push({ label: "创建时间", prop: "creationTime", width: 160 }); tempsTabs.push({ label: "创建时间", prop: "creationTime", width: 160 });
tempsTabs.push({ label: "备注", prop: "remark", width: 120 }); // tempsTabs.push({ label: "", prop: "remark", width: 120 });
return tempsTabs; return tempsTabs;
}, },
}, },
methods: { methods: {
dblhandleCurrentChange(row, column, cell, event) {
if (column.label === "备注") {
row.isEditCell = true;
this.$set(row, "isEditCell", true);
this.$nextTick(() => {
this.$refs["inputRef"].focus();
});
}
this.list = this.list.filter((item) => {
return item;
});
},
//
cellBlur(row, column) {
row.isEditCell = false;
this.$set(row, "isEditCell", false);
},
// 线
submitName(row) {
let getguid = row.id;
let getremark = row.remark;
this.$axios
.gets("/api/settleaccount/wmsjitoutput/UpdateRemark", {
id: getguid,
remark: getremark,
})
.then((response) => {
if (response == true) {
this.$notify({
title: "成功",
message: "更新成功",
type: "success",
duration: 2000,
});
this.getList();
}
})
.catch(() => {
this.listLoading = false;
});
},
//
handleCancel(row) {
row.isEditCell = false;
//row.stockQty = row.originalstockQty;
this.$set(row, "isEditCell", false);
// this.$message({
// message: "",
// type: "warning",
// });
this.getList();
},
handleImportExcel() { handleImportExcel() {
// //
this.showExcelImport = true; this.showExcelImport = true;
@ -280,8 +366,13 @@ export default {
.posts("/api/settleaccount/wmsjitoutput/WmsJitList", this.listQuery) .posts("/api/settleaccount/wmsjitoutput/WmsJitList", this.listQuery)
.then((response) => { .then((response) => {
this.list = response.items; this.list = response.items;
//alert(JSON.stringify(response.Items)) //alert(JSON.stringify(response.Items))
this.totalCount = response.totalCount; this.totalCount = response.totalCount;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => { setTimeout(() => {
// //
this.listLoading = false; this.listLoading = false;

101
vue/src/views/ux/vw/dataInput/hq_f_outorder/index.vue

@ -45,6 +45,7 @@
@sort-change="sortChange" @sort-change="sortChange"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@row-click="handleRowClick" @row-click="handleRowClick"
@cell-dblclick="dblhandleCurrentChange"
> >
<el-table-column <el-table-column
label="单据号" label="单据号"
@ -77,6 +78,39 @@
{{ scope.column.label }} {{ scope.column.label }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" width="400" align="center">
<template slot-scope="scope">
<el-input
ref="inputRef"
v-if="scope.row.isEditCell"
v-model.number="scope.row.remark"
class="el-input"
v-focus
@blur="cellBlur(scope.row, scope.column)"
/>
<span v-else>{{ scope.row.remark }}</span>
<el-button
style="margin-left: 5px"
v-if="scope.row.isEditCell"
type="success"
icon="el-icon-check"
size="small"
circle
@click="submitName(scope.row)"
></el-button>
<el-button
v-show="scope.row.isEditCell"
class="cancel-btn"
size="mini"
icon="el-icon-refresh"
type="warning"
@click.native.prevent="handleCancel(scope.row)"
>
cancel
</el-button>
</template>
</el-table-column>
</el-table> </el-table>
<div class="table-footer"> <div class="table-footer">
<!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"--> <!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"-->
@ -87,7 +121,7 @@
:limit.sync="listQuery.MaxResultCount" :limit.sync="listQuery.MaxResultCount"
@pagination="getList" @pagination="getList"
/> />
<!-- 导入Excel组件 --> <!-- 导入Excel组件 -->
<importExcel <importExcel
ref="importexcel" ref="importexcel"
:show="showExcelImport" :show="showExcelImport"
@ -123,7 +157,7 @@ import { formatTimeToTimestamp } from "@/utils/index";
export default { export default {
name: "HQF_OUTORDER", name: "HQF_OUTORDER",
components: { Pagination, Detail,importExcel }, components: { Pagination, Detail, importExcel },
directives: { permission }, directives: { permission },
data() { data() {
return { return {
@ -204,11 +238,63 @@ export default {
//tempsTabs.push({ label: "", prop: "billNum", width: 150 }); //tempsTabs.push({ label: "", prop: "billNum", width: 150 });
tempsTabs.push({ label: "创建人", prop: "creator", width: 160 }); tempsTabs.push({ label: "创建人", prop: "creator", width: 160 });
tempsTabs.push({ label: "创建时间", prop: "creationTime", width: 160 }); tempsTabs.push({ label: "创建时间", prop: "creationTime", width: 160 });
tempsTabs.push({ label: "备注", prop: "remark", width: 120 }); //tempsTabs.push({ label: "", prop: "remark", width: 120 });
return tempsTabs; return tempsTabs;
}, },
}, },
methods: { methods: {
dblhandleCurrentChange(row, column, cell, event) {
if (column.label === "备注") {
row.isEditCell = true;
this.$set(row, "isEditCell", true);
this.$nextTick(() => {
this.$refs["inputRef"].focus();
});
}
this.list = this.list.filter((item) => {
return item;
});
},
//
cellBlur(row, column) {
row.isEditCell = false;
this.$set(row, "isEditCell", false);
},
// 线
submitName(row) {
let getguid = row.id;
let getremark = row.remark;
this.$axios
.gets("/api/settleaccount/WMSHQFKanbanoutput/UpdateRemark", {
id: getguid,
remark: getremark,
})
.then((response) => {
if (response == true) {
this.$notify({
title: "成功",
message: "更新成功",
type: "success",
duration: 2000,
});
this.getList();
}
})
.catch(() => {
this.listLoading = false;
});
},
//
handleCancel(row) {
row.isEditCell = false;
//row.stockQty = row.originalstockQty;
this.$set(row, "isEditCell", false);
// this.$message({
// message: "",
// type: "warning",
// });
this.getList();
},
handleImportExcel() { handleImportExcel() {
// //
this.showExcelImport = true; this.showExcelImport = true;
@ -277,11 +363,18 @@ export default {
this.listQuery.SkipCount = (this.page - 1) * 15; this.listQuery.SkipCount = (this.page - 1) * 15;
} }
this.$axios this.$axios
.posts("/api/settleaccount/WMSHQFKanbanoutput/WmsHQFKanbanList", this.listQuery) .posts(
"/api/settleaccount/WMSHQFKanbanoutput/WmsHQFKanbanList",
this.listQuery
)
.then((response) => { .then((response) => {
this.list = response.items; this.list = response.items;
//alert(JSON.stringify(response.Items)) //alert(JSON.stringify(response.Items))
this.totalCount = response.totalCount; this.totalCount = response.totalCount;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => { setTimeout(() => {
// //
this.listLoading = false; this.listLoading = false;

100
vue/src/views/ux/vw/dataInput/hq_f_outorder_chickout/index.vue

@ -45,6 +45,7 @@
@sort-change="sortChange" @sort-change="sortChange"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@row-click="handleRowClick" @row-click="handleRowClick"
@cell-dblclick="dblhandleCurrentChange"
> >
<el-table-column <el-table-column
label="单据号" label="单据号"
@ -77,6 +78,38 @@
{{ scope.column.label }} {{ scope.column.label }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" width="400" align="center">
<template slot-scope="scope">
<el-input
ref="inputRef"
v-if="scope.row.isEditCell"
v-model.number="scope.row.remark"
class="el-input"
v-focus
@blur="cellBlur(scope.row, scope.column)"
/>
<span v-else>{{ scope.row.remark }}</span>
<el-button
style="margin-left: 5px"
v-if="scope.row.isEditCell"
type="success"
icon="el-icon-check"
size="small"
circle
@click="submitName(scope.row)"
></el-button>
<el-button
v-show="scope.row.isEditCell"
class="cancel-btn"
size="mini"
icon="el-icon-refresh"
type="warning"
@click.native.prevent="handleCancel(scope.row)"
>
cancel
</el-button>
</template>
</el-table-column>
</el-table> </el-table>
<div class="table-footer"> <div class="table-footer">
<!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"--> <!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"-->
@ -87,7 +120,7 @@
:limit.sync="listQuery.MaxResultCount" :limit.sync="listQuery.MaxResultCount"
@pagination="getList" @pagination="getList"
/> />
<!-- 导入Excel组件 --> <!-- 导入Excel组件 -->
<importExcel <importExcel
ref="importexcel" ref="importexcel"
:show="showExcelImport" :show="showExcelImport"
@ -123,7 +156,7 @@ import { formatTimeToTimestamp } from "@/utils/index";
export default { export default {
name: "HQF_OUTORDER", name: "HQF_OUTORDER",
components: { Pagination, Detail,importExcel }, components: { Pagination, Detail, importExcel },
directives: { permission }, directives: { permission },
data() { data() {
return { return {
@ -204,11 +237,63 @@ export default {
//tempsTabs.push({ label: "", prop: "billNum", width: 150 }); //tempsTabs.push({ label: "", prop: "billNum", width: 150 });
tempsTabs.push({ label: "创建人", prop: "creator", width: 160 }); tempsTabs.push({ label: "创建人", prop: "creator", width: 160 });
tempsTabs.push({ label: "创建时间", prop: "creationTime", width: 160 }); tempsTabs.push({ label: "创建时间", prop: "creationTime", width: 160 });
tempsTabs.push({ label: "备注", prop: "remark", width: 120 }); //tempsTabs.push({ label: "", prop: "remark", width: 120 });
return tempsTabs; return tempsTabs;
}, },
}, },
methods: { methods: {
dblhandleCurrentChange(row, column, cell, event) {
if (column.label === "备注") {
row.isEditCell = true;
this.$set(row, "isEditCell", true);
this.$nextTick(() => {
this.$refs["inputRef"].focus();
});
}
this.list = this.list.filter((item) => {
return item;
});
},
//
cellBlur(row, column) {
row.isEditCell = false;
this.$set(row, "isEditCell", false);
},
// 线
submitName(row) {
let getguid = row.id;
let getremark = row.remark;
this.$axios
.gets("/api/settleaccount/wmsHQFSharePartoutput/UpdateRemark", {
id: getguid,
remark: getremark,
})
.then((response) => {
if (response == true) {
this.$notify({
title: "成功",
message: "更新成功",
type: "success",
duration: 2000,
});
this.getList();
}
})
.catch(() => {
this.listLoading = false;
});
},
//
handleCancel(row) {
row.isEditCell = false;
//row.stockQty = row.originalstockQty;
this.$set(row, "isEditCell", false);
// this.$message({
// message: "",
// type: "warning",
// });
this.getList();
},
handleImportExcel() { handleImportExcel() {
// //
this.showExcelImport = true; this.showExcelImport = true;
@ -277,11 +362,18 @@ export default {
this.listQuery.SkipCount = (this.page - 1) * 15; this.listQuery.SkipCount = (this.page - 1) * 15;
} }
this.$axios this.$axios
.posts("/api/settleaccount/wmsHQFSharePartoutput/WmsSharePartList", this.listQuery) .posts(
"/api/settleaccount/wmsHQFSharePartoutput/WmsSharePartList",
this.listQuery
)
.then((response) => { .then((response) => {
this.list = response.items; this.list = response.items;
//alert(JSON.stringify(response.Items)) //alert(JSON.stringify(response.Items))
this.totalCount = response.totalCount; this.totalCount = response.totalCount;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => { setTimeout(() => {
// //
this.listLoading = false; this.listLoading = false;

138
vue/src/views/ux/vw/dataInput/hq_f_report/index.vue

@ -88,6 +88,7 @@
@row-click="handleRowClick" @row-click="handleRowClick"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@filter-change="filterChange" @filter-change="filterChange"
@cell-dblclick="dblhandleCurrentChange"
> >
<el-table-column type="selection" width="44px"></el-table-column> <el-table-column type="selection" width="44px"></el-table-column>
<el-table-column <el-table-column
@ -106,6 +107,39 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="说明" width="400" align="center">
<template slot-scope="scope">
<el-input
ref="inputRef"
v-if="scope.row.isEditCell"
v-model.number="scope.row.remark"
class="el-input"
v-focus
@blur="cellBlur(scope.row, scope.column)"
/>
<span v-else>{{ scope.row.remark }}</span>
<el-button
style="margin-left: 5px"
v-if="scope.row.isEditCell"
type="success"
icon="el-icon-check"
size="small"
circle
@click="submitName(scope.row)"
></el-button>
<el-button
v-show="scope.row.isEditCell"
class="cancel-btn"
size="mini"
icon="el-icon-refresh"
type="warning"
@click.native.prevent="handleCancel(scope.row)"
>
cancel
</el-button>
</template>
</el-table-column>
<el-table-column <el-table-column
prop="stateName" prop="stateName"
label="状态(单击箭头过滤)" label="状态(单击箭头过滤)"
@ -639,11 +673,7 @@ export default {
prop: "createdAt", prop: "createdAt",
width: 150, width: 150,
}); });
tempsTabs.push({
label: "说明",
prop: "remark",
width: 350,
});
tempsTabs.push({ tempsTabs.push({
label: "审批状态", label: "审批状态",
prop: "fileName", prop: "fileName",
@ -653,6 +683,60 @@ export default {
}, },
}, },
methods: { methods: {
dblhandleCurrentChange(row, column, cell, event) {
if (column.label === "说明") {
row.isEditCell = true;
this.$set(row, "isEditCell", true);
this.$nextTick(() => {
// elementautofocus
//this.$refs.inputRef.focus();
this.$refs["inputRef"].focus();
});
}
this.list = this.list.filter((item) => {
return item;
});
},
//
cellBlur(row, column) {
row.isEditCell = false;
this.$set(row, "isEditCell", false);
},
// 线
submitName(row) {
let getguid = row.id;
let getremark = row.remark;
this.$axios
.gets("/api/settleaccount/Job/updateRemark", {
p_id: getguid,
remark: getremark,
})
.then((response) => {
if (response == true) {
this.$notify({
title: "成功",
message: "更新成功",
type: "success",
duration: 2000,
});
this.getList();
}
})
.catch(() => {
this.listLoading = false;
});
},
//
handleCancel(row) {
row.isEditCell = false;
//row.stockQty = row.originalstockQty;
this.$set(row, "isEditCell", false);
// this.$message({
// message: "",
// type: "warning",
// });
this.getList();
},
sortChange(data) { sortChange(data) {
const { prop, order } = data; const { prop, order } = data;
if (!prop || !order) { if (!prop || !order) {
@ -688,7 +772,7 @@ export default {
// //
handleConfirm(row) { handleConfirm(row) {
this.isEdit = false; this.isEdit = false;
this.isTaskSuccess=false; this.isTaskSuccess = false;
if (this.multipleSelection.length == 0) { if (this.multipleSelection.length == 0) {
this.$message({ this.$message({
message: "至少选择一行!", message: "至少选择一行!",
@ -697,22 +781,21 @@ export default {
return; return;
} else { } else {
var getbillNum = ""; var getbillNum = "";
var getTaskState=""; var getTaskState = "";
// //
this.multipleSelection.forEach((element) => { this.multipleSelection.forEach((element) => {
let state = element.fileName; let state = element.fileName;
if (state != "" && state != "已确认") { if (state != "" && state != "已确认") {
this.isEdit = true; this.isEdit = true;
getbillNum += state + ","; getbillNum += state + ",";
} } else if (element.stateName != "Succeeded") {
else if(element.stateName != "Succeeded"){ this.isTaskSuccess = true;
this.isTaskSuccess=true; getTaskState += element.taskId;
getTaskState+=element.taskId;
} }
}); });
} }
// //
if(this.isTaskSuccess == true){ if (this.isTaskSuccess == true) {
this.$message({ this.$message({
message: message:
"有未成功的任务,不能单击确认!:" + "有未成功的任务,不能单击确认!:" +
@ -777,7 +860,7 @@ export default {
// //
handleCreateBills(row) { handleCreateBills(row) {
this.isEdit = false; this.isEdit = false;
this.isTaskSuccess=false; this.isTaskSuccess = false;
if (this.multipleSelection.length == 0) { if (this.multipleSelection.length == 0) {
this.$message({ this.$message({
message: "至少选择一行!", message: "至少选择一行!",
@ -786,22 +869,21 @@ export default {
return; return;
} else { } else {
var getbillNum = ""; var getbillNum = "";
var getTaskState=""; var getTaskState = "";
// //
this.multipleSelection.forEach((element) => { this.multipleSelection.forEach((element) => {
let state = element.fileName; let state = element.fileName;
if (state != "" && state != "已确认") { if (state != "" && state != "已确认") {
this.isEdit = true; this.isEdit = true;
getbillNum += state + ","; getbillNum += state + ",";
} } else if (element.stateName != "Succeeded") {
else if(element.stateName != "Succeeded"){ this.isTaskSuccess = true;
this.isTaskSuccess=true; getTaskState += element.taskId;
getTaskState+=element.taskId;
} }
}); });
} }
// //
if(this.isTaskSuccess == true){ if (this.isTaskSuccess == true) {
this.$message({ this.$message({
message: message:
"有未成功的任务,不能单击确认!:" + "有未成功的任务,不能单击确认!:" +
@ -1030,11 +1112,11 @@ export default {
}, },
getdateValue(val) { getdateValue(val) {
this.startTime = val; this.startTime = val;
this.getbalanceIndexData(); //this.getbalanceIndexData();
}, },
getdateVal(val) { getdateVal(val) {
this.endTime = val; this.endTime = val;
this.getbalanceIndexData(); //this.getbalanceIndexData();
}, },
getCurrentMonthFirst() { getCurrentMonthFirst() {
@ -1153,8 +1235,7 @@ export default {
} }
console.log( console.log(
"F平台核对明细-导出条件:" + "F平台核对明细-导出条件:" + JSON.stringify(this.listExportQuery)
JSON.stringify(this.listExportQuery)
); );
this.$axios this.$axios
.posts( .posts(
@ -1183,9 +1264,12 @@ export default {
}); });
}, },
handleCreate() { handleCreate() {
this.$nextTick(() => { // this.$nextTick(() => {
// this.$refs["formCount"].resetFields();
// });
if (this.$refs["formCount"] !== undefined) {
this.$refs["formCount"].resetFields(); this.$refs["formCount"].resetFields();
}); }
this.formTitle = "报表统计"; this.formTitle = "报表统计";
this.isEdit = false; this.isEdit = false;
this.form = {}; this.form = {};
@ -1298,6 +1382,10 @@ export default {
.posts("/api/settleaccount/Job/list", this.listQuery) .posts("/api/settleaccount/Job/list", this.listQuery)
.then((response) => { .then((response) => {
this.list = response; this.list = response;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => { setTimeout(() => {
// //
this.listLoading = false; this.listLoading = false;

154
vue/src/views/ux/vw/dataInput/hq_f_sparepart/index.vue

@ -88,6 +88,7 @@
@row-click="handleRowClick" @row-click="handleRowClick"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@filter-change="filterChange" @filter-change="filterChange"
@cell-dblclick="dblhandleCurrentChange"
> >
<el-table-column type="selection" width="44px"></el-table-column> <el-table-column type="selection" width="44px"></el-table-column>
<el-table-column <el-table-column
@ -106,6 +107,39 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="说明" width="400" align="center">
<template slot-scope="scope">
<el-input
ref="inputRef"
v-if="scope.row.isEditCell"
v-model.number="scope.row.remark"
class="el-input"
v-focus
@blur="cellBlur(scope.row, scope.column)"
/>
<span v-else>{{ scope.row.remark }}</span>
<el-button
style="margin-left: 5px"
v-if="scope.row.isEditCell"
type="success"
icon="el-icon-check"
size="small"
circle
@click="submitName(scope.row)"
></el-button>
<el-button
v-show="scope.row.isEditCell"
class="cancel-btn"
size="mini"
icon="el-icon-refresh"
type="warning"
@click.native.prevent="handleCancel(scope.row)"
>
cancel
</el-button>
</template>
</el-table-column>
<el-table-column <el-table-column
prop="stateName" prop="stateName"
label="状态(单击箭头过滤)" label="状态(单击箭头过滤)"
@ -639,11 +673,7 @@ export default {
prop: "createdAt", prop: "createdAt",
width: 150, width: 150,
}); });
tempsTabs.push({
label: "说明",
prop: "remark",
width: 350,
});
tempsTabs.push({ tempsTabs.push({
label: "审批状态", label: "审批状态",
prop: "fileName", prop: "fileName",
@ -653,6 +683,60 @@ export default {
}, },
}, },
methods: { methods: {
dblhandleCurrentChange(row, column, cell, event) {
if (column.label === "说明") {
row.isEditCell = true;
this.$set(row, "isEditCell", true);
this.$nextTick(() => {
// elementautofocus
//this.$refs.inputRef.focus();
this.$refs["inputRef"].focus();
});
}
this.list = this.list.filter((item) => {
return item;
});
},
//
cellBlur(row, column) {
row.isEditCell = false;
this.$set(row, "isEditCell", false);
},
// 线
submitName(row) {
let getguid = row.id;
let getremark = row.remark;
this.$axios
.gets("/api/settleaccount/Job/updateRemark", {
p_id: getguid,
remark: getremark,
})
.then((response) => {
if (response == true) {
this.$notify({
title: "成功",
message: "更新成功",
type: "success",
duration: 2000,
});
this.getList();
}
})
.catch(() => {
this.listLoading = false;
});
},
//
handleCancel(row) {
row.isEditCell = false;
//row.stockQty = row.originalstockQty;
this.$set(row, "isEditCell", false);
// this.$message({
// message: "",
// type: "warning",
// });
this.getList();
},
sortChange(data) { sortChange(data) {
const { prop, order } = data; const { prop, order } = data;
if (!prop || !order) { if (!prop || !order) {
@ -688,7 +772,7 @@ export default {
// //
handleConfirm(row) { handleConfirm(row) {
this.isEdit = false; this.isEdit = false;
this.isTaskSuccess=false; this.isTaskSuccess = false;
if (this.multipleSelection.length == 0) { if (this.multipleSelection.length == 0) {
this.$message({ this.$message({
message: "至少选择一行!", message: "至少选择一行!",
@ -697,29 +781,28 @@ export default {
return; return;
} else { } else {
var getbillNum = ""; var getbillNum = "";
var getTaskState=""; var getTaskState = "";
// //
this.multipleSelection.forEach((element) => { this.multipleSelection.forEach((element) => {
let state = element.fileName; let state = element.fileName;
if (state != "" && state != "已确认") { if (state != "" && state != "已确认") {
this.isEdit = true; this.isEdit = true;
getbillNum += state + ","; getbillNum += state + ",";
} } else if (element.stateName != "Succeeded") {
else if(element.stateName != "Succeeded"){ this.isTaskSuccess = true;
this.isTaskSuccess=true; getTaskState += element.taskId;
getTaskState+=element.taskId;
} }
}); });
// //
if(this.isTaskSuccess == true){ if (this.isTaskSuccess == true) {
this.$message({ this.$message({
message: message:
"有未成功的任务,不能单击确认!:" + "有未成功的任务,不能单击确认!:" +
getTaskState.substr(0, getTaskState.length - 1), getTaskState.substr(0, getTaskState.length - 1),
type: "warning", type: "warning",
}); });
return; return;
} }
} }
if (this.isEdit == true) { if (this.isEdit == true) {
this.$message({ this.$message({
@ -777,7 +860,7 @@ export default {
// //
handleCreateBills(row) { handleCreateBills(row) {
this.isEdit = false; this.isEdit = false;
this.isTaskSuccess=false; this.isTaskSuccess = false;
if (this.multipleSelection.length == 0) { if (this.multipleSelection.length == 0) {
this.$message({ this.$message({
message: "至少选择一行!", message: "至少选择一行!",
@ -786,22 +869,21 @@ export default {
return; return;
} else { } else {
var getbillNum = ""; var getbillNum = "";
var getTaskState=""; var getTaskState = "";
// //
this.multipleSelection.forEach((element) => { this.multipleSelection.forEach((element) => {
let state = element.fileName; let state = element.fileName;
if (state != "" && state != "已确认") { if (state != "" && state != "已确认") {
this.isEdit = true; this.isEdit = true;
getbillNum += state + ","; getbillNum += state + ",";
} } else if (element.stateName != "Succeeded") {
else if(element.stateName != "Succeeded"){ this.isTaskSuccess = true;
this.isTaskSuccess=true; getTaskState += element.taskId;
getTaskState+=element.taskId;
} }
}); });
} }
// //
if(this.isTaskSuccess == true){ if (this.isTaskSuccess == true) {
this.$message({ this.$message({
message: message:
"有未成功的任务,不能单击确认!:" + "有未成功的任务,不能单击确认!:" +
@ -1030,11 +1112,11 @@ export default {
}, },
getdateValue(val) { getdateValue(val) {
this.startTime = val; this.startTime = val;
this.getbalanceIndexData(); //this.getbalanceIndexData();
}, },
getdateVal(val) { getdateVal(val) {
this.endTime = val; this.endTime = val;
this.getbalanceIndexData(); //this.getbalanceIndexData();
}, },
getCurrentMonthFirst() { getCurrentMonthFirst() {
@ -1153,8 +1235,7 @@ export default {
} }
console.log( console.log(
"F平台备件明细-导出条件:" + "F平台备件明细-导出条件:" + JSON.stringify(this.listExportQuery)
JSON.stringify(this.listExportQuery)
); );
this.$axios this.$axios
.posts( .posts(
@ -1183,9 +1264,12 @@ export default {
}); });
}, },
handleCreate() { handleCreate() {
this.$nextTick(() => { // this.$nextTick(() => {
// this.$refs["formCount"].resetFields();
// });
if (this.$refs["formCount"] !== undefined) {
this.$refs["formCount"].resetFields(); this.$refs["formCount"].resetFields();
}); }
this.formTitle = "报表统计"; this.formTitle = "报表统计";
this.isEdit = false; this.isEdit = false;
this.form = {}; this.form = {};
@ -1298,6 +1382,10 @@ export default {
.posts("/api/settleaccount/Job/list", this.listQuery) .posts("/api/settleaccount/Job/list", this.listQuery)
.then((response) => { .then((response) => {
this.list = response; this.list = response;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => { setTimeout(() => {
// //
this.listLoading = false; this.listLoading = false;

101
vue/src/views/ux/vw/dataInput/hq_h_checkout/index.vue

@ -45,6 +45,7 @@
@sort-change="sortChange" @sort-change="sortChange"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@row-click="handleRowClick" @row-click="handleRowClick"
@cell-dblclick="dblhandleCurrentChange"
> >
<el-table-column <el-table-column
label="单据号" label="单据号"
@ -77,6 +78,39 @@
{{ scope.column.label }} {{ scope.column.label }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" width="400" align="center">
<template slot-scope="scope">
<el-input
ref="inputRef"
v-if="scope.row.isEditCell"
v-model.number="scope.row.remark"
class="el-input"
v-focus
@blur="cellBlur(scope.row, scope.column)"
/>
<span v-else>{{ scope.row.remark }}</span>
<el-button
style="margin-left: 5px"
v-if="scope.row.isEditCell"
type="success"
icon="el-icon-check"
size="small"
circle
@click="submitName(scope.row)"
></el-button>
<el-button
v-show="scope.row.isEditCell"
class="cancel-btn"
size="mini"
icon="el-icon-refresh"
type="warning"
@click.native.prevent="handleCancel(scope.row)"
>
cancel
</el-button>
</template>
</el-table-column>
</el-table> </el-table>
<div class="table-footer"> <div class="table-footer">
<!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"--> <!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"-->
@ -87,7 +121,7 @@
:limit.sync="listQuery.MaxResultCount" :limit.sync="listQuery.MaxResultCount"
@pagination="getList" @pagination="getList"
/> />
<!-- 导入Excel组件 --> <!-- 导入Excel组件 -->
<importExcel <importExcel
ref="importexcel" ref="importexcel"
:show="showExcelImport" :show="showExcelImport"
@ -123,7 +157,7 @@ import { formatTimeToTimestamp } from "@/utils/index";
export default { export default {
name: "HQH_CHECKOUT", name: "HQH_CHECKOUT",
components: { Pagination, Detail,importExcel }, components: { Pagination, Detail, importExcel },
directives: { permission }, directives: { permission },
data() { data() {
return { return {
@ -204,11 +238,63 @@ export default {
//tempsTabs.push({ label: "", prop: "billNum", width: 150 }); //tempsTabs.push({ label: "", prop: "billNum", width: 150 });
tempsTabs.push({ label: "创建人", prop: "creator", width: 160 }); tempsTabs.push({ label: "创建人", prop: "creator", width: 160 });
tempsTabs.push({ label: "创建时间", prop: "creationTime", width: 160 }); tempsTabs.push({ label: "创建时间", prop: "creationTime", width: 160 });
tempsTabs.push({ label: "备注", prop: "remark", width: 120 }); //tempsTabs.push({ label: "", prop: "remark", width: 120 });
return tempsTabs; return tempsTabs;
}, },
}, },
methods: { methods: {
dblhandleCurrentChange(row, column, cell, event) {
if (column.label === "备注") {
row.isEditCell = true;
this.$set(row, "isEditCell", true);
this.$nextTick(() => {
this.$refs["inputRef"].focus();
});
}
this.list = this.list.filter((item) => {
return item;
});
},
//
cellBlur(row, column) {
row.isEditCell = false;
this.$set(row, "isEditCell", false);
},
// 线
submitName(row) {
let getguid = row.id;
let getremark = row.remark;
this.$axios
.gets("/api/settleaccount/WmsHQHSharePartoutput/UpdateRemark", {
id: getguid,
remark: getremark,
})
.then((response) => {
if (response == true) {
this.$notify({
title: "成功",
message: "更新成功",
type: "success",
duration: 2000,
});
this.getList();
}
})
.catch(() => {
this.listLoading = false;
});
},
//
handleCancel(row) {
row.isEditCell = false;
//row.stockQty = row.originalstockQty;
this.$set(row, "isEditCell", false);
// this.$message({
// message: "",
// type: "warning",
// });
this.getList();
},
handleImportExcel() { handleImportExcel() {
// //
this.showExcelImport = true; this.showExcelImport = true;
@ -277,11 +363,18 @@ export default {
this.listQuery.SkipCount = (this.page - 1) * 15; this.listQuery.SkipCount = (this.page - 1) * 15;
} }
this.$axios this.$axios
.posts("/api/settleaccount/WmsHQHSharePartoutput/WmsSharePartList", this.listQuery) .posts(
"/api/settleaccount/WmsHQHSharePartoutput/WmsSharePartList",
this.listQuery
)
.then((response) => { .then((response) => {
this.list = response.items; this.list = response.items;
//alert(JSON.stringify(response.Items)) //alert(JSON.stringify(response.Items))
this.totalCount = response.totalCount; this.totalCount = response.totalCount;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => { setTimeout(() => {
// //
this.listLoading = false; this.listLoading = false;

101
vue/src/views/ux/vw/dataInput/hq_h_outorder/index.vue

@ -45,6 +45,7 @@
@sort-change="sortChange" @sort-change="sortChange"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@row-click="handleRowClick" @row-click="handleRowClick"
@cell-dblclick="dblhandleCurrentChange"
> >
<el-table-column <el-table-column
label="单据号" label="单据号"
@ -77,6 +78,39 @@
{{ scope.column.label }} {{ scope.column.label }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" width="400" align="center">
<template slot-scope="scope">
<el-input
ref="inputRef"
v-if="scope.row.isEditCell"
v-model.number="scope.row.remark"
class="el-input"
v-focus
@blur="cellBlur(scope.row, scope.column)"
/>
<span v-else>{{ scope.row.remark }}</span>
<el-button
style="margin-left: 5px"
v-if="scope.row.isEditCell"
type="success"
icon="el-icon-check"
size="small"
circle
@click="submitName(scope.row)"
></el-button>
<el-button
v-show="scope.row.isEditCell"
class="cancel-btn"
size="mini"
icon="el-icon-refresh"
type="warning"
@click.native.prevent="handleCancel(scope.row)"
>
cancel
</el-button>
</template>
</el-table-column>
</el-table> </el-table>
<div class="table-footer"> <div class="table-footer">
<!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"--> <!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"-->
@ -87,7 +121,7 @@
:limit.sync="listQuery.MaxResultCount" :limit.sync="listQuery.MaxResultCount"
@pagination="getList" @pagination="getList"
/> />
<!-- 导入Excel组件 --> <!-- 导入Excel组件 -->
<importExcel <importExcel
ref="importexcel" ref="importexcel"
:show="showExcelImport" :show="showExcelImport"
@ -123,7 +157,7 @@ import { formatTimeToTimestamp } from "@/utils/index";
export default { export default {
name: "HQH_OUTORDER", name: "HQH_OUTORDER",
components: { Pagination, Detail,importExcel }, components: { Pagination, Detail, importExcel },
directives: { permission }, directives: { permission },
data() { data() {
return { return {
@ -204,11 +238,63 @@ export default {
//tempsTabs.push({ label: "", prop: "billNum", width: 150 }); //tempsTabs.push({ label: "", prop: "billNum", width: 150 });
tempsTabs.push({ label: "创建人", prop: "creator", width: 160 }); tempsTabs.push({ label: "创建人", prop: "creator", width: 160 });
tempsTabs.push({ label: "创建时间", prop: "creationTime", width: 160 }); tempsTabs.push({ label: "创建时间", prop: "creationTime", width: 160 });
tempsTabs.push({ label: "备注", prop: "remark", width: 120 }); //tempsTabs.push({ label: "", prop: "remark", width: 120 });
return tempsTabs; return tempsTabs;
}, },
}, },
methods: { methods: {
dblhandleCurrentChange(row, column, cell, event) {
if (column.label === "备注") {
row.isEditCell = true;
this.$set(row, "isEditCell", true);
this.$nextTick(() => {
this.$refs["inputRef"].focus();
});
}
this.list = this.list.filter((item) => {
return item;
});
},
//
cellBlur(row, column) {
row.isEditCell = false;
this.$set(row, "isEditCell", false);
},
// 线
submitName(row) {
let getguid = row.id;
let getremark = row.remark;
this.$axios
.gets("/api/settleaccount/WmsHQHKanbanoutput/UpdateRemark", {
id: getguid,
remark: getremark,
})
.then((response) => {
if (response == true) {
this.$notify({
title: "成功",
message: "更新成功",
type: "success",
duration: 2000,
});
this.getList();
}
})
.catch(() => {
this.listLoading = false;
});
},
//
handleCancel(row) {
row.isEditCell = false;
//row.stockQty = row.originalstockQty;
this.$set(row, "isEditCell", false);
// this.$message({
// message: "",
// type: "warning",
// });
this.getList();
},
handleImportExcel() { handleImportExcel() {
// //
this.showExcelImport = true; this.showExcelImport = true;
@ -277,11 +363,18 @@ export default {
this.listQuery.SkipCount = (this.page - 1) * 15; this.listQuery.SkipCount = (this.page - 1) * 15;
} }
this.$axios this.$axios
.posts("/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanList", this.listQuery) .posts(
"/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanList",
this.listQuery
)
.then((response) => { .then((response) => {
this.list = response.items; this.list = response.items;
//alert(JSON.stringify(response.Items)) //alert(JSON.stringify(response.Items))
this.totalCount = response.totalCount; this.totalCount = response.totalCount;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => { setTimeout(() => {
// //
this.listLoading = false; this.listLoading = false;

144
vue/src/views/ux/vw/dataInput/hq_h_report/index.vue

@ -88,6 +88,7 @@
@row-click="handleRowClick" @row-click="handleRowClick"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@filter-change="filterChange" @filter-change="filterChange"
@cell-dblclick="dblhandleCurrentChange"
> >
<el-table-column type="selection" width="44px"></el-table-column> <el-table-column type="selection" width="44px"></el-table-column>
<el-table-column <el-table-column
@ -106,6 +107,39 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="说明" width="400" align="center">
<template slot-scope="scope">
<el-input
ref="inputRef"
v-if="scope.row.isEditCell"
v-model.number="scope.row.remark"
class="el-input"
v-focus
@blur="cellBlur(scope.row, scope.column)"
/>
<span v-else>{{ scope.row.remark }}</span>
<el-button
style="margin-left: 5px"
v-if="scope.row.isEditCell"
type="success"
icon="el-icon-check"
size="small"
circle
@click="submitName(scope.row)"
></el-button>
<el-button
v-show="scope.row.isEditCell"
class="cancel-btn"
size="mini"
icon="el-icon-refresh"
type="warning"
@click.native.prevent="handleCancel(scope.row)"
>
cancel
</el-button>
</template>
</el-table-column>
<el-table-column <el-table-column
prop="stateName" prop="stateName"
label="状态(单击箭头过滤)" label="状态(单击箭头过滤)"
@ -557,7 +591,7 @@ export default {
taskId: "", taskId: "",
name: "", name: "",
type: "", type: "",
stateName:"" stateName: "",
}, },
listBillQuery: { listBillQuery: {
version: "", version: "",
@ -570,7 +604,7 @@ export default {
multipleSelection: [], multipleSelection: [],
tableHeight: document.documentElement.clientHeight - 260, tableHeight: document.documentElement.clientHeight - 260,
isEdit: false, isEdit: false,
isTaskSuccess:false, isTaskSuccess: false,
menuCateMap: [ menuCateMap: [
{ label: "导出", value: "导出", cssName: "warning" }, { label: "导出", value: "导出", cssName: "warning" },
{ label: "消息", value: "消息", cssName: "info" }, { label: "消息", value: "消息", cssName: "info" },
@ -641,11 +675,7 @@ export default {
prop: "createdAt", prop: "createdAt",
width: 150, width: 150,
}); });
tempsTabs.push({
label: "说明",
prop: "remark",
width: 350,
});
tempsTabs.push({ tempsTabs.push({
label: "审批状态", label: "审批状态",
prop: "fileName", prop: "fileName",
@ -655,6 +685,60 @@ export default {
}, },
}, },
methods: { methods: {
dblhandleCurrentChange(row, column, cell, event) {
if (column.label === "说明") {
row.isEditCell = true;
this.$set(row, "isEditCell", true);
this.$nextTick(() => {
// elementautofocus
//this.$refs.inputRef.focus();
this.$refs["inputRef"].focus();
});
}
this.list = this.list.filter((item) => {
return item;
});
},
//
cellBlur(row, column) {
row.isEditCell = false;
this.$set(row, "isEditCell", false);
},
// 线
submitName(row) {
let getguid = row.id;
let getremark = row.remark;
this.$axios
.gets("/api/settleaccount/Job/updateRemark", {
p_id: getguid,
remark: getremark,
})
.then((response) => {
if (response == true) {
this.$notify({
title: "成功",
message: "更新成功",
type: "success",
duration: 2000,
});
this.getList();
}
})
.catch(() => {
this.listLoading = false;
});
},
//
handleCancel(row) {
row.isEditCell = false;
//row.stockQty = row.originalstockQty;
this.$set(row, "isEditCell", false);
// this.$message({
// message: "",
// type: "warning",
// });
this.getList();
},
sortChange(data) { sortChange(data) {
const { prop, order } = data; const { prop, order } = data;
if (!prop || !order) { if (!prop || !order) {
@ -690,7 +774,7 @@ export default {
// //
handleConfirm(row) { handleConfirm(row) {
this.isEdit = false; this.isEdit = false;
this.isTaskSuccess=false; this.isTaskSuccess = false;
if (this.multipleSelection.length == 0) { if (this.multipleSelection.length == 0) {
this.$message({ this.$message({
message: "至少选择一行!", message: "至少选择一行!",
@ -699,22 +783,21 @@ export default {
return; return;
} else { } else {
var getbillNum = ""; var getbillNum = "";
var getTaskState=""; var getTaskState = "";
// //
this.multipleSelection.forEach((element) => { this.multipleSelection.forEach((element) => {
let state = element.fileName; let state = element.fileName;
if (state != "" && state != "已确认") { if (state != "" && state != "已确认") {
this.isEdit = true; this.isEdit = true;
getbillNum += state + ","; getbillNum += state + ",";
} } else if (element.stateName != "Succeeded") {
else if(element.stateName != "Succeeded"){ this.isTaskSuccess = true;
this.isTaskSuccess=true; getTaskState += element.taskId;
getTaskState+=element.taskId;
} }
}); });
} }
// //
if(this.isTaskSuccess == true){ if (this.isTaskSuccess == true) {
this.$message({ this.$message({
message: message:
"有未成功的任务,不能单击确认!:" + "有未成功的任务,不能单击确认!:" +
@ -732,7 +815,6 @@ export default {
}); });
return; return;
} else { } else {
var params = []; var params = [];
let myalert = ""; //使 let myalert = ""; //使
if (row) { if (row) {
@ -775,13 +857,12 @@ export default {
message: "已取消操作", message: "已取消操作",
}); });
}); });
} }
}, },
// //
handleCreateBills(row) { handleCreateBills(row) {
this.isEdit = false; this.isEdit = false;
this.isTaskSuccess=false; this.isTaskSuccess = false;
if (this.multipleSelection.length == 0) { if (this.multipleSelection.length == 0) {
this.$message({ this.$message({
message: "至少选择一行!", message: "至少选择一行!",
@ -790,21 +871,20 @@ export default {
return; return;
} else { } else {
var getbillNum = ""; var getbillNum = "";
var getTaskState=""; var getTaskState = "";
// //
this.multipleSelection.forEach((element) => { this.multipleSelection.forEach((element) => {
let state = element.fileName; let state = element.fileName;
if (state != "" && state != "已确认") { if (state != "" && state != "已确认") {
this.isEdit = true; this.isEdit = true;
getbillNum += state + ","; getbillNum += state + ",";
} } else if (element.stateName != "Succeeded") {
else if(element.stateName != "Succeeded"){ this.isTaskSuccess = true;
this.isTaskSuccess=true; getTaskState += element.taskId;
getTaskState+=element.taskId;
} }
}); });
} }
if(this.isTaskSuccess == true){ if (this.isTaskSuccess == true) {
this.$message({ this.$message({
message: message:
"有未成功的任务,不能单击确认!:" + "有未成功的任务,不能单击确认!:" +
@ -1033,11 +1113,11 @@ export default {
}, },
getdateValue(val) { getdateValue(val) {
this.startTime = val; this.startTime = val;
this.getbalanceIndexData(); //this.getbalanceIndexData();
}, },
getdateVal(val) { getdateVal(val) {
this.endTime = val; this.endTime = val;
this.getbalanceIndexData(); //this.getbalanceIndexData();
}, },
getCurrentMonthFirst() { getCurrentMonthFirst() {
@ -1156,8 +1236,7 @@ export default {
} }
console.log( console.log(
"H平台核对明细-导出条件:" + "H平台核对明细-导出条件:" + JSON.stringify(this.listExportQuery)
JSON.stringify(this.listExportQuery)
); );
this.$axios this.$axios
.posts( .posts(
@ -1186,9 +1265,12 @@ export default {
}); });
}, },
handleCreate() { handleCreate() {
this.$nextTick(() => { // this.$nextTick(() => {
// this.$refs["formCount"].resetFields();
// });
if (this.$refs["formCount"] !== undefined) {
this.$refs["formCount"].resetFields(); this.$refs["formCount"].resetFields();
}); }
this.formTitle = "报表统计"; this.formTitle = "报表统计";
this.isEdit = false; this.isEdit = false;
this.form = {}; this.form = {};
@ -1301,6 +1383,10 @@ export default {
.posts("/api/settleaccount/Job/list", this.listQuery) .posts("/api/settleaccount/Job/list", this.listQuery)
.then((response) => { .then((response) => {
this.list = response; this.list = response;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => { setTimeout(() => {
// //
this.listLoading = false; this.listLoading = false;

142
vue/src/views/ux/vw/dataInput/hq_h_sparepart/index.vue

@ -88,6 +88,7 @@
@row-click="handleRowClick" @row-click="handleRowClick"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@filter-change="filterChange" @filter-change="filterChange"
@cell-dblclick="dblhandleCurrentChange"
> >
<el-table-column type="selection" width="44px"></el-table-column> <el-table-column type="selection" width="44px"></el-table-column>
<el-table-column <el-table-column
@ -106,6 +107,39 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="说明" width="400" align="center">
<template slot-scope="scope">
<el-input
ref="inputRef"
v-if="scope.row.isEditCell"
v-model.number="scope.row.remark"
class="el-input"
v-focus
@blur="cellBlur(scope.row, scope.column)"
/>
<span v-else>{{ scope.row.remark }}</span>
<el-button
style="margin-left: 5px"
v-if="scope.row.isEditCell"
type="success"
icon="el-icon-check"
size="small"
circle
@click="submitName(scope.row)"
></el-button>
<el-button
v-show="scope.row.isEditCell"
class="cancel-btn"
size="mini"
icon="el-icon-refresh"
type="warning"
@click.native.prevent="handleCancel(scope.row)"
>
cancel
</el-button>
</template>
</el-table-column>
<el-table-column <el-table-column
prop="stateName" prop="stateName"
label="状态(单击箭头过滤)" label="状态(单击箭头过滤)"
@ -639,11 +673,7 @@ export default {
prop: "createdAt", prop: "createdAt",
width: 150, width: 150,
}); });
tempsTabs.push({
label: "说明",
prop: "remark",
width: 350,
});
tempsTabs.push({ tempsTabs.push({
label: "审批状态", label: "审批状态",
prop: "fileName", prop: "fileName",
@ -653,6 +683,60 @@ export default {
}, },
}, },
methods: { methods: {
dblhandleCurrentChange(row, column, cell, event) {
if (column.label === "说明") {
row.isEditCell = true;
this.$set(row, "isEditCell", true);
this.$nextTick(() => {
// elementautofocus
//this.$refs.inputRef.focus();
this.$refs["inputRef"].focus();
});
}
this.list = this.list.filter((item) => {
return item;
});
},
//
cellBlur(row, column) {
row.isEditCell = false;
this.$set(row, "isEditCell", false);
},
// 线
submitName(row) {
let getguid = row.id;
let getremark = row.remark;
this.$axios
.gets("/api/settleaccount/Job/updateRemark", {
p_id: getguid,
remark: getremark,
})
.then((response) => {
if (response == true) {
this.$notify({
title: "成功",
message: "更新成功",
type: "success",
duration: 2000,
});
this.getList();
}
})
.catch(() => {
this.listLoading = false;
});
},
//
handleCancel(row) {
row.isEditCell = false;
//row.stockQty = row.originalstockQty;
this.$set(row, "isEditCell", false);
// this.$message({
// message: "",
// type: "warning",
// });
this.getList();
},
sortChange(data) { sortChange(data) {
const { prop, order } = data; const { prop, order } = data;
if (!prop || !order) { if (!prop || !order) {
@ -688,7 +772,7 @@ export default {
// //
handleConfirm(row) { handleConfirm(row) {
this.isEdit = false; this.isEdit = false;
this.isTaskSuccess=false; this.isTaskSuccess = false;
if (this.multipleSelection.length == 0) { if (this.multipleSelection.length == 0) {
this.$message({ this.$message({
message: "至少选择一行!", message: "至少选择一行!",
@ -697,22 +781,21 @@ export default {
return; return;
} else { } else {
var getbillNum = ""; var getbillNum = "";
var getTaskState=""; var getTaskState = "";
// //
this.multipleSelection.forEach((element) => { this.multipleSelection.forEach((element) => {
let state = element.fileName; let state = element.fileName;
if (state != "" && state != "已确认") { if (state != "" && state != "已确认") {
this.isEdit = true; this.isEdit = true;
getbillNum += state + ","; getbillNum += state + ",";
} } else if (element.stateName != "Succeeded") {
else if(element.stateName != "Succeeded"){ this.isTaskSuccess = true;
this.isTaskSuccess=true; getTaskState += element.taskId;
getTaskState+=element.taskId;
} }
}); });
} }
// //
if(this.isTaskSuccess == true){ if (this.isTaskSuccess == true) {
this.$message({ this.$message({
message: message:
"有未成功的任务,不能单击确认!:" + "有未成功的任务,不能单击确认!:" +
@ -777,7 +860,7 @@ export default {
// //
handleCreateBills(row) { handleCreateBills(row) {
this.isEdit = false; this.isEdit = false;
this.isTaskSuccess=false; this.isTaskSuccess = false;
if (this.multipleSelection.length == 0) { if (this.multipleSelection.length == 0) {
this.$message({ this.$message({
message: "至少选择一行!", message: "至少选择一行!",
@ -786,21 +869,20 @@ export default {
return; return;
} else { } else {
var getbillNum = ""; var getbillNum = "";
var getTaskState=""; var getTaskState = "";
// //
this.multipleSelection.forEach((element) => { this.multipleSelection.forEach((element) => {
let state = element.fileName; let state = element.fileName;
if (state != "" && state != "已确认") { if (state != "" && state != "已确认") {
this.isEdit = true; this.isEdit = true;
getbillNum += state + ","; getbillNum += state + ",";
} } else if (element.stateName != "Succeeded") {
else if(element.stateName != "Succeeded"){ this.isTaskSuccess = true;
this.isTaskSuccess=true; getTaskState += element.taskId;
getTaskState+=element.taskId;
} }
}); });
} }
if(this.isTaskSuccess == true){ if (this.isTaskSuccess == true) {
this.$message({ this.$message({
message: message:
"有未成功的任务,不能单击确认!:" + "有未成功的任务,不能单击确认!:" +
@ -834,7 +916,9 @@ export default {
} }
this.listBillQuery.guids = params; this.listBillQuery.guids = params;
this.listBillQuery.version = this.JobversionValue; this.listBillQuery.version = this.JobversionValue;
console.log("H平台备件出库单条件:" + JSON.stringify(this.listBillQuery)); console.log(
"H平台备件出库单条件:" + JSON.stringify(this.listBillQuery)
);
this.$confirm("是否确认出库" + myalert + "?", "提示", { this.$confirm("是否确认出库" + myalert + "?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
@ -1029,11 +1113,11 @@ export default {
}, },
getdateValue(val) { getdateValue(val) {
this.startTime = val; this.startTime = val;
this.getbalanceIndexData(); //this.getbalanceIndexData();
}, },
getdateVal(val) { getdateVal(val) {
this.endTime = val; this.endTime = val;
this.getbalanceIndexData(); //this.getbalanceIndexData();
}, },
getCurrentMonthFirst() { getCurrentMonthFirst() {
@ -1152,8 +1236,7 @@ export default {
} }
console.log( console.log(
"H平台备件明细-导出条件:" + "H平台备件明细-导出条件:" + JSON.stringify(this.listExportQuery)
JSON.stringify(this.listExportQuery)
); );
this.$axios this.$axios
.posts( .posts(
@ -1182,9 +1265,12 @@ export default {
}); });
}, },
handleCreate() { handleCreate() {
this.$nextTick(() => { // this.$nextTick(() => {
// this.$refs["formCount"].resetFields();
// });
if (this.$refs["formCount"] !== undefined) {
this.$refs["formCount"].resetFields(); this.$refs["formCount"].resetFields();
}); }
this.formTitle = "报表统计"; this.formTitle = "报表统计";
this.isEdit = false; this.isEdit = false;
this.form = {}; this.form = {};
@ -1297,6 +1383,10 @@ export default {
.posts("/api/settleaccount/Job/list", this.listQuery) .posts("/api/settleaccount/Job/list", this.listQuery)
.then((response) => { .then((response) => {
this.list = response; this.list = response;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => { setTimeout(() => {
// //
this.listLoading = false; this.listLoading = false;

34
vue/src/views/ux/vw/dataInput/hq_kb_output/detail.vue

@ -41,7 +41,7 @@
@click="handleDelete()" @click="handleDelete()"
>删除出库单(支持批量) >删除出库单(支持批量)
</el-button> </el-button>
<el-input <!-- <el-input
v-model="searchContent" v-model="searchContent"
clearable clearable
size="small" size="small"
@ -56,7 +56,7 @@
icon="el-icon-search" icon="el-icon-search"
@click="handleFilter" @click="handleFilter"
>搜索 >搜索
</el-button> </el-button> -->
<!--表格头组件filter查询--> <!--表格头组件filter查询-->
<c-r-m-table-head <c-r-m-table-head
ref="crmTableHead" ref="crmTableHead"
@ -111,7 +111,7 @@
<template slot-scope="list"> <template slot-scope="list">
<el-input <el-input
size="small" size="small"
v-model="list.row.outPutQty" v-model="list.row.outputQty"
@change="handleEdit(list.$index, list.row)" @change="handleEdit(list.$index, list.row)"
></el-input> ></el-input>
</template> </template>
@ -186,7 +186,6 @@ import CRMTableHead from "../../../components/CRMTableHead";
import { downloadFile } from "@/utils/crmindex.js"; import { downloadFile } from "@/utils/crmindex.js";
import JobSelectVerson from "@/components/CreateCom/Job-Select.vue"; import JobSelectVerson from "@/components/CreateCom/Job-Select.vue";
export default { export default {
name: "sendUnsettledDiffReport", name: "sendUnsettledDiffReport",
components: { Pagination, CRMTableHead, CRMTableHead, JobSelectVerson }, components: { Pagination, CRMTableHead, CRMTableHead, JobSelectVerson },
@ -320,18 +319,18 @@ export default {
width: 110, width: 110,
}); });
tempsTabs.push({ label: "SAP编码", prop: "materialCode", width: 150 }); tempsTabs.push({ label: "SAP编码", prop: "sapMaterialCode", width: 150 });
tempsTabs.push({ // tempsTabs.push({
label: "物料组", // label: "",
prop: "materialGroup", // prop: "materialGroup",
width: 220, // width: 220,
}); // });
tempsTabs.push({ tempsTabs.push({
label: "物料组描述", label: "物料组描述",
prop: "materialDesc", prop: "materialDesc",
width: 220, width: 220,
}); });
tempsTabs.push({ label: "寄售库存", prop: "stockQty", width: 100 }); tempsTabs.push({ label: "寄售库存", prop: "sockQty", width: 100 });
tempsTabs.push({ label: "结算数量", prop: "qty", width: 100 }); tempsTabs.push({ label: "结算数量", prop: "qty", width: 100 });
tempsTabs.push({ label: "状态", prop: "state", width: 100 }); tempsTabs.push({ label: "状态", prop: "state", width: 100 });
return tempsTabs; return tempsTabs;
@ -360,14 +359,14 @@ export default {
this.multipleSelection.forEach((element) => { this.multipleSelection.forEach((element) => {
let outPutQty = element.outputQty; let outPutQty = element.outputQty;
}); });
if (row.materialCode === null) { if (row.sapMaterialCode === null) {
this.$message({ this.$message({
message: "SAP编码为空,不允许出库!", message: "SAP编码为空,不允许出库!",
type: "warning", type: "warning",
}); });
return; return;
} }
if (row.outPutQty > row.stockQty) { if (row.outputQty > row.stockQty) {
this.$message({ this.$message({
message: "出库数量大于寄售库存,不允许出库!", message: "出库数量大于寄售库存,不允许出库!",
type: "warning", type: "warning",
@ -376,13 +375,12 @@ export default {
if (row.branchId != "") { if (row.branchId != "") {
this.listOutPutQuery.branchId = row.id; this.listOutPutQuery.branchId = row.id;
} }
if (row.outPutQty != "") { if (row.outputQty != "") {
this.listOutPutQuery.outPutQty = row.outPutQty; this.listOutPutQuery.outputQty = row.outputQty;
} }
console.log( console.log(
"一汽轿车-数量按钮:" + JSON.stringify(this.listOutPutQuery) "一汽轿车-数量按钮:" + JSON.stringify(this.listOutPutQuery)
); );
//"taskId": "3fa85f64-5717-4562-b3fc-2c963f66afa6","outPutQty": 0
this.$axios this.$axios
.posts( .posts(
"/api/settleaccount/WmsHQKBOutput/WmsSharePartOutPutModify", "/api/settleaccount/WmsHQKBOutput/WmsSharePartOutPutModify",
@ -469,7 +467,6 @@ export default {
// //
handleCreateBills(row) { handleCreateBills(row) {
this.dialogFormVisible = true; this.dialogFormVisible = true;
this.formLoading = true;
this.listOutPutQuery.guids = []; this.listOutPutQuery.guids = [];
this.listOutPutQuery.version = this.customerInfo.version; this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId; this.listOutPutQuery.billNum = this.customerInfo.parentId;
@ -487,7 +484,8 @@ export default {
} }
//this.listOutPutQuery.accountDate = this.accountDatelist; //this.listOutPutQuery.accountDate = this.accountDatelist;
console.log( console.log(
"红旗数据调整-全部确认出库条件:" + JSON.stringify(this.listOutPutQuery) "红旗数据调整-全部确认出库条件:" +
JSON.stringify(this.listOutPutQuery)
); );
this.$axios this.$axios

96
vue/src/views/ux/vw/dataInput/hq_kb_output/index.vue

@ -45,6 +45,7 @@
@sort-change="sortChange" @sort-change="sortChange"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@row-click="handleRowClick" @row-click="handleRowClick"
@cell-dblclick="dblhandleCurrentChange"
> >
<el-table-column <el-table-column
label="单据号" label="单据号"
@ -77,6 +78,39 @@
{{ scope.column.label }} {{ scope.column.label }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" width="400" align="center">
<template slot-scope="scope">
<el-input
ref="inputRef"
v-if="scope.row.isEditCell"
v-model.number="scope.row.remark"
class="el-input"
v-focus
@blur="cellBlur(scope.row, scope.column)"
/>
<span v-else>{{ scope.row.remark }}</span>
<el-button
style="margin-left: 5px"
v-if="scope.row.isEditCell"
type="success"
icon="el-icon-check"
size="small"
circle
@click="submitName(scope.row)"
></el-button>
<el-button
v-show="scope.row.isEditCell"
class="cancel-btn"
size="mini"
icon="el-icon-refresh"
type="warning"
@click.native.prevent="handleCancel(scope.row)"
>
cancel
</el-button>
</template>
</el-table-column>
</el-table> </el-table>
<div class="table-footer"> <div class="table-footer">
<!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"--> <!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"-->
@ -87,7 +121,7 @@
:limit.sync="listQuery.MaxResultCount" :limit.sync="listQuery.MaxResultCount"
@pagination="getList" @pagination="getList"
/> />
<!-- 导入Excel组件 --> <!-- 导入Excel组件 -->
<importExcel <importExcel
ref="importexcel" ref="importexcel"
:show="showExcelImport" :show="showExcelImport"
@ -123,7 +157,7 @@ import { formatTimeToTimestamp } from "@/utils/index";
export default { export default {
name: "WmsHQKBOutput", name: "WmsHQKBOutput",
components: { Pagination, Detail,importExcel }, components: { Pagination, Detail, importExcel },
directives: { permission }, directives: { permission },
data() { data() {
return { return {
@ -204,11 +238,63 @@ export default {
//tempsTabs.push({ label: "", prop: "billNum", width: 150 }); //tempsTabs.push({ label: "", prop: "billNum", width: 150 });
tempsTabs.push({ label: "创建人", prop: "creator", width: 160 }); tempsTabs.push({ label: "创建人", prop: "creator", width: 160 });
tempsTabs.push({ label: "创建时间", prop: "creationTime", width: 160 }); tempsTabs.push({ label: "创建时间", prop: "creationTime", width: 160 });
tempsTabs.push({ label: "备注", prop: "remark", width: 120 }); //tempsTabs.push({ label: "", prop: "remark", width: 120 });
return tempsTabs; return tempsTabs;
}, },
}, },
methods: { methods: {
dblhandleCurrentChange(row, column, cell, event) {
if (column.label === "备注") {
row.isEditCell = true;
this.$set(row, "isEditCell", true);
this.$nextTick(() => {
this.$refs["inputRef"].focus();
});
}
this.list = this.list.filter((item) => {
return item;
});
},
//
cellBlur(row, column) {
row.isEditCell = false;
this.$set(row, "isEditCell", false);
},
// 线
submitName(row) {
let getguid = row.id;
let getremark = row.remark;
this.$axios
.gets("/api/settleaccount/WmsHQKBOutput/UpdateRemark", {
id: getguid,
remark: getremark,
})
.then((response) => {
if (response == true) {
this.$notify({
title: "成功",
message: "更新成功",
type: "success",
duration: 2000,
});
this.getList();
}
})
.catch(() => {
this.listLoading = false;
});
},
//
handleCancel(row) {
row.isEditCell = false;
//row.stockQty = row.originalstockQty;
this.$set(row, "isEditCell", false);
// this.$message({
// message: "",
// type: "warning",
// });
this.getList();
},
handleImportExcel() { handleImportExcel() {
// //
this.showExcelImport = true; this.showExcelImport = true;
@ -282,6 +368,10 @@ export default {
this.list = response.items; this.list = response.items;
//alert(JSON.stringify(response.Items)) //alert(JSON.stringify(response.Items))
this.totalCount = response.totalCount; this.totalCount = response.totalCount;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => { setTimeout(() => {
// //
this.listLoading = false; this.listLoading = false;

101
vue/src/views/ux/vw/dataInput/hq_m_checkout/index.vue

@ -45,6 +45,7 @@
@sort-change="sortChange" @sort-change="sortChange"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@row-click="handleRowClick" @row-click="handleRowClick"
@cell-dblclick="dblhandleCurrentChange"
> >
<el-table-column <el-table-column
label="单据号" label="单据号"
@ -77,6 +78,39 @@
{{ scope.column.label }} {{ scope.column.label }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" width="400" align="center">
<template slot-scope="scope">
<el-input
ref="inputRef"
v-if="scope.row.isEditCell"
v-model.number="scope.row.remark"
class="el-input"
v-focus
@blur="cellBlur(scope.row, scope.column)"
/>
<span v-else>{{ scope.row.remark }}</span>
<el-button
style="margin-left: 5px"
v-if="scope.row.isEditCell"
type="success"
icon="el-icon-check"
size="small"
circle
@click="submitName(scope.row)"
></el-button>
<el-button
v-show="scope.row.isEditCell"
class="cancel-btn"
size="mini"
icon="el-icon-refresh"
type="warning"
@click.native.prevent="handleCancel(scope.row)"
>
cancel
</el-button>
</template>
</el-table-column>
</el-table> </el-table>
<div class="table-footer"> <div class="table-footer">
<!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"--> <!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"-->
@ -87,7 +121,7 @@
:limit.sync="listQuery.MaxResultCount" :limit.sync="listQuery.MaxResultCount"
@pagination="getList" @pagination="getList"
/> />
<!-- 导入Excel组件 --> <!-- 导入Excel组件 -->
<importExcel <importExcel
ref="importexcel" ref="importexcel"
:show="showExcelImport" :show="showExcelImport"
@ -123,7 +157,7 @@ import { formatTimeToTimestamp } from "@/utils/index";
export default { export default {
name: "HQM_CHECKOUT", name: "HQM_CHECKOUT",
components: { Pagination, Detail,importExcel }, components: { Pagination, Detail, importExcel },
directives: { permission }, directives: { permission },
data() { data() {
return { return {
@ -204,11 +238,63 @@ export default {
//tempsTabs.push({ label: "", prop: "billNum", width: 150 }); //tempsTabs.push({ label: "", prop: "billNum", width: 150 });
tempsTabs.push({ label: "创建人", prop: "creator", width: 160 }); tempsTabs.push({ label: "创建人", prop: "creator", width: 160 });
tempsTabs.push({ label: "创建时间", prop: "creationTime", width: 160 }); tempsTabs.push({ label: "创建时间", prop: "creationTime", width: 160 });
tempsTabs.push({ label: "备注", prop: "remark", width: 120 }); //tempsTabs.push({ label: "", prop: "remark", width: 120 });
return tempsTabs; return tempsTabs;
}, },
}, },
methods: { methods: {
dblhandleCurrentChange(row, column, cell, event) {
if (column.label === "备注") {
row.isEditCell = true;
this.$set(row, "isEditCell", true);
this.$nextTick(() => {
this.$refs["inputRef"].focus();
});
}
this.list = this.list.filter((item) => {
return item;
});
},
//
cellBlur(row, column) {
row.isEditCell = false;
this.$set(row, "isEditCell", false);
},
// 线
submitName(row) {
let getguid = row.id;
let getremark = row.remark;
this.$axios
.gets("/api/settleaccount/WmsHQMSharePartoutput/UpdateRemark", {
id: getguid,
remark: getremark,
})
.then((response) => {
if (response == true) {
this.$notify({
title: "成功",
message: "更新成功",
type: "success",
duration: 2000,
});
this.getList();
}
})
.catch(() => {
this.listLoading = false;
});
},
//
handleCancel(row) {
row.isEditCell = false;
//row.stockQty = row.originalstockQty;
this.$set(row, "isEditCell", false);
// this.$message({
// message: "",
// type: "warning",
// });
this.getList();
},
handleImportExcel() { handleImportExcel() {
// //
this.showExcelImport = true; this.showExcelImport = true;
@ -277,11 +363,18 @@ export default {
this.listQuery.SkipCount = (this.page - 1) * 15; this.listQuery.SkipCount = (this.page - 1) * 15;
} }
this.$axios this.$axios
.posts("/api/settleaccount/WmsHQMSharePartoutput/WmsSharePartList", this.listQuery) .posts(
"/api/settleaccount/WmsHQMSharePartoutput/WmsSharePartList",
this.listQuery
)
.then((response) => { .then((response) => {
this.list = response.items; this.list = response.items;
//alert(JSON.stringify(response.Items)) //alert(JSON.stringify(response.Items))
this.totalCount = response.totalCount; this.totalCount = response.totalCount;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => { setTimeout(() => {
// //
this.listLoading = false; this.listLoading = false;

100
vue/src/views/ux/vw/dataInput/hq_m_outorder/index.vue

@ -45,6 +45,7 @@
@sort-change="sortChange" @sort-change="sortChange"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@row-click="handleRowClick" @row-click="handleRowClick"
@cell-dblclick="dblhandleCurrentChange"
> >
<el-table-column <el-table-column
label="单据号" label="单据号"
@ -77,6 +78,38 @@
{{ scope.column.label }} {{ scope.column.label }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" width="400" align="center">
<template slot-scope="scope">
<el-input
ref="inputRef"
v-if="scope.row.isEditCell"
v-model.number="scope.row.remark"
class="el-input"
v-focus
@blur="cellBlur(scope.row, scope.column)"
/>
<span v-else>{{ scope.row.remark }}</span>
<el-button
style="margin-left: 5px"
v-if="scope.row.isEditCell"
type="success"
icon="el-icon-check"
size="small"
circle
@click="submitName(scope.row)"
></el-button>
<el-button
v-show="scope.row.isEditCell"
class="cancel-btn"
size="mini"
icon="el-icon-refresh"
type="warning"
@click.native.prevent="handleCancel(scope.row)"
>
cancel
</el-button>
</template>
</el-table-column>
</el-table> </el-table>
<div class="table-footer"> <div class="table-footer">
<!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"--> <!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"-->
@ -87,7 +120,7 @@
:limit.sync="listQuery.MaxResultCount" :limit.sync="listQuery.MaxResultCount"
@pagination="getList" @pagination="getList"
/> />
<!-- 导入Excel组件 --> <!-- 导入Excel组件 -->
<importExcel <importExcel
ref="importexcel" ref="importexcel"
:show="showExcelImport" :show="showExcelImport"
@ -123,7 +156,7 @@ import { formatTimeToTimestamp } from "@/utils/index";
export default { export default {
name: "HQM_OUTORDER", name: "HQM_OUTORDER",
components: { Pagination, Detail,importExcel }, components: { Pagination, Detail, importExcel },
directives: { permission }, directives: { permission },
data() { data() {
return { return {
@ -204,11 +237,63 @@ export default {
//tempsTabs.push({ label: "", prop: "billNum", width: 150 }); //tempsTabs.push({ label: "", prop: "billNum", width: 150 });
tempsTabs.push({ label: "创建人", prop: "creator", width: 160 }); tempsTabs.push({ label: "创建人", prop: "creator", width: 160 });
tempsTabs.push({ label: "创建时间", prop: "creationTime", width: 160 }); tempsTabs.push({ label: "创建时间", prop: "creationTime", width: 160 });
tempsTabs.push({ label: "备注", prop: "remark", width: 120 }); //tempsTabs.push({ label: "", prop: "remark", width: 120 });
return tempsTabs; return tempsTabs;
}, },
}, },
methods: { methods: {
dblhandleCurrentChange(row, column, cell, event) {
if (column.label === "备注") {
row.isEditCell = true;
this.$set(row, "isEditCell", true);
this.$nextTick(() => {
this.$refs["inputRef"].focus();
});
}
this.list = this.list.filter((item) => {
return item;
});
},
//
cellBlur(row, column) {
row.isEditCell = false;
this.$set(row, "isEditCell", false);
},
// 线
submitName(row) {
let getguid = row.id;
let getremark = row.remark;
this.$axios
.gets("/api/settleaccount/WMSHQMKanbanoutput/UpdateRemark", {
id: getguid,
remark: getremark,
})
.then((response) => {
if (response == true) {
this.$notify({
title: "成功",
message: "更新成功",
type: "success",
duration: 2000,
});
this.getList();
}
})
.catch(() => {
this.listLoading = false;
});
},
//
handleCancel(row) {
row.isEditCell = false;
//row.stockQty = row.originalstockQty;
this.$set(row, "isEditCell", false);
// this.$message({
// message: "",
// type: "warning",
// });
this.getList();
},
handleImportExcel() { handleImportExcel() {
// //
this.showExcelImport = true; this.showExcelImport = true;
@ -277,11 +362,18 @@ export default {
this.listQuery.SkipCount = (this.page - 1) * 15; this.listQuery.SkipCount = (this.page - 1) * 15;
} }
this.$axios this.$axios
.posts("/api/settleaccount/WMSHQMKanbanoutput/WmsHQMKanbanList", this.listQuery) .posts(
"/api/settleaccount/WMSHQMKanbanoutput/WmsHQMKanbanList",
this.listQuery
)
.then((response) => { .then((response) => {
this.list = response.items; this.list = response.items;
//alert(JSON.stringify(response.Items)) //alert(JSON.stringify(response.Items))
this.totalCount = response.totalCount; this.totalCount = response.totalCount;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => { setTimeout(() => {
// //
this.listLoading = false; this.listLoading = false;

137
vue/src/views/ux/vw/dataInput/hq_m_report/index.vue

@ -88,6 +88,7 @@
@row-click="handleRowClick" @row-click="handleRowClick"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@filter-change="filterChange" @filter-change="filterChange"
@cell-dblclick="dblhandleCurrentChange"
> >
<el-table-column type="selection" width="44px"></el-table-column> <el-table-column type="selection" width="44px"></el-table-column>
<el-table-column <el-table-column
@ -106,6 +107,39 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="说明" width="400" align="center">
<template slot-scope="scope">
<el-input
ref="inputRef"
v-if="scope.row.isEditCell"
v-model.number="scope.row.remark"
class="el-input"
v-focus
@blur="cellBlur(scope.row, scope.column)"
/>
<span v-else>{{ scope.row.remark }}</span>
<el-button
style="margin-left: 5px"
v-if="scope.row.isEditCell"
type="success"
icon="el-icon-check"
size="small"
circle
@click="submitName(scope.row)"
></el-button>
<el-button
v-show="scope.row.isEditCell"
class="cancel-btn"
size="mini"
icon="el-icon-refresh"
type="warning"
@click.native.prevent="handleCancel(scope.row)"
>
cancel
</el-button>
</template>
</el-table-column>
<el-table-column <el-table-column
prop="stateName" prop="stateName"
label="状态(单击箭头过滤)" label="状态(单击箭头过滤)"
@ -557,7 +591,7 @@ export default {
taskId: "", taskId: "",
name: "", name: "",
type: "", type: "",
stateName:"" stateName: "",
}, },
listBillQuery: { listBillQuery: {
version: "", version: "",
@ -641,11 +675,7 @@ export default {
prop: "createdAt", prop: "createdAt",
width: 150, width: 150,
}); });
tempsTabs.push({
label: "说明",
prop: "remark",
width: 350,
});
tempsTabs.push({ tempsTabs.push({
label: "审批状态", label: "审批状态",
prop: "fileName", prop: "fileName",
@ -655,6 +685,60 @@ export default {
}, },
}, },
methods: { methods: {
dblhandleCurrentChange(row, column, cell, event) {
if (column.label === "说明") {
row.isEditCell = true;
this.$set(row, "isEditCell", true);
this.$nextTick(() => {
// elementautofocus
//this.$refs.inputRef.focus();
this.$refs["inputRef"].focus();
});
}
this.list = this.list.filter((item) => {
return item;
});
},
//
cellBlur(row, column) {
row.isEditCell = false;
this.$set(row, "isEditCell", false);
},
// 线
submitName(row) {
let getguid = row.id;
let getremark = row.remark;
this.$axios
.gets("/api/settleaccount/Job/updateRemark", {
p_id: getguid,
remark: getremark,
})
.then((response) => {
if (response == true) {
this.$notify({
title: "成功",
message: "更新成功",
type: "success",
duration: 2000,
});
this.getList();
}
})
.catch(() => {
this.listLoading = false;
});
},
//
handleCancel(row) {
row.isEditCell = false;
//row.stockQty = row.originalstockQty;
this.$set(row, "isEditCell", false);
// this.$message({
// message: "",
// type: "warning",
// });
this.getList();
},
sortChange(data) { sortChange(data) {
const { prop, order } = data; const { prop, order } = data;
if (!prop || !order) { if (!prop || !order) {
@ -690,7 +774,7 @@ export default {
// //
handleConfirm(row) { handleConfirm(row) {
this.isEdit = false; this.isEdit = false;
this.isTaskSuccess=false; this.isTaskSuccess = false;
if (this.multipleSelection.length == 0) { if (this.multipleSelection.length == 0) {
this.$message({ this.$message({
message: "至少选择一行!", message: "至少选择一行!",
@ -699,22 +783,21 @@ export default {
return; return;
} else { } else {
var getbillNum = ""; var getbillNum = "";
var getTaskState=""; var getTaskState = "";
// //
this.multipleSelection.forEach((element) => { this.multipleSelection.forEach((element) => {
let state = element.fileName; let state = element.fileName;
if (state != "" && state != "已确认") { if (state != "" && state != "已确认") {
this.isEdit = true; this.isEdit = true;
getbillNum += state + ","; getbillNum += state + ",";
} } else if (element.stateName != "Succeeded") {
else if(element.stateName != "Succeeded"){ this.isTaskSuccess = true;
this.isTaskSuccess=true; getTaskState += element.taskId;
getTaskState+=element.taskId;
} }
}); });
} }
// //
if(this.isTaskSuccess == true){ if (this.isTaskSuccess == true) {
this.$message({ this.$message({
message: message:
"有未成功的任务,不能单击确认!:" + "有未成功的任务,不能单击确认!:" +
@ -732,7 +815,6 @@ export default {
}); });
return; return;
} else { } else {
var params = []; var params = [];
let myalert = ""; //使 let myalert = ""; //使
if (row) { if (row) {
@ -775,13 +857,12 @@ export default {
message: "已取消操作", message: "已取消操作",
}); });
}); });
} }
}, },
// //
handleCreateBills(row) { handleCreateBills(row) {
this.isEdit = false; this.isEdit = false;
this.isTaskSuccess=false; this.isTaskSuccess = false;
if (this.multipleSelection.length == 0) { if (this.multipleSelection.length == 0) {
this.$message({ this.$message({
message: "至少选择一行!", message: "至少选择一行!",
@ -790,22 +871,21 @@ export default {
return; return;
} else { } else {
var getbillNum = ""; var getbillNum = "";
var getTaskState=""; var getTaskState = "";
// //
this.multipleSelection.forEach((element) => { this.multipleSelection.forEach((element) => {
let state = element.fileName; let state = element.fileName;
if (state != "" && state != "已确认") { if (state != "" && state != "已确认") {
this.isEdit = true; this.isEdit = true;
getbillNum += state + ","; getbillNum += state + ",";
} } else if (element.stateName != "Succeeded") {
else if(element.stateName != "Succeeded"){ this.isTaskSuccess = true;
this.isTaskSuccess=true; getTaskState += element.taskId;
getTaskState+=element.taskId;
} }
}); });
} }
// //
if(this.isTaskSuccess == true){ if (this.isTaskSuccess == true) {
this.$message({ this.$message({
message: message:
"有未成功的任务,不能单击确认!:" + "有未成功的任务,不能单击确认!:" +
@ -1034,11 +1114,11 @@ export default {
}, },
getdateValue(val) { getdateValue(val) {
this.startTime = val; this.startTime = val;
this.getbalanceIndexData(); //this.getbalanceIndexData();
}, },
getdateVal(val) { getdateVal(val) {
this.endTime = val; this.endTime = val;
this.getbalanceIndexData(); //this.getbalanceIndexData();
}, },
getCurrentMonthFirst() { getCurrentMonthFirst() {
@ -1157,8 +1237,7 @@ export default {
} }
console.log( console.log(
"M平台核对明细-导出条件:" + "M平台核对明细-导出条件:" + JSON.stringify(this.listExportQuery)
JSON.stringify(this.listExportQuery)
); );
this.$axios this.$axios
.posts( .posts(
@ -1302,6 +1381,10 @@ export default {
.posts("/api/settleaccount/Job/list", this.listQuery) .posts("/api/settleaccount/Job/list", this.listQuery)
.then((response) => { .then((response) => {
this.list = response; this.list = response;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => { setTimeout(() => {
// //
this.listLoading = false; this.listLoading = false;

138
vue/src/views/ux/vw/dataInput/hq_m_sparepart/index.vue

@ -88,6 +88,7 @@
@row-click="handleRowClick" @row-click="handleRowClick"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@filter-change="filterChange" @filter-change="filterChange"
@cell-dblclick="dblhandleCurrentChange"
> >
<el-table-column type="selection" width="44px"></el-table-column> <el-table-column type="selection" width="44px"></el-table-column>
<el-table-column <el-table-column
@ -106,6 +107,39 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="说明" width="400" align="center">
<template slot-scope="scope">
<el-input
ref="inputRef"
v-if="scope.row.isEditCell"
v-model.number="scope.row.remark"
class="el-input"
v-focus
@blur="cellBlur(scope.row, scope.column)"
/>
<span v-else>{{ scope.row.remark }}</span>
<el-button
style="margin-left: 5px"
v-if="scope.row.isEditCell"
type="success"
icon="el-icon-check"
size="small"
circle
@click="submitName(scope.row)"
></el-button>
<el-button
v-show="scope.row.isEditCell"
class="cancel-btn"
size="mini"
icon="el-icon-refresh"
type="warning"
@click.native.prevent="handleCancel(scope.row)"
>
cancel
</el-button>
</template>
</el-table-column>
<el-table-column <el-table-column
prop="stateName" prop="stateName"
label="状态(单击箭头过滤)" label="状态(单击箭头过滤)"
@ -639,11 +673,7 @@ export default {
prop: "createdAt", prop: "createdAt",
width: 150, width: 150,
}); });
tempsTabs.push({
label: "说明",
prop: "remark",
width: 350,
});
tempsTabs.push({ tempsTabs.push({
label: "审批状态", label: "审批状态",
prop: "fileName", prop: "fileName",
@ -653,6 +683,60 @@ export default {
}, },
}, },
methods: { methods: {
dblhandleCurrentChange(row, column, cell, event) {
if (column.label === "说明") {
row.isEditCell = true;
this.$set(row, "isEditCell", true);
this.$nextTick(() => {
// elementautofocus
//this.$refs.inputRef.focus();
this.$refs["inputRef"].focus();
});
}
this.list = this.list.filter((item) => {
return item;
});
},
//
cellBlur(row, column) {
row.isEditCell = false;
this.$set(row, "isEditCell", false);
},
// 线
submitName(row) {
let getguid = row.id;
let getremark = row.remark;
this.$axios
.gets("/api/settleaccount/Job/updateRemark", {
p_id: getguid,
remark: getremark,
})
.then((response) => {
if (response == true) {
this.$notify({
title: "成功",
message: "更新成功",
type: "success",
duration: 2000,
});
this.getList();
}
})
.catch(() => {
this.listLoading = false;
});
},
//
handleCancel(row) {
row.isEditCell = false;
//row.stockQty = row.originalstockQty;
this.$set(row, "isEditCell", false);
// this.$message({
// message: "",
// type: "warning",
// });
this.getList();
},
sortChange(data) { sortChange(data) {
const { prop, order } = data; const { prop, order } = data;
if (!prop || !order) { if (!prop || !order) {
@ -688,7 +772,7 @@ export default {
// //
handleConfirm(row) { handleConfirm(row) {
this.isEdit = false; this.isEdit = false;
this.isTaskSuccess=false; this.isTaskSuccess = false;
if (this.multipleSelection.length == 0) { if (this.multipleSelection.length == 0) {
this.$message({ this.$message({
message: "至少选择一行!", message: "至少选择一行!",
@ -697,22 +781,21 @@ export default {
return; return;
} else { } else {
var getbillNum = ""; var getbillNum = "";
var getTaskState=""; var getTaskState = "";
// //
this.multipleSelection.forEach((element) => { this.multipleSelection.forEach((element) => {
let state = element.fileName; let state = element.fileName;
if (state != "" && state != "已确认") { if (state != "" && state != "已确认") {
this.isEdit = true; this.isEdit = true;
getbillNum += state + ","; getbillNum += state + ",";
} } else if (element.stateName != "Succeeded") {
else if(element.stateName != "Succeeded"){ this.isTaskSuccess = true;
this.isTaskSuccess=true; getTaskState += element.taskId;
getTaskState+=element.taskId;
} }
}); });
} }
// //
if(this.isTaskSuccess == true){ if (this.isTaskSuccess == true) {
this.$message({ this.$message({
message: message:
"有未成功的任务,不能单击确认!:" + "有未成功的任务,不能单击确认!:" +
@ -777,7 +860,7 @@ export default {
// //
handleCreateBills(row) { handleCreateBills(row) {
this.isEdit = false; this.isEdit = false;
this.isTaskSuccess=false; this.isTaskSuccess = false;
if (this.multipleSelection.length == 0) { if (this.multipleSelection.length == 0) {
this.$message({ this.$message({
message: "至少选择一行!", message: "至少选择一行!",
@ -786,22 +869,21 @@ export default {
return; return;
} else { } else {
var getbillNum = ""; var getbillNum = "";
var getTaskState=""; var getTaskState = "";
// //
this.multipleSelection.forEach((element) => { this.multipleSelection.forEach((element) => {
let state = element.fileName; let state = element.fileName;
if (state != "" && state != "已确认") { if (state != "" && state != "已确认") {
this.isEdit = true; this.isEdit = true;
getbillNum += state + ","; getbillNum += state + ",";
} } else if (element.stateName != "Succeeded") {
else if(element.stateName != "Succeeded"){ this.isTaskSuccess = true;
this.isTaskSuccess=true; getTaskState += element.taskId;
getTaskState+=element.taskId;
} }
}); });
} }
// //
if(this.isTaskSuccess == true){ if (this.isTaskSuccess == true) {
this.$message({ this.$message({
message: message:
"有未成功的任务,不能单击确认!:" + "有未成功的任务,不能单击确认!:" +
@ -1030,11 +1112,11 @@ export default {
}, },
getdateValue(val) { getdateValue(val) {
this.startTime = val; this.startTime = val;
this.getbalanceIndexData(); //this.getbalanceIndexData();
}, },
getdateVal(val) { getdateVal(val) {
this.endTime = val; this.endTime = val;
this.getbalanceIndexData(); //this.getbalanceIndexData();
}, },
getCurrentMonthFirst() { getCurrentMonthFirst() {
@ -1153,8 +1235,7 @@ export default {
} }
console.log( console.log(
"M平台备件明细-导出条件:" + "M平台备件明细-导出条件:" + JSON.stringify(this.listExportQuery)
JSON.stringify(this.listExportQuery)
); );
this.$axios this.$axios
.posts( .posts(
@ -1183,9 +1264,12 @@ export default {
}); });
}, },
handleCreate() { handleCreate() {
this.$nextTick(() => { // this.$nextTick(() => {
// this.$refs["formCount"].resetFields();
// });
if (this.$refs["formCount"] !== undefined) {
this.$refs["formCount"].resetFields(); this.$refs["formCount"].resetFields();
}); }
this.formTitle = "报表统计"; this.formTitle = "报表统计";
this.isEdit = false; this.isEdit = false;
this.form = {}; this.form = {};
@ -1298,6 +1382,10 @@ export default {
.posts("/api/settleaccount/Job/list", this.listQuery) .posts("/api/settleaccount/Job/list", this.listQuery)
.then((response) => { .then((response) => {
this.list = response; this.list = response;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => { setTimeout(() => {
// //
this.listLoading = false; this.listLoading = false;

101
vue/src/views/ux/vw/dataInput/hq_y_checkout/index.vue

@ -45,6 +45,7 @@
@sort-change="sortChange" @sort-change="sortChange"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@row-click="handleRowClick" @row-click="handleRowClick"
@cell-dblclick="dblhandleCurrentChange"
> >
<el-table-column <el-table-column
label="单据号" label="单据号"
@ -77,6 +78,39 @@
{{ scope.column.label }} {{ scope.column.label }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" width="400" align="center">
<template slot-scope="scope">
<el-input
ref="inputRef"
v-if="scope.row.isEditCell"
v-model.number="scope.row.remark"
class="el-input"
v-focus
@blur="cellBlur(scope.row, scope.column)"
/>
<span v-else>{{ scope.row.remark }}</span>
<el-button
style="margin-left: 5px"
v-if="scope.row.isEditCell"
type="success"
icon="el-icon-check"
size="small"
circle
@click="submitName(scope.row)"
></el-button>
<el-button
v-show="scope.row.isEditCell"
class="cancel-btn"
size="mini"
icon="el-icon-refresh"
type="warning"
@click.native.prevent="handleCancel(scope.row)"
>
cancel
</el-button>
</template>
</el-table-column>
</el-table> </el-table>
<div class="table-footer"> <div class="table-footer">
<!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"--> <!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"-->
@ -87,7 +121,7 @@
:limit.sync="listQuery.MaxResultCount" :limit.sync="listQuery.MaxResultCount"
@pagination="getList" @pagination="getList"
/> />
<!-- 导入Excel组件 --> <!-- 导入Excel组件 -->
<importExcel <importExcel
ref="importexcel" ref="importexcel"
:show="showExcelImport" :show="showExcelImport"
@ -123,7 +157,7 @@ import { formatTimeToTimestamp } from "@/utils/index";
export default { export default {
name: "HQY_CHECKOUT", name: "HQY_CHECKOUT",
components: { Pagination, Detail,importExcel }, components: { Pagination, Detail, importExcel },
directives: { permission }, directives: { permission },
data() { data() {
return { return {
@ -204,11 +238,63 @@ export default {
//tempsTabs.push({ label: "", prop: "billNum", width: 150 }); //tempsTabs.push({ label: "", prop: "billNum", width: 150 });
tempsTabs.push({ label: "创建人", prop: "creator", width: 160 }); tempsTabs.push({ label: "创建人", prop: "creator", width: 160 });
tempsTabs.push({ label: "创建时间", prop: "creationTime", width: 160 }); tempsTabs.push({ label: "创建时间", prop: "creationTime", width: 160 });
tempsTabs.push({ label: "备注", prop: "remark", width: 120 }); //tempsTabs.push({ label: "", prop: "remark", width: 120 });
return tempsTabs; return tempsTabs;
}, },
}, },
methods: { methods: {
dblhandleCurrentChange(row, column, cell, event) {
if (column.label === "备注") {
row.isEditCell = true;
this.$set(row, "isEditCell", true);
this.$nextTick(() => {
this.$refs["inputRef"].focus();
});
}
this.list = this.list.filter((item) => {
return item;
});
},
//
cellBlur(row, column) {
row.isEditCell = false;
this.$set(row, "isEditCell", false);
},
// 线
submitName(row) {
let getguid = row.id;
let getremark = row.remark;
this.$axios
.gets("/api/settleaccount/WmsHQHSharePartoutput/UpdateRemark", {
id: getguid,
remark: getremark,
})
.then((response) => {
if (response == true) {
this.$notify({
title: "成功",
message: "更新成功",
type: "success",
duration: 2000,
});
this.getList();
}
})
.catch(() => {
this.listLoading = false;
});
},
//
handleCancel(row) {
row.isEditCell = false;
//row.stockQty = row.originalstockQty;
this.$set(row, "isEditCell", false);
// this.$message({
// message: "",
// type: "warning",
// });
this.getList();
},
handleImportExcel() { handleImportExcel() {
// //
this.showExcelImport = true; this.showExcelImport = true;
@ -277,11 +363,18 @@ export default {
this.listQuery.SkipCount = (this.page - 1) * 15; this.listQuery.SkipCount = (this.page - 1) * 15;
} }
this.$axios this.$axios
.posts("/api/settleaccount/WmsHQHSharePartoutput/WmsSharePartList", this.listQuery) .posts(
"/api/settleaccount/WmsHQHSharePartoutput/WmsSharePartList",
this.listQuery
)
.then((response) => { .then((response) => {
this.list = response.items; this.list = response.items;
//alert(JSON.stringify(response.Items)) //alert(JSON.stringify(response.Items))
this.totalCount = response.totalCount; this.totalCount = response.totalCount;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => { setTimeout(() => {
// //
this.listLoading = false; this.listLoading = false;

101
vue/src/views/ux/vw/dataInput/hq_y_outorder/index.vue

@ -45,6 +45,7 @@
@sort-change="sortChange" @sort-change="sortChange"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@row-click="handleRowClick" @row-click="handleRowClick"
@cell-dblclick="dblhandleCurrentChange"
> >
<el-table-column <el-table-column
label="单据号" label="单据号"
@ -77,6 +78,39 @@
{{ scope.column.label }} {{ scope.column.label }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" width="400" align="center">
<template slot-scope="scope">
<el-input
ref="inputRef"
v-if="scope.row.isEditCell"
v-model.number="scope.row.remark"
class="el-input"
v-focus
@blur="cellBlur(scope.row, scope.column)"
/>
<span v-else>{{ scope.row.remark }}</span>
<el-button
style="margin-left: 5px"
v-if="scope.row.isEditCell"
type="success"
icon="el-icon-check"
size="small"
circle
@click="submitName(scope.row)"
></el-button>
<el-button
v-show="scope.row.isEditCell"
class="cancel-btn"
size="mini"
icon="el-icon-refresh"
type="warning"
@click.native.prevent="handleCancel(scope.row)"
>
cancel
</el-button>
</template>
</el-table-column>
</el-table> </el-table>
<div class="table-footer"> <div class="table-footer">
<!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"--> <!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"-->
@ -87,7 +121,7 @@
:limit.sync="listQuery.MaxResultCount" :limit.sync="listQuery.MaxResultCount"
@pagination="getList" @pagination="getList"
/> />
<!-- 导入Excel组件 --> <!-- 导入Excel组件 -->
<importExcel <importExcel
ref="importexcel" ref="importexcel"
:show="showExcelImport" :show="showExcelImport"
@ -123,7 +157,7 @@ import { formatTimeToTimestamp } from "@/utils/index";
export default { export default {
name: "HQY_OUTORDER", name: "HQY_OUTORDER",
components: { Pagination, Detail,importExcel }, components: { Pagination, Detail, importExcel },
directives: { permission }, directives: { permission },
data() { data() {
return { return {
@ -204,11 +238,63 @@ export default {
//tempsTabs.push({ label: "", prop: "billNum", width: 150 }); //tempsTabs.push({ label: "", prop: "billNum", width: 150 });
tempsTabs.push({ label: "创建人", prop: "creator", width: 160 }); tempsTabs.push({ label: "创建人", prop: "creator", width: 160 });
tempsTabs.push({ label: "创建时间", prop: "creationTime", width: 160 }); tempsTabs.push({ label: "创建时间", prop: "creationTime", width: 160 });
tempsTabs.push({ label: "备注", prop: "remark", width: 120 }); //tempsTabs.push({ label: "", prop: "remark", width: 120 });
return tempsTabs; return tempsTabs;
}, },
}, },
methods: { methods: {
dblhandleCurrentChange(row, column, cell, event) {
if (column.label === "备注") {
row.isEditCell = true;
this.$set(row, "isEditCell", true);
this.$nextTick(() => {
this.$refs["inputRef"].focus();
});
}
this.list = this.list.filter((item) => {
return item;
});
},
//
cellBlur(row, column) {
row.isEditCell = false;
this.$set(row, "isEditCell", false);
},
// 线
submitName(row) {
let getguid = row.id;
let getremark = row.remark;
this.$axios
.gets("/api/settleaccount/WmsHQCaroutput/UpdateRemark", {
id: getguid,
remark: getremark,
})
.then((response) => {
if (response == true) {
this.$notify({
title: "成功",
message: "更新成功",
type: "success",
duration: 2000,
});
this.getList();
}
})
.catch(() => {
this.listLoading = false;
});
},
//
handleCancel(row) {
row.isEditCell = false;
//row.stockQty = row.originalstockQty;
this.$set(row, "isEditCell", false);
// this.$message({
// message: "",
// type: "warning",
// });
this.getList();
},
handleImportExcel() { handleImportExcel() {
// //
this.showExcelImport = true; this.showExcelImport = true;
@ -277,11 +363,18 @@ export default {
this.listQuery.SkipCount = (this.page - 1) * 15; this.listQuery.SkipCount = (this.page - 1) * 15;
} }
this.$axios this.$axios
.posts("/api/settleaccount/WmsHQCaroutput/WmsSharePartList", this.listQuery) .posts(
"/api/settleaccount/WmsHQCaroutput/WmsSharePartList",
this.listQuery
)
.then((response) => { .then((response) => {
this.list = response.items; this.list = response.items;
//alert(JSON.stringify(response.Items)) //alert(JSON.stringify(response.Items))
this.totalCount = response.totalCount; this.totalCount = response.totalCount;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => { setTimeout(() => {
// //
this.listLoading = false; this.listLoading = false;

149
vue/src/views/ux/vw/dataInput/hq_y_report/index.vue

@ -88,6 +88,7 @@
@row-click="handleRowClick" @row-click="handleRowClick"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@filter-change="filterChange" @filter-change="filterChange"
@cell-dblclick="dblhandleCurrentChange"
> >
<el-table-column type="selection" width="44px"></el-table-column> <el-table-column type="selection" width="44px"></el-table-column>
<el-table-column <el-table-column
@ -106,6 +107,39 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="说明" width="400" align="center">
<template slot-scope="scope">
<el-input
ref="inputRef"
v-if="scope.row.isEditCell"
v-model.number="scope.row.remark"
class="el-input"
v-focus
@blur="cellBlur(scope.row, scope.column)"
/>
<span v-else>{{ scope.row.remark }}</span>
<el-button
style="margin-left: 5px"
v-if="scope.row.isEditCell"
type="success"
icon="el-icon-check"
size="small"
circle
@click="submitName(scope.row)"
></el-button>
<el-button
v-show="scope.row.isEditCell"
class="cancel-btn"
size="mini"
icon="el-icon-refresh"
type="warning"
@click.native.prevent="handleCancel(scope.row)"
>
cancel
</el-button>
</template>
</el-table-column>
<el-table-column <el-table-column
prop="stateName" prop="stateName"
label="状态(单击箭头过滤)" label="状态(单击箭头过滤)"
@ -557,7 +591,7 @@ export default {
taskId: "", taskId: "",
name: "", name: "",
type: "", type: "",
stateName:"" stateName: "",
}, },
listBillQuery: { listBillQuery: {
version: "", version: "",
@ -640,11 +674,7 @@ export default {
prop: "createdAt", prop: "createdAt",
width: 150, width: 150,
}); });
tempsTabs.push({
label: "说明",
prop: "remark",
width: 350,
});
tempsTabs.push({ tempsTabs.push({
label: "审批状态", label: "审批状态",
prop: "fileName", prop: "fileName",
@ -654,6 +684,60 @@ export default {
}, },
}, },
methods: { methods: {
dblhandleCurrentChange(row, column, cell, event) {
if (column.label === "说明") {
row.isEditCell = true;
this.$set(row, "isEditCell", true);
this.$nextTick(() => {
// elementautofocus
//this.$refs.inputRef.focus();
this.$refs["inputRef"].focus();
});
}
this.list = this.list.filter((item) => {
return item;
});
},
//
cellBlur(row, column) {
row.isEditCell = false;
this.$set(row, "isEditCell", false);
},
// 线
submitName(row) {
let getguid = row.id;
let getremark = row.remark;
this.$axios
.gets("/api/settleaccount/Job/updateRemark", {
p_id: getguid,
remark: getremark,
})
.then((response) => {
if (response == true) {
this.$notify({
title: "成功",
message: "更新成功",
type: "success",
duration: 2000,
});
this.getList();
}
})
.catch(() => {
this.listLoading = false;
});
},
//
handleCancel(row) {
row.isEditCell = false;
//row.stockQty = row.originalstockQty;
this.$set(row, "isEditCell", false);
// this.$message({
// message: "",
// type: "warning",
// });
this.getList();
},
sortChange(data) { sortChange(data) {
const { prop, order } = data; const { prop, order } = data;
if (!prop || !order) { if (!prop || !order) {
@ -689,7 +773,7 @@ export default {
// //
handleConfirm(row) { handleConfirm(row) {
this.isEdit = false; this.isEdit = false;
this.isTaskSuccess=false; this.isTaskSuccess = false;
if (this.multipleSelection.length == 0) { if (this.multipleSelection.length == 0) {
this.$message({ this.$message({
message: "至少选择一行!", message: "至少选择一行!",
@ -698,23 +782,21 @@ export default {
return; return;
} else { } else {
var getbillNum = ""; var getbillNum = "";
var getTaskState=""; var getTaskState = "";
// //
this.multipleSelection.forEach((element) => { this.multipleSelection.forEach((element) => {
let state = element.fileName; let state = element.fileName;
if (state != "" && state != "已确认") if (state != "" && state != "已确认") {
{
this.isEdit = true; this.isEdit = true;
getbillNum += state + ","; getbillNum += state + ",";
} } else if (element.stateName != "Succeeded") {
else if(element.stateName != "Succeeded"){ this.isTaskSuccess = true;
this.isTaskSuccess=true; getTaskState += element.taskId;
getTaskState+=element.taskId;
} }
}); });
} }
// //
if(this.isTaskSuccess == true){ if (this.isTaskSuccess == true) {
this.$message({ this.$message({
message: message:
"有未成功的任务,不能单击确认!:" + "有未成功的任务,不能单击确认!:" +
@ -779,7 +861,7 @@ export default {
// //
handleCreateBills(row) { handleCreateBills(row) {
this.isEdit = false; this.isEdit = false;
this.isTaskSuccess=false; this.isTaskSuccess = false;
if (this.multipleSelection.length == 0) { if (this.multipleSelection.length == 0) {
this.$message({ this.$message({
message: "至少选择一行!", message: "至少选择一行!",
@ -788,22 +870,21 @@ export default {
return; return;
} else { } else {
var getbillNum = ""; var getbillNum = "";
var getTaskState=""; var getTaskState = "";
// //
this.multipleSelection.forEach((element) => { this.multipleSelection.forEach((element) => {
let state = element.fileName; let state = element.fileName;
if (state != "" && state != "已确认") { if (state != "" && state != "已确认") {
this.isEdit = true; this.isEdit = true;
getbillNum += state + ","; getbillNum += state + ",";
} } else if (element.stateName != "Succeeded") {
else if(element.stateName != "Succeeded"){ this.isTaskSuccess = true;
this.isTaskSuccess=true; getTaskState += element.taskId;
getTaskState+=element.taskId;
} }
}); });
} }
// //
if(this.isTaskSuccess == true){ if (this.isTaskSuccess == true) {
this.$message({ this.$message({
message: message:
"有未成功的任务,不能单击确认!:" + "有未成功的任务,不能单击确认!:" +
@ -837,7 +918,9 @@ export default {
} }
this.listBillQuery.guids = params; this.listBillQuery.guids = params;
this.listBillQuery.version = this.JobversionValue; this.listBillQuery.version = this.JobversionValue;
console.log("一汽轿车出库单条件:" + JSON.stringify(this.listBillQuery)); console.log(
"一汽轿车出库单条件:" + JSON.stringify(this.listBillQuery)
);
this.$confirm("是否确认出库" + myalert + "?", "提示", { this.$confirm("是否确认出库" + myalert + "?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
@ -1032,11 +1115,11 @@ export default {
}, },
getdateValue(val) { getdateValue(val) {
this.startTime = val; this.startTime = val;
this.getbalanceIndexData(); //this.getbalanceIndexData();
}, },
getdateVal(val) { getdateVal(val) {
this.endTime = val; this.endTime = val;
this.getbalanceIndexData(); //this.getbalanceIndexData();
}, },
getCurrentMonthFirst() { getCurrentMonthFirst() {
@ -1155,8 +1238,7 @@ export default {
} }
console.log( console.log(
"一汽轿车核对明细-导出条件:" + "一汽轿车核对明细-导出条件:" + JSON.stringify(this.listExportQuery)
JSON.stringify(this.listExportQuery)
); );
this.$axios this.$axios
.posts( .posts(
@ -1185,9 +1267,12 @@ export default {
}); });
}, },
handleCreate() { handleCreate() {
this.$nextTick(() => { // this.$nextTick(() => {
// this.$refs["formCount"].resetFields();
// });
if (this.$refs["formCount"] !== undefined) {
this.$refs["formCount"].resetFields(); this.$refs["formCount"].resetFields();
}); }
this.formTitle = "报表统计"; this.formTitle = "报表统计";
this.isEdit = false; this.isEdit = false;
this.form = {}; this.form = {};
@ -1300,6 +1385,10 @@ export default {
.posts("/api/settleaccount/Job/list", this.listQuery) .posts("/api/settleaccount/Job/list", this.listQuery)
.then((response) => { .then((response) => {
this.list = response; this.list = response;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => { setTimeout(() => {
// //
this.listLoading = false; this.listLoading = false;

20
vue/src/views/ux/vw/dataInput/hq_y_sparepart/index.vue

@ -803,7 +803,9 @@ export default {
} }
this.listBillQuery.guids = params; this.listBillQuery.guids = params;
this.listBillQuery.version = this.JobversionValue; this.listBillQuery.version = this.JobversionValue;
console.log("一汽轿车出库单条件:" + JSON.stringify(this.listBillQuery)); console.log(
"一汽轿车出库单条件:" + JSON.stringify(this.listBillQuery)
);
this.$confirm("是否确认出库" + myalert + "?", "提示", { this.$confirm("是否确认出库" + myalert + "?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
@ -998,11 +1000,11 @@ export default {
}, },
getdateValue(val) { getdateValue(val) {
this.startTime = val; this.startTime = val;
this.getbalanceIndexData(); //this.getbalanceIndexData();
}, },
getdateVal(val) { getdateVal(val) {
this.endTime = val; this.endTime = val;
this.getbalanceIndexData(); //this.getbalanceIndexData();
}, },
getCurrentMonthFirst() { getCurrentMonthFirst() {
@ -1151,9 +1153,12 @@ export default {
}); });
}, },
handleCreate() { handleCreate() {
this.$nextTick(() => { // this.$nextTick(() => {
// this.$refs["formCount"].resetFields();
// });
if (this.$refs["formCount"] !== undefined) {
this.$refs["formCount"].resetFields(); this.$refs["formCount"].resetFields();
}); }
this.formTitle = "报表统计"; this.formTitle = "报表统计";
this.isEdit = false; this.isEdit = false;
this.form = {}; this.form = {};
@ -1263,7 +1268,10 @@ export default {
this.listQuery.name = "一汽轿车平台备件核对明细"; this.listQuery.name = "一汽轿车平台备件核对明细";
this.listQuery.type = this.JobversionValue; this.listQuery.type = this.JobversionValue;
this.$axios this.$axios
.posts("/api/settleaccount/ReportMakeService/HQHSettledDetailDiffExportService", this.listQuery) .posts(
"/api/settleaccount/ReportMakeService/HQHSettledDetailDiffExportService",
this.listQuery
)
.then((response) => { .then((response) => {
this.list = response; this.list = response;
setTimeout(() => { setTimeout(() => {

Loading…
Cancel
Save