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

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

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

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

@ -88,6 +88,7 @@
@row-click="handleRowClick"
@selection-change="handleSelectionChange"
@filter-change="filterChange"
@cell-dblclick="dblhandleCurrentChange"
>
<el-table-column type="selection" width="44px"></el-table-column>
<el-table-column
@ -106,32 +107,39 @@
</template>
</el-table-column>
<!-- 操作名称 -->
<!-- <el-table-column
prop="actionName"
label="操作名称(单击箭头过滤)"
width="165"
column-key="actionName"
:filters="[
{ text: '导出', value: '导出' },
{ text: '消息', value: '消息' },
]"
filter-placement="bottom-end"
:filter-method="filterHandler"
>
<!-- 在线编译说明 -->
<el-table-column label="说明" width="400" align="center">
<template slot-scope="scope">
<div align="center">
<el-tag
v-for="(item, index) in menuCateMap"
v-show="scope.row.actionName == item.value"
:key="index"
:type="item.cssName"
>
{{ item.label }}
</el-tag>
</div>
<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"
@ -211,154 +219,6 @@
/>
</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
:visible.sync="dialogFormVisible"
@ -924,11 +784,11 @@ export default {
prop: "createdAt",
width: 150,
});
tempsTabs.push({
label: "说明",
prop: "remark",
width: 350,
});
// tempsTabs.push({
// label: "",
// prop: "remark",
// width: 350,
// });
tempsTabs.push({
label: "审批状态",
prop: "fileName",
@ -938,6 +798,58 @@ export default {
},
},
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) {
const { prop, order } = data;
if (!prop || !order) {
@ -1311,21 +1223,21 @@ export default {
},
getdateValue(val) {
this.startTime = val;
this.getbalanceIndexData();
//this.getbalanceIndexData();
},
getdateVal(val) {
this.endTime = val;
this.getbalanceIndexData();
//this.getbalanceIndexData();
},
//cp5
getdateValueCp5(val) {
this.cp5startTime = val;
this.getbalanceIndexData();
//this.getbalanceIndexData();
},
getdateValCp5(val) {
this.cp5endTime = val;
this.getbalanceIndexData();
//this.getbalanceIndexData();
},
getCurrentMonthFirst() {
var date = new Date();
@ -1622,6 +1534,10 @@ export default {
.posts("/api/settleaccount/Job/list", this.listQuery)
.then((response) => {
this.list = response;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => {
//
this.listLoading = false;

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

@ -70,6 +70,7 @@
style="width: 100%"
@row-click="handleRowClick"
@filter-change="filterChange"
@cell-dblclick="dblhandleCurrentChange"
>
<el-table-column type="selection" width="44px"></el-table-column>
<el-table-column
@ -88,32 +89,40 @@
</template>
</el-table-column>
<!-- 操作名称 -->
<el-table-column
prop="actionName"
label="操作名称(单击箭头过滤)"
width="165"
column-key="actionName"
:filters="[
{ text: '导出', value: '导出' },
{ text: '消息', value: '消息' },
]"
filter-placement="bottom-end"
:filter-method="filterHandler"
>
<!-- 在线编译说明 -->
<el-table-column label="说明" width="400" align="center">
<template slot-scope="scope">
<div align="center">
<el-tag
v-for="(item, index) in menuCateMap"
v-show="scope.row.actionName == item.value"
:key="index"
:type="item.cssName"
>
{{ item.label }}
</el-tag>
</div>
<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
prop="stateName"
@ -193,154 +202,6 @@
/>
</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
:visible.sync="dialogFormVisible"
@ -643,11 +504,7 @@ export default {
prop: "createdAt",
width: 150,
});
tempsTabs.push({
label: "说明",
prop: "remark",
width: 220,
});
// tempsTabs.push({
// label: "",
// prop: "actionName",
@ -662,6 +519,55 @@ export default {
},
},
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;
},
@ -755,11 +661,11 @@ export default {
},
getdateValue(val) {
this.startTime = val;
this.getbalanceIndexData();
//this.getbalanceIndexData();
},
getdateVal(val) {
this.endTime = val;
this.getbalanceIndexData();
//his.getbalanceIndexData();
},
getCurrentMonthFirst() {
@ -995,6 +901,10 @@ export default {
.posts("/api/settleaccount/Job/list", this.listQuery)
.then((response) => {
this.list = response;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => {
//
this.listLoading = false;

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

@ -70,6 +70,7 @@
@row-click="handleRowClick"
@selection-change="handleSelectionChange"
@filter-change="filterChange"
@cell-dblclick="dblhandleCurrentChange"
>
<el-table-column type="selection" width="44px"></el-table-column>
<el-table-column
@ -88,8 +89,41 @@
</template>
</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"
label="操作名称(单击箭头过滤)"
width="165"
@ -113,7 +147,7 @@
</el-tag>
</div>
</template>
</el-table-column>
</el-table-column> -->
<!-- 状态 -->
<el-table-column
prop="stateName"
@ -193,154 +227,6 @@
/>
</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
:visible.sync="dialogFormVisible"
@ -670,6 +556,7 @@ export default {
taskId: "",
name: "",
type: "",
Sorting: "",
},
page: 1,
dialogFormVisible: false,
@ -746,11 +633,11 @@ export default {
prop: "createdAt",
width: 150,
});
tempsTabs.push({
label: "说明",
prop: "remark",
width: 220,
});
// tempsTabs.push({
// label: "",
// prop: "remark",
// width: 220,
// });
// tempsTabs.push({
// label: "",
// prop: "stateName",
@ -760,6 +647,60 @@ export default {
},
},
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) {
this.multipleSelection = val;
},
@ -825,8 +766,9 @@ export default {
this.$axios
.posts("/api/settleaccount/Job/versionlist", this.listQuery)
.then((response) => {
let res = response.reverse(); //
this.JobVersionList = [];
response.forEach((element) => {
res.forEach((element, index) => {
let options = {};
options.value = element;
options.label = element;
@ -853,11 +795,11 @@ export default {
},
getdateValue(val) {
this.startTime = val;
this.getbalanceIndexData();
//this.getbalanceIndexData();
},
getdateVal(val) {
this.endTime = val;
this.getbalanceIndexData();
//this.getbalanceIndexData();
},
getCurrentMonthFirst() {
@ -994,9 +936,12 @@ export default {
});
},
handleCreate() {
this.$nextTick(() => {
// this.$nextTick(() => {
// this.$refs["formCount"].resetFields();
// });
if (this.$refs["formCount"] !== undefined) {
this.$refs["formCount"].resetFields();
});
}
this.formTitle = "报表统计";
this.isEdit = false;
this.form = {};
@ -1124,6 +1069,10 @@ export default {
.posts("/api/settleaccount/Job/list", this.listQuery)
.then((response) => {
this.list = response;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => {
//
this.listLoading = false;

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

@ -70,6 +70,7 @@
@row-click="handleRowClick"
@selection-change="handleSelectionChange"
@filter-change="filterChange"
@cell-dblclick="dblhandleCurrentChange"
>
<el-table-column type="selection" width="44px"></el-table-column>
<el-table-column
@ -88,32 +89,40 @@
</template>
</el-table-column>
<!-- 操作名称 -->
<!-- <el-table-column
prop="actionName"
label="操作名称(单击箭头过滤)"
width="165"
column-key="actionName"
:filters="[
{ text: '导出', value: '导出' },
{ text: '消息', value: '消息' },
]"
filter-placement="bottom-end"
:filter-method="filterHandler"
>
<!-- 在线编译说明 -->
<el-table-column label="说明" width="400" align="center">
<template slot-scope="scope">
<div align="center">
<el-tag
v-for="(item, index) in menuCateMap"
v-show="scope.row.actionName == item.value"
:key="index"
:type="item.cssName"
>
{{ item.label }}
</el-tag>
</div>
<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"
@ -611,11 +620,7 @@ export default {
prop: "createdAt",
width: 150,
});
tempsTabs.push({
label: "说明",
prop: "remark",
width: 220,
});
tempsTabs.push({
label: "审批状态",
prop: "fileName",
@ -625,6 +630,55 @@ export default {
},
},
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;
},
@ -739,11 +793,11 @@ export default {
},
getdateValue(val) {
this.startTime = val;
this.getbalanceIndexData();
//this.getbalanceIndexData();
},
getdateVal(val) {
this.endTime = val;
this.getbalanceIndexData();
//this.getbalanceIndexData();
},
getCurrentMonthFirst() {
@ -836,8 +890,7 @@ export default {
: undefined;
this.listExportQuery.end = this.endTime ? this.endTime : undefined;
console.log(
"大众看板未结明细-导出条件:" +
JSON.stringify(this.listExportQuery)
"大众看板未结明细-导出条件:" + JSON.stringify(this.listExportQuery)
);
this.$axios
.posts(
@ -994,6 +1047,10 @@ export default {
.posts("/api/settleaccount/Job/list", this.listQuery)
.then((response) => {
this.list = response;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => {
//
this.listLoading = false;

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

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

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

@ -70,6 +70,7 @@
@row-click="handleRowClick"
@selection-change="handleSelectionChange"
@filter-change="filterChange"
@cell-dblclick="dblhandleCurrentChange"
>
<el-table-column type="selection" width="44px"></el-table-column>
<el-table-column
@ -88,30 +89,37 @@
</template>
</el-table-column>
<!-- 操作名称 -->
<el-table-column
prop="actionName"
label="操作名称(单击箭头过滤)"
width="165"
column-key="actionName"
:filters="[
{ text: '导出', value: '导出' },
{ text: '消息', value: '消息' },
]"
filter-placement="bottom-end"
:filter-method="filterHandler"
>
<!-- 在线编译说明 -->
<el-table-column label="说明" width="400" align="center">
<template slot-scope="scope">
<div align="center">
<el-tag
v-for="(item, index) in menuCateMap"
v-show="scope.row.actionName == item.value"
:key="index"
:type="item.cssName"
>
{{ item.label }}
</el-tag>
</div>
<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>
<!-- 状态 -->
@ -193,154 +201,6 @@
/>
</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
:visible.sync="dialogFormVisible"
@ -794,15 +654,60 @@ export default {
prop: "createdAt",
width: 150,
});
tempsTabs.push({
label: "说明",
prop: "remark",
width: 220,
});
return tempsTabs;
},
},
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;
},
@ -896,21 +801,21 @@ export default {
},
getdateValue(val) {
this.startTime = val;
this.getbalanceIndexData();
//this.getbalanceIndexData();
},
getdateVal(val) {
this.endTime = val;
this.getbalanceIndexData();
//this.getbalanceIndexData();
},
//cp5
getdateValueCp5(val) {
this.cp5startTime = val;
this.getbalanceIndexData();
//this.getbalanceIndexData();
},
getdateValCp5(val) {
this.cp5endTime = val;
this.getbalanceIndexData();
//this.getbalanceIndexData();
},
getCurrentMonthFirst() {
@ -1055,9 +960,12 @@ export default {
});
},
handleCreate() {
this.$nextTick(() => {
// this.$nextTick(() => {
// this.$refs["formCount"].resetFields();
// });
if (this.$refs["formCount"] !== undefined) {
this.$refs["formCount"].resetFields();
});
}
this.formTitle = "报表统计";
this.isEdit = false;
this.form = {};
@ -1187,6 +1095,10 @@ export default {
.posts("/api/settleaccount/Job/list", this.listQuery)
.then((response) => {
this.list = response;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => {
//
this.listLoading = false;

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

@ -71,6 +71,7 @@
@row-click="handleRowClick"
@selection-change="handleSelectionChange"
@filter-change="filterChange"
@cell-dblclick="dblhandleCurrentChange"
>
<el-table-column type="selection" width="44px"></el-table-column>
<el-table-column
@ -89,30 +90,37 @@
</template>
</el-table-column>
<!-- 操作名称 -->
<el-table-column
prop="actionName"
label="操作名称(单击箭头过滤)"
width="165"
column-key="actionName"
:filters="[
{ text: '导出', value: '导出' },
{ text: '消息', value: '消息' },
]"
filter-placement="bottom-end"
:filter-method="filterHandler"
>
<!-- 在线编译说明 -->
<el-table-column label="说明" width="400" align="center">
<template slot-scope="scope">
<div align="center">
<el-tag
v-for="(item, index) in menuCateMap"
v-show="scope.row.actionName == item.value"
:key="index"
:type="item.cssName"
>
{{ item.label }}
</el-tag>
</div>
<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>
<!-- 状态 -->
@ -194,154 +202,6 @@
/>
</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
:visible.sync="dialogFormVisible"
@ -755,11 +615,7 @@ export default {
prop: "createdAt",
width: 150,
});
tempsTabs.push({
label: "说明",
prop: "remark",
width: 220,
});
// tempsTabs.push({
// label: "",
// prop: "stateName",
@ -769,6 +625,55 @@ export default {
},
},
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;
},
@ -862,11 +767,11 @@ export default {
},
getdateValue(val) {
this.startTime = val;
this.getbalanceIndexData();
//this.getbalanceIndexData();
},
getdateVal(val) {
this.endTime = val;
this.getbalanceIndexData();
//this.getbalanceIndexData();
},
getCurrentMonthFirst() {
@ -1138,6 +1043,10 @@ export default {
.posts("/api/settleaccount/Job/list", this.listQuery)
.then((response) => {
this.list = response;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => {
//
this.listLoading = false;

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

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

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

@ -87,6 +87,7 @@
@row-click="handleRowClick"
@selection-change="handleSelectionChange"
@filter-change="filterChange"
@cell-dblclick="dblhandleCurrentChange"
>
<el-table-column type="selection" width="44px"></el-table-column>
<el-table-column
@ -105,32 +106,39 @@
</template>
</el-table-column>
<!-- 操作名称 -->
<!-- <el-table-column
prop="actionName"
label="操作名称(单击箭头过滤)"
width="165"
column-key="actionName"
:filters="[
{ text: '导出', value: '导出' },
{ text: '消息', value: '消息' },
]"
filter-placement="bottom-end"
:filter-method="filterHandler"
>
<!-- 在线编译说明 -->
<el-table-column label="说明" width="400" align="center">
<template slot-scope="scope">
<div align="center">
<el-tag
v-for="(item, index) in menuCateMap"
v-show="scope.row.actionName == item.value"
:key="index"
:type="item.cssName"
>
{{ item.label }}
</el-tag>
</div>
<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"
@ -760,11 +768,7 @@ export default {
prop: "createdAt",
width: 150,
});
tempsTabs.push({
label: "说明",
prop: "remark",
width: 220,
});
tempsTabs.push({
label: "审批状态",
prop: "fileName",
@ -774,6 +778,55 @@ export default {
},
},
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;
},
@ -1073,11 +1126,11 @@ export default {
},
getdateValue(val) {
this.startTime = val;
this.getbalanceIndexData();
//this.getbalanceIndexData();
},
getdateVal(val) {
this.endTime = val;
this.getbalanceIndexData();
//this.getbalanceIndexData();
},
getCurrentMonthFirst() {
@ -1329,6 +1382,10 @@ export default {
.posts("/api/settleaccount/Job/list", this.listQuery)
.then((response) => {
this.list = response;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => {
//
this.listLoading = false;

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

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

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

@ -45,6 +45,7 @@
@sort-change="sortChange"
@selection-change="handleSelectionChange"
@row-click="handleRowClick"
@cell-dblclick="dblhandleCurrentChange"
>
<el-table-column
label="单据号"
@ -77,6 +78,39 @@
{{ scope.column.label }}
</template>
</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>
<div class="table-footer">
<!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"-->
@ -87,7 +121,7 @@
:limit.sync="listQuery.MaxResultCount"
@pagination="getList"
/>
<!-- 导入Excel组件 -->
<!-- 导入Excel组件 -->
<importExcel
ref="importexcel"
:show="showExcelImport"
@ -204,11 +238,63 @@ export default {
//tempsTabs.push({ label: "", prop: "billNum", width: 150 });
tempsTabs.push({ label: "创建人", prop: "creator", 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;
},
},
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() {
//
this.showExcelImport = true;
@ -282,6 +368,10 @@ export default {
this.list = response.items;
//alert(JSON.stringify(response.Items))
this.totalCount = response.totalCount;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => {
//
this.listLoading = false;

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

@ -53,6 +53,7 @@
@sort-change="sortChange"
@selection-change="handleSelectionChange"
@row-click="handleRowClick"
@cell-dblclick="dblhandleCurrentChange"
>
<el-table-column
label="单据号"
@ -85,6 +86,39 @@
{{ scope.column.label }}
</template>
</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>
<div class="table-footer">
<!-- 分页控件 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: "creator", 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;
},
},
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() {
this.$refs.formCount.validate((valid) => {
if (valid) {
@ -298,12 +384,12 @@ export default {
this.listExportQuery
)
.then((res) => {
this.$notify({
title: "成功",
message: "生成成功",
type: "success",
duration: 2000,
});
this.$notify({
title: "成功",
message: "生成成功",
type: "success",
duration: 2000,
});
this.getList();
this.formLoading = false;
@ -399,6 +485,10 @@ export default {
this.list = response.items;
//alert(JSON.stringify(response.Items))
this.totalCount = response.totalCount;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => {
//
this.listLoading = false;

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

@ -95,6 +95,7 @@
@row-click="handleRowClick"
@selection-change="handleSelectionChange"
@filter-change="filterChange"
@cell-dblclick="dblhandleCurrentChange"
>
<el-table-column type="selection" width="44px"></el-table-column>
<el-table-column
@ -113,32 +114,39 @@
</template>
</el-table-column>
<!-- 操作名称 -->
<!-- <el-table-column
prop="actionName"
label="操作名称(单击箭头过滤)"
width="165"
column-key="actionName"
:filters="[
{ text: '导出', value: '导出' },
{ text: '消息', value: '消息' },
]"
filter-placement="bottom-end"
:filter-method="filterHandler"
>
<!-- 在线编辑说明 -->
<el-table-column label="说明" width="400" align="center">
<template slot-scope="scope">
<div align="center">
<el-tag
v-for="(item, index) in menuCateMap"
v-show="scope.row.actionName == item.value"
:key="index"
:type="item.cssName"
>
{{ item.label }}
</el-tag>
</div>
<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"
@ -218,154 +226,6 @@
/>
</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
:visible.sync="dialogFormVisible"
@ -854,11 +714,7 @@ export default {
prop: "createdAt",
width: 150,
});
tempsTabs.push({
label: "说明",
prop: "remark",
width: 350,
});
tempsTabs.push({
label: "审批状态",
prop: "fileName",
@ -868,6 +724,60 @@ export default {
},
},
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
getdateValueCp5(val) {
this.cp5startTime = val;
@ -1486,6 +1396,10 @@ export default {
.posts("/api/settleaccount/Job/list", this.listQuery)
.then((response) => {
this.list = response;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => {
//
this.listLoading = false;

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

@ -87,6 +87,7 @@
@row-click="handleRowClick"
@selection-change="handleSelectionChange"
@filter-change="filterChange"
@cell-dblclick="dblhandleCurrentChange"
>
<el-table-column type="selection" width="44px"></el-table-column>
<el-table-column
@ -105,32 +106,39 @@
</template>
</el-table-column>
<!-- 操作名称 -->
<!-- <el-table-column
prop="actionName"
label="操作名称(单击箭头过滤)"
width="165"
column-key="actionName"
:filters="[
{ text: '导出', value: '导出' },
{ text: '消息', value: '消息' },
]"
filter-placement="bottom-end"
:filter-method="filterHandler"
>
<!-- 在线编辑说明字段 -->
<el-table-column label="说明" width="400" align="center">
<template slot-scope="scope">
<div align="center">
<el-tag
v-for="(item, index) in menuCateMap"
v-show="scope.row.actionName == item.value"
:key="index"
:type="item.cssName"
>
{{ item.label }}
</el-tag>
</div>
<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"
@ -210,154 +218,6 @@
/>
</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
:visible.sync="dialogFormVisible"
@ -731,11 +591,7 @@ export default {
prop: "createdAt",
width: 150,
});
tempsTabs.push({
label: "说明",
prop: "remark",
width: 350,
});
tempsTabs.push({
label: "审批状态",
prop: "fileName",
@ -745,6 +601,60 @@ export default {
},
},
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
getdateValueCp5(val) {
this.cp5startTime = val;
@ -1301,6 +1211,10 @@ export default {
.posts("/api/settleaccount/Job/list", this.listQuery)
.then((response) => {
this.list = response;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => {
//
this.listLoading = false;

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

@ -330,6 +330,11 @@ export default {
prop: "materialCode",
width: 150,
});
tempsTabs.push({
label: "物料代码",
prop: "extend1",
width: 150,
});
tempsTabs.push({ label: "零件描述", prop: "materialDesc", width: 250 });
tempsTabs.push({ label: "寄售库存", prop: "stockQty", 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"
@selection-change="handleSelectionChange"
@row-click="handleRowClick"
@cell-dblclick="dblhandleCurrentChange"
>
<el-table-column
label="单据号"
@ -77,6 +78,38 @@
{{ scope.column.label }}
</template>
</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>
<div class="table-footer">
<!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"-->
@ -87,7 +120,7 @@
:limit.sync="listQuery.MaxResultCount"
@pagination="getList"
/>
<!-- 导入Excel组件 -->
<!-- 导入Excel组件 -->
<importExcel
ref="importexcel"
:show="showExcelImport"
@ -123,7 +156,7 @@ import { formatTimeToTimestamp } from "@/utils/index";
export default {
name: "Sparepartoutorder",
components: { Pagination, Detail,importExcel },
components: { Pagination, Detail, importExcel },
directives: { permission },
data() {
return {
@ -204,11 +237,63 @@ export default {
//tempsTabs.push({ label: "", prop: "billNum", width: 150 });
tempsTabs.push({ label: "创建人", prop: "creator", 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;
},
},
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() {
//
this.showExcelImport = true;
@ -277,11 +362,18 @@ export default {
this.listQuery.SkipCount = (this.page - 1) * 15;
}
this.$axios
.posts("/api/settleaccount/wmsSharePartoutput/WmsSharePartList", this.listQuery)
.posts(
"/api/settleaccount/wmsSharePartoutput/WmsSharePartList",
this.listQuery
)
.then((response) => {
this.list = response.items;
//alert(JSON.stringify(response.Items))
this.totalCount = response.totalCount;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => {
//
this.listLoading = false;

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

@ -45,6 +45,7 @@
@sort-change="sortChange"
@selection-change="handleSelectionChange"
@row-click="handleRowClick"
@cell-dblclick="dblhandleCurrentChange"
>
<el-table-column
label="单据号"
@ -77,6 +78,38 @@
{{ scope.column.label }}
</template>
</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>
<div class="table-footer">
<!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"-->
@ -87,7 +120,7 @@
:limit.sync="listQuery.MaxResultCount"
@pagination="getList"
/>
<!-- 导入Excel组件 -->
<!-- 导入Excel组件 -->
<importExcel
ref="importexcel"
:show="showExcelImport"
@ -123,7 +156,7 @@ import { formatTimeToTimestamp } from "@/utils/index";
export default {
name: "Sparepartoutorder90",
components: { Pagination, Detail,importExcel },
components: { Pagination, Detail, importExcel },
directives: { permission },
data() {
return {
@ -204,11 +237,63 @@ export default {
//tempsTabs.push({ label: "", prop: "billNum", width: 150 });
tempsTabs.push({ label: "创建人", prop: "creator", 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;
},
},
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() {
//
this.showExcelImport = true;
@ -277,11 +362,18 @@ export default {
this.listQuery.SkipCount = (this.page - 1) * 15;
}
this.$axios
.posts("/api/settleaccount/wmsSharePart90output/WmsSharePartList", this.listQuery)
.posts(
"/api/settleaccount/wmsSharePart90output/WmsSharePartList",
this.listQuery
)
.then((response) => {
this.list = response.items;
//alert(JSON.stringify(response.Items))
this.totalCount = response.totalCount;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => {
//
this.listLoading = false;

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

@ -45,6 +45,7 @@
@sort-change="sortChange"
@selection-change="handleSelectionChange"
@row-click="handleRowClick"
@cell-dblclick="dblhandleCurrentChange"
>
<el-table-column
label="单据号"
@ -77,6 +78,39 @@
{{ scope.column.label }}
</template>
</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>
<div class="table-footer">
<!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"-->
@ -87,7 +121,7 @@
:limit.sync="listQuery.MaxResultCount"
@pagination="getList"
/>
<!-- 导入Excel组件 -->
<!-- 导入Excel组件 -->
<importExcel
ref="importexcel"
:show="showExcelImport"
@ -123,7 +157,7 @@ import { formatTimeToTimestamp } from "@/utils/index";
export default {
name: "sendUnsettledDiffReport",
components: { Pagination, Detail,importExcel },
components: { Pagination, Detail, importExcel },
directives: { permission },
data() {
return {
@ -204,11 +238,63 @@ export default {
//tempsTabs.push({ label: "", prop: "billNum", width: 150 });
tempsTabs.push({ label: "创建人", prop: "creator", 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;
},
},
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() {
//
this.showExcelImport = true;
@ -280,8 +366,13 @@ export default {
.posts("/api/settleaccount/wmsjitoutput/WmsJitList", this.listQuery)
.then((response) => {
this.list = response.items;
//alert(JSON.stringify(response.Items))
this.totalCount = response.totalCount;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => {
//
this.listLoading = false;

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

@ -45,6 +45,7 @@
@sort-change="sortChange"
@selection-change="handleSelectionChange"
@row-click="handleRowClick"
@cell-dblclick="dblhandleCurrentChange"
>
<el-table-column
label="单据号"
@ -77,6 +78,39 @@
{{ scope.column.label }}
</template>
</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>
<div class="table-footer">
<!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"-->
@ -87,7 +121,7 @@
:limit.sync="listQuery.MaxResultCount"
@pagination="getList"
/>
<!-- 导入Excel组件 -->
<!-- 导入Excel组件 -->
<importExcel
ref="importexcel"
:show="showExcelImport"
@ -123,7 +157,7 @@ import { formatTimeToTimestamp } from "@/utils/index";
export default {
name: "HQF_OUTORDER",
components: { Pagination, Detail,importExcel },
components: { Pagination, Detail, importExcel },
directives: { permission },
data() {
return {
@ -204,11 +238,63 @@ export default {
//tempsTabs.push({ label: "", prop: "billNum", width: 150 });
tempsTabs.push({ label: "创建人", prop: "creator", 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;
},
},
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() {
//
this.showExcelImport = true;
@ -277,11 +363,18 @@ export default {
this.listQuery.SkipCount = (this.page - 1) * 15;
}
this.$axios
.posts("/api/settleaccount/WMSHQFKanbanoutput/WmsHQFKanbanList", this.listQuery)
.posts(
"/api/settleaccount/WMSHQFKanbanoutput/WmsHQFKanbanList",
this.listQuery
)
.then((response) => {
this.list = response.items;
//alert(JSON.stringify(response.Items))
this.totalCount = response.totalCount;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => {
//
this.listLoading = false;

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

@ -45,6 +45,7 @@
@sort-change="sortChange"
@selection-change="handleSelectionChange"
@row-click="handleRowClick"
@cell-dblclick="dblhandleCurrentChange"
>
<el-table-column
label="单据号"
@ -77,6 +78,38 @@
{{ scope.column.label }}
</template>
</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>
<div class="table-footer">
<!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"-->
@ -87,7 +120,7 @@
:limit.sync="listQuery.MaxResultCount"
@pagination="getList"
/>
<!-- 导入Excel组件 -->
<!-- 导入Excel组件 -->
<importExcel
ref="importexcel"
:show="showExcelImport"
@ -123,7 +156,7 @@ import { formatTimeToTimestamp } from "@/utils/index";
export default {
name: "HQF_OUTORDER",
components: { Pagination, Detail,importExcel },
components: { Pagination, Detail, importExcel },
directives: { permission },
data() {
return {
@ -204,11 +237,63 @@ export default {
//tempsTabs.push({ label: "", prop: "billNum", width: 150 });
tempsTabs.push({ label: "创建人", prop: "creator", 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;
},
},
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() {
//
this.showExcelImport = true;
@ -277,11 +362,18 @@ export default {
this.listQuery.SkipCount = (this.page - 1) * 15;
}
this.$axios
.posts("/api/settleaccount/wmsHQFSharePartoutput/WmsSharePartList", this.listQuery)
.posts(
"/api/settleaccount/wmsHQFSharePartoutput/WmsSharePartList",
this.listQuery
)
.then((response) => {
this.list = response.items;
//alert(JSON.stringify(response.Items))
this.totalCount = response.totalCount;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => {
//
this.listLoading = false;

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

@ -88,6 +88,7 @@
@row-click="handleRowClick"
@selection-change="handleSelectionChange"
@filter-change="filterChange"
@cell-dblclick="dblhandleCurrentChange"
>
<el-table-column type="selection" width="44px"></el-table-column>
<el-table-column
@ -106,6 +107,39 @@
</template>
</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
prop="stateName"
label="状态(单击箭头过滤)"
@ -639,11 +673,7 @@ export default {
prop: "createdAt",
width: 150,
});
tempsTabs.push({
label: "说明",
prop: "remark",
width: 350,
});
tempsTabs.push({
label: "审批状态",
prop: "fileName",
@ -653,6 +683,60 @@ export default {
},
},
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) {
const { prop, order } = data;
if (!prop || !order) {
@ -688,7 +772,7 @@ export default {
//
handleConfirm(row) {
this.isEdit = false;
this.isTaskSuccess=false;
this.isTaskSuccess = false;
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
@ -697,22 +781,21 @@ export default {
return;
} else {
var getbillNum = "";
var getTaskState="";
var getTaskState = "";
//
this.multipleSelection.forEach((element) => {
let state = element.fileName;
if (state != "" && state != "已确认") {
this.isEdit = true;
getbillNum += state + ",";
}
else if(element.stateName != "Succeeded"){
this.isTaskSuccess=true;
getTaskState+=element.taskId;
} else if (element.stateName != "Succeeded") {
this.isTaskSuccess = true;
getTaskState += element.taskId;
}
});
}
//
if(this.isTaskSuccess == true){
if (this.isTaskSuccess == true) {
this.$message({
message:
"有未成功的任务,不能单击确认!:" +
@ -777,7 +860,7 @@ export default {
//
handleCreateBills(row) {
this.isEdit = false;
this.isTaskSuccess=false;
this.isTaskSuccess = false;
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
@ -786,22 +869,21 @@ export default {
return;
} else {
var getbillNum = "";
var getTaskState="";
var getTaskState = "";
//
this.multipleSelection.forEach((element) => {
let state = element.fileName;
if (state != "" && state != "已确认") {
this.isEdit = true;
getbillNum += state + ",";
}
else if(element.stateName != "Succeeded"){
this.isTaskSuccess=true;
getTaskState+=element.taskId;
} else if (element.stateName != "Succeeded") {
this.isTaskSuccess = true;
getTaskState += element.taskId;
}
});
}
//
if(this.isTaskSuccess == true){
if (this.isTaskSuccess == true) {
this.$message({
message:
"有未成功的任务,不能单击确认!:" +
@ -1030,11 +1112,11 @@ export default {
},
getdateValue(val) {
this.startTime = val;
this.getbalanceIndexData();
//this.getbalanceIndexData();
},
getdateVal(val) {
this.endTime = val;
this.getbalanceIndexData();
//this.getbalanceIndexData();
},
getCurrentMonthFirst() {
@ -1153,8 +1235,7 @@ export default {
}
console.log(
"F平台核对明细-导出条件:" +
JSON.stringify(this.listExportQuery)
"F平台核对明细-导出条件:" + JSON.stringify(this.listExportQuery)
);
this.$axios
.posts(
@ -1183,9 +1264,12 @@ export default {
});
},
handleCreate() {
this.$nextTick(() => {
// this.$nextTick(() => {
// this.$refs["formCount"].resetFields();
// });
if (this.$refs["formCount"] !== undefined) {
this.$refs["formCount"].resetFields();
});
}
this.formTitle = "报表统计";
this.isEdit = false;
this.form = {};
@ -1298,6 +1382,10 @@ export default {
.posts("/api/settleaccount/Job/list", this.listQuery)
.then((response) => {
this.list = response;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => {
//
this.listLoading = false;

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

@ -88,6 +88,7 @@
@row-click="handleRowClick"
@selection-change="handleSelectionChange"
@filter-change="filterChange"
@cell-dblclick="dblhandleCurrentChange"
>
<el-table-column type="selection" width="44px"></el-table-column>
<el-table-column
@ -106,6 +107,39 @@
</template>
</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
prop="stateName"
label="状态(单击箭头过滤)"
@ -639,11 +673,7 @@ export default {
prop: "createdAt",
width: 150,
});
tempsTabs.push({
label: "说明",
prop: "remark",
width: 350,
});
tempsTabs.push({
label: "审批状态",
prop: "fileName",
@ -653,6 +683,60 @@ export default {
},
},
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) {
const { prop, order } = data;
if (!prop || !order) {
@ -688,7 +772,7 @@ export default {
//
handleConfirm(row) {
this.isEdit = false;
this.isTaskSuccess=false;
this.isTaskSuccess = false;
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
@ -697,29 +781,28 @@ export default {
return;
} else {
var getbillNum = "";
var getTaskState="";
var getTaskState = "";
//
this.multipleSelection.forEach((element) => {
let state = element.fileName;
if (state != "" && state != "已确认") {
this.isEdit = true;
getbillNum += state + ",";
}
else if(element.stateName != "Succeeded"){
this.isTaskSuccess=true;
getTaskState+=element.taskId;
} else if (element.stateName != "Succeeded") {
this.isTaskSuccess = true;
getTaskState += element.taskId;
}
});
//
if(this.isTaskSuccess == true){
this.$message({
message:
"有未成功的任务,不能单击确认!:" +
getTaskState.substr(0, getTaskState.length - 1),
type: "warning",
});
return;
}
if (this.isTaskSuccess == true) {
this.$message({
message:
"有未成功的任务,不能单击确认!:" +
getTaskState.substr(0, getTaskState.length - 1),
type: "warning",
});
return;
}
}
if (this.isEdit == true) {
this.$message({
@ -777,7 +860,7 @@ export default {
//
handleCreateBills(row) {
this.isEdit = false;
this.isTaskSuccess=false;
this.isTaskSuccess = false;
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
@ -786,22 +869,21 @@ export default {
return;
} else {
var getbillNum = "";
var getTaskState="";
var getTaskState = "";
//
this.multipleSelection.forEach((element) => {
let state = element.fileName;
if (state != "" && state != "已确认") {
this.isEdit = true;
getbillNum += state + ",";
}
else if(element.stateName != "Succeeded"){
this.isTaskSuccess=true;
getTaskState+=element.taskId;
} else if (element.stateName != "Succeeded") {
this.isTaskSuccess = true;
getTaskState += element.taskId;
}
});
}
//
if(this.isTaskSuccess == true){
if (this.isTaskSuccess == true) {
this.$message({
message:
"有未成功的任务,不能单击确认!:" +
@ -1030,11 +1112,11 @@ export default {
},
getdateValue(val) {
this.startTime = val;
this.getbalanceIndexData();
//this.getbalanceIndexData();
},
getdateVal(val) {
this.endTime = val;
this.getbalanceIndexData();
//this.getbalanceIndexData();
},
getCurrentMonthFirst() {
@ -1153,8 +1235,7 @@ export default {
}
console.log(
"F平台备件明细-导出条件:" +
JSON.stringify(this.listExportQuery)
"F平台备件明细-导出条件:" + JSON.stringify(this.listExportQuery)
);
this.$axios
.posts(
@ -1183,9 +1264,12 @@ export default {
});
},
handleCreate() {
this.$nextTick(() => {
// this.$nextTick(() => {
// this.$refs["formCount"].resetFields();
// });
if (this.$refs["formCount"] !== undefined) {
this.$refs["formCount"].resetFields();
});
}
this.formTitle = "报表统计";
this.isEdit = false;
this.form = {};
@ -1298,6 +1382,10 @@ export default {
.posts("/api/settleaccount/Job/list", this.listQuery)
.then((response) => {
this.list = response;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => {
//
this.listLoading = false;

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

@ -45,6 +45,7 @@
@sort-change="sortChange"
@selection-change="handleSelectionChange"
@row-click="handleRowClick"
@cell-dblclick="dblhandleCurrentChange"
>
<el-table-column
label="单据号"
@ -77,6 +78,39 @@
{{ scope.column.label }}
</template>
</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>
<div class="table-footer">
<!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"-->
@ -87,7 +121,7 @@
:limit.sync="listQuery.MaxResultCount"
@pagination="getList"
/>
<!-- 导入Excel组件 -->
<!-- 导入Excel组件 -->
<importExcel
ref="importexcel"
:show="showExcelImport"
@ -123,7 +157,7 @@ import { formatTimeToTimestamp } from "@/utils/index";
export default {
name: "HQH_CHECKOUT",
components: { Pagination, Detail,importExcel },
components: { Pagination, Detail, importExcel },
directives: { permission },
data() {
return {
@ -204,11 +238,63 @@ export default {
//tempsTabs.push({ label: "", prop: "billNum", width: 150 });
tempsTabs.push({ label: "创建人", prop: "creator", 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;
},
},
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() {
//
this.showExcelImport = true;
@ -277,11 +363,18 @@ export default {
this.listQuery.SkipCount = (this.page - 1) * 15;
}
this.$axios
.posts("/api/settleaccount/WmsHQHSharePartoutput/WmsSharePartList", this.listQuery)
.posts(
"/api/settleaccount/WmsHQHSharePartoutput/WmsSharePartList",
this.listQuery
)
.then((response) => {
this.list = response.items;
//alert(JSON.stringify(response.Items))
this.totalCount = response.totalCount;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => {
//
this.listLoading = false;

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

@ -45,6 +45,7 @@
@sort-change="sortChange"
@selection-change="handleSelectionChange"
@row-click="handleRowClick"
@cell-dblclick="dblhandleCurrentChange"
>
<el-table-column
label="单据号"
@ -77,6 +78,39 @@
{{ scope.column.label }}
</template>
</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>
<div class="table-footer">
<!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"-->
@ -87,7 +121,7 @@
:limit.sync="listQuery.MaxResultCount"
@pagination="getList"
/>
<!-- 导入Excel组件 -->
<!-- 导入Excel组件 -->
<importExcel
ref="importexcel"
:show="showExcelImport"
@ -123,7 +157,7 @@ import { formatTimeToTimestamp } from "@/utils/index";
export default {
name: "HQH_OUTORDER",
components: { Pagination, Detail,importExcel },
components: { Pagination, Detail, importExcel },
directives: { permission },
data() {
return {
@ -204,11 +238,63 @@ export default {
//tempsTabs.push({ label: "", prop: "billNum", width: 150 });
tempsTabs.push({ label: "创建人", prop: "creator", 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;
},
},
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() {
//
this.showExcelImport = true;
@ -277,11 +363,18 @@ export default {
this.listQuery.SkipCount = (this.page - 1) * 15;
}
this.$axios
.posts("/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanList", this.listQuery)
.posts(
"/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanList",
this.listQuery
)
.then((response) => {
this.list = response.items;
//alert(JSON.stringify(response.Items))
this.totalCount = response.totalCount;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => {
//
this.listLoading = false;

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

@ -88,6 +88,7 @@
@row-click="handleRowClick"
@selection-change="handleSelectionChange"
@filter-change="filterChange"
@cell-dblclick="dblhandleCurrentChange"
>
<el-table-column type="selection" width="44px"></el-table-column>
<el-table-column
@ -106,6 +107,39 @@
</template>
</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
prop="stateName"
label="状态(单击箭头过滤)"
@ -557,7 +591,7 @@ export default {
taskId: "",
name: "",
type: "",
stateName:""
stateName: "",
},
listBillQuery: {
version: "",
@ -570,7 +604,7 @@ export default {
multipleSelection: [],
tableHeight: document.documentElement.clientHeight - 260,
isEdit: false,
isTaskSuccess:false,
isTaskSuccess: false,
menuCateMap: [
{ label: "导出", value: "导出", cssName: "warning" },
{ label: "消息", value: "消息", cssName: "info" },
@ -641,11 +675,7 @@ export default {
prop: "createdAt",
width: 150,
});
tempsTabs.push({
label: "说明",
prop: "remark",
width: 350,
});
tempsTabs.push({
label: "审批状态",
prop: "fileName",
@ -655,6 +685,60 @@ export default {
},
},
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) {
const { prop, order } = data;
if (!prop || !order) {
@ -690,7 +774,7 @@ export default {
//
handleConfirm(row) {
this.isEdit = false;
this.isTaskSuccess=false;
this.isTaskSuccess = false;
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
@ -699,22 +783,21 @@ export default {
return;
} else {
var getbillNum = "";
var getTaskState="";
var getTaskState = "";
//
this.multipleSelection.forEach((element) => {
let state = element.fileName;
if (state != "" && state != "已确认") {
this.isEdit = true;
getbillNum += state + ",";
}
else if(element.stateName != "Succeeded"){
this.isTaskSuccess=true;
getTaskState+=element.taskId;
} else if (element.stateName != "Succeeded") {
this.isTaskSuccess = true;
getTaskState += element.taskId;
}
});
}
//
if(this.isTaskSuccess == true){
if (this.isTaskSuccess == true) {
this.$message({
message:
"有未成功的任务,不能单击确认!:" +
@ -732,7 +815,6 @@ export default {
});
return;
} else {
var params = [];
let myalert = ""; //使
if (row) {
@ -775,13 +857,12 @@ export default {
message: "已取消操作",
});
});
}
},
//
handleCreateBills(row) {
this.isEdit = false;
this.isTaskSuccess=false;
this.isTaskSuccess = false;
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
@ -790,21 +871,20 @@ export default {
return;
} else {
var getbillNum = "";
var getTaskState="";
var getTaskState = "";
//
this.multipleSelection.forEach((element) => {
let state = element.fileName;
if (state != "" && state != "已确认") {
this.isEdit = true;
getbillNum += state + ",";
}
else if(element.stateName != "Succeeded"){
this.isTaskSuccess=true;
getTaskState+=element.taskId;
} else if (element.stateName != "Succeeded") {
this.isTaskSuccess = true;
getTaskState += element.taskId;
}
});
}
if(this.isTaskSuccess == true){
if (this.isTaskSuccess == true) {
this.$message({
message:
"有未成功的任务,不能单击确认!:" +
@ -1033,11 +1113,11 @@ export default {
},
getdateValue(val) {
this.startTime = val;
this.getbalanceIndexData();
//this.getbalanceIndexData();
},
getdateVal(val) {
this.endTime = val;
this.getbalanceIndexData();
//this.getbalanceIndexData();
},
getCurrentMonthFirst() {
@ -1156,8 +1236,7 @@ export default {
}
console.log(
"H平台核对明细-导出条件:" +
JSON.stringify(this.listExportQuery)
"H平台核对明细-导出条件:" + JSON.stringify(this.listExportQuery)
);
this.$axios
.posts(
@ -1186,9 +1265,12 @@ export default {
});
},
handleCreate() {
this.$nextTick(() => {
// this.$nextTick(() => {
// this.$refs["formCount"].resetFields();
// });
if (this.$refs["formCount"] !== undefined) {
this.$refs["formCount"].resetFields();
});
}
this.formTitle = "报表统计";
this.isEdit = false;
this.form = {};
@ -1301,6 +1383,10 @@ export default {
.posts("/api/settleaccount/Job/list", this.listQuery)
.then((response) => {
this.list = response;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => {
//
this.listLoading = false;

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

@ -88,6 +88,7 @@
@row-click="handleRowClick"
@selection-change="handleSelectionChange"
@filter-change="filterChange"
@cell-dblclick="dblhandleCurrentChange"
>
<el-table-column type="selection" width="44px"></el-table-column>
<el-table-column
@ -106,6 +107,39 @@
</template>
</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
prop="stateName"
label="状态(单击箭头过滤)"
@ -639,11 +673,7 @@ export default {
prop: "createdAt",
width: 150,
});
tempsTabs.push({
label: "说明",
prop: "remark",
width: 350,
});
tempsTabs.push({
label: "审批状态",
prop: "fileName",
@ -653,6 +683,60 @@ export default {
},
},
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) {
const { prop, order } = data;
if (!prop || !order) {
@ -688,7 +772,7 @@ export default {
//
handleConfirm(row) {
this.isEdit = false;
this.isTaskSuccess=false;
this.isTaskSuccess = false;
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
@ -697,22 +781,21 @@ export default {
return;
} else {
var getbillNum = "";
var getTaskState="";
var getTaskState = "";
//
this.multipleSelection.forEach((element) => {
let state = element.fileName;
if (state != "" && state != "已确认") {
this.isEdit = true;
getbillNum += state + ",";
}
else if(element.stateName != "Succeeded"){
this.isTaskSuccess=true;
getTaskState+=element.taskId;
} else if (element.stateName != "Succeeded") {
this.isTaskSuccess = true;
getTaskState += element.taskId;
}
});
}
//
if(this.isTaskSuccess == true){
if (this.isTaskSuccess == true) {
this.$message({
message:
"有未成功的任务,不能单击确认!:" +
@ -777,7 +860,7 @@ export default {
//
handleCreateBills(row) {
this.isEdit = false;
this.isTaskSuccess=false;
this.isTaskSuccess = false;
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
@ -786,21 +869,20 @@ export default {
return;
} else {
var getbillNum = "";
var getTaskState="";
var getTaskState = "";
//
this.multipleSelection.forEach((element) => {
let state = element.fileName;
if (state != "" && state != "已确认") {
this.isEdit = true;
getbillNum += state + ",";
}
else if(element.stateName != "Succeeded"){
this.isTaskSuccess=true;
getTaskState+=element.taskId;
} else if (element.stateName != "Succeeded") {
this.isTaskSuccess = true;
getTaskState += element.taskId;
}
});
}
if(this.isTaskSuccess == true){
if (this.isTaskSuccess == true) {
this.$message({
message:
"有未成功的任务,不能单击确认!:" +
@ -834,7 +916,9 @@ export default {
}
this.listBillQuery.guids = params;
this.listBillQuery.version = this.JobversionValue;
console.log("H平台备件出库单条件:" + JSON.stringify(this.listBillQuery));
console.log(
"H平台备件出库单条件:" + JSON.stringify(this.listBillQuery)
);
this.$confirm("是否确认出库" + myalert + "?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
@ -1029,11 +1113,11 @@ export default {
},
getdateValue(val) {
this.startTime = val;
this.getbalanceIndexData();
//this.getbalanceIndexData();
},
getdateVal(val) {
this.endTime = val;
this.getbalanceIndexData();
//this.getbalanceIndexData();
},
getCurrentMonthFirst() {
@ -1152,8 +1236,7 @@ export default {
}
console.log(
"H平台备件明细-导出条件:" +
JSON.stringify(this.listExportQuery)
"H平台备件明细-导出条件:" + JSON.stringify(this.listExportQuery)
);
this.$axios
.posts(
@ -1182,9 +1265,12 @@ export default {
});
},
handleCreate() {
this.$nextTick(() => {
// this.$nextTick(() => {
// this.$refs["formCount"].resetFields();
// });
if (this.$refs["formCount"] !== undefined) {
this.$refs["formCount"].resetFields();
});
}
this.formTitle = "报表统计";
this.isEdit = false;
this.form = {};
@ -1297,6 +1383,10 @@ export default {
.posts("/api/settleaccount/Job/list", this.listQuery)
.then((response) => {
this.list = response;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => {
//
this.listLoading = false;

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

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

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

@ -45,6 +45,7 @@
@sort-change="sortChange"
@selection-change="handleSelectionChange"
@row-click="handleRowClick"
@cell-dblclick="dblhandleCurrentChange"
>
<el-table-column
label="单据号"
@ -77,6 +78,39 @@
{{ scope.column.label }}
</template>
</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>
<div class="table-footer">
<!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"-->
@ -87,7 +121,7 @@
:limit.sync="listQuery.MaxResultCount"
@pagination="getList"
/>
<!-- 导入Excel组件 -->
<!-- 导入Excel组件 -->
<importExcel
ref="importexcel"
:show="showExcelImport"
@ -123,7 +157,7 @@ import { formatTimeToTimestamp } from "@/utils/index";
export default {
name: "WmsHQKBOutput",
components: { Pagination, Detail,importExcel },
components: { Pagination, Detail, importExcel },
directives: { permission },
data() {
return {
@ -204,11 +238,63 @@ export default {
//tempsTabs.push({ label: "", prop: "billNum", width: 150 });
tempsTabs.push({ label: "创建人", prop: "creator", 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;
},
},
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() {
//
this.showExcelImport = true;
@ -282,6 +368,10 @@ export default {
this.list = response.items;
//alert(JSON.stringify(response.Items))
this.totalCount = response.totalCount;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => {
//
this.listLoading = false;

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

@ -45,6 +45,7 @@
@sort-change="sortChange"
@selection-change="handleSelectionChange"
@row-click="handleRowClick"
@cell-dblclick="dblhandleCurrentChange"
>
<el-table-column
label="单据号"
@ -77,6 +78,39 @@
{{ scope.column.label }}
</template>
</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>
<div class="table-footer">
<!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"-->
@ -87,7 +121,7 @@
:limit.sync="listQuery.MaxResultCount"
@pagination="getList"
/>
<!-- 导入Excel组件 -->
<!-- 导入Excel组件 -->
<importExcel
ref="importexcel"
:show="showExcelImport"
@ -123,7 +157,7 @@ import { formatTimeToTimestamp } from "@/utils/index";
export default {
name: "HQM_CHECKOUT",
components: { Pagination, Detail,importExcel },
components: { Pagination, Detail, importExcel },
directives: { permission },
data() {
return {
@ -204,11 +238,63 @@ export default {
//tempsTabs.push({ label: "", prop: "billNum", width: 150 });
tempsTabs.push({ label: "创建人", prop: "creator", 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;
},
},
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() {
//
this.showExcelImport = true;
@ -277,11 +363,18 @@ export default {
this.listQuery.SkipCount = (this.page - 1) * 15;
}
this.$axios
.posts("/api/settleaccount/WmsHQMSharePartoutput/WmsSharePartList", this.listQuery)
.posts(
"/api/settleaccount/WmsHQMSharePartoutput/WmsSharePartList",
this.listQuery
)
.then((response) => {
this.list = response.items;
//alert(JSON.stringify(response.Items))
this.totalCount = response.totalCount;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => {
//
this.listLoading = false;

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

@ -45,6 +45,7 @@
@sort-change="sortChange"
@selection-change="handleSelectionChange"
@row-click="handleRowClick"
@cell-dblclick="dblhandleCurrentChange"
>
<el-table-column
label="单据号"
@ -77,6 +78,38 @@
{{ scope.column.label }}
</template>
</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>
<div class="table-footer">
<!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"-->
@ -87,7 +120,7 @@
:limit.sync="listQuery.MaxResultCount"
@pagination="getList"
/>
<!-- 导入Excel组件 -->
<!-- 导入Excel组件 -->
<importExcel
ref="importexcel"
:show="showExcelImport"
@ -123,7 +156,7 @@ import { formatTimeToTimestamp } from "@/utils/index";
export default {
name: "HQM_OUTORDER",
components: { Pagination, Detail,importExcel },
components: { Pagination, Detail, importExcel },
directives: { permission },
data() {
return {
@ -204,11 +237,63 @@ export default {
//tempsTabs.push({ label: "", prop: "billNum", width: 150 });
tempsTabs.push({ label: "创建人", prop: "creator", 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;
},
},
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() {
//
this.showExcelImport = true;
@ -277,11 +362,18 @@ export default {
this.listQuery.SkipCount = (this.page - 1) * 15;
}
this.$axios
.posts("/api/settleaccount/WMSHQMKanbanoutput/WmsHQMKanbanList", this.listQuery)
.posts(
"/api/settleaccount/WMSHQMKanbanoutput/WmsHQMKanbanList",
this.listQuery
)
.then((response) => {
this.list = response.items;
//alert(JSON.stringify(response.Items))
this.totalCount = response.totalCount;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => {
//
this.listLoading = false;

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

@ -88,6 +88,7 @@
@row-click="handleRowClick"
@selection-change="handleSelectionChange"
@filter-change="filterChange"
@cell-dblclick="dblhandleCurrentChange"
>
<el-table-column type="selection" width="44px"></el-table-column>
<el-table-column
@ -106,6 +107,39 @@
</template>
</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
prop="stateName"
label="状态(单击箭头过滤)"
@ -557,7 +591,7 @@ export default {
taskId: "",
name: "",
type: "",
stateName:""
stateName: "",
},
listBillQuery: {
version: "",
@ -641,11 +675,7 @@ export default {
prop: "createdAt",
width: 150,
});
tempsTabs.push({
label: "说明",
prop: "remark",
width: 350,
});
tempsTabs.push({
label: "审批状态",
prop: "fileName",
@ -655,6 +685,60 @@ export default {
},
},
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) {
const { prop, order } = data;
if (!prop || !order) {
@ -690,7 +774,7 @@ export default {
//
handleConfirm(row) {
this.isEdit = false;
this.isTaskSuccess=false;
this.isTaskSuccess = false;
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
@ -699,22 +783,21 @@ export default {
return;
} else {
var getbillNum = "";
var getTaskState="";
var getTaskState = "";
//
this.multipleSelection.forEach((element) => {
let state = element.fileName;
if (state != "" && state != "已确认") {
this.isEdit = true;
getbillNum += state + ",";
}
else if(element.stateName != "Succeeded"){
this.isTaskSuccess=true;
getTaskState+=element.taskId;
} else if (element.stateName != "Succeeded") {
this.isTaskSuccess = true;
getTaskState += element.taskId;
}
});
}
//
if(this.isTaskSuccess == true){
//
if (this.isTaskSuccess == true) {
this.$message({
message:
"有未成功的任务,不能单击确认!:" +
@ -732,7 +815,6 @@ export default {
});
return;
} else {
var params = [];
let myalert = ""; //使
if (row) {
@ -775,13 +857,12 @@ export default {
message: "已取消操作",
});
});
}
},
//
handleCreateBills(row) {
this.isEdit = false;
this.isTaskSuccess=false;
this.isTaskSuccess = false;
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
@ -790,22 +871,21 @@ export default {
return;
} else {
var getbillNum = "";
var getTaskState="";
var getTaskState = "";
//
this.multipleSelection.forEach((element) => {
let state = element.fileName;
if (state != "" && state != "已确认") {
this.isEdit = true;
getbillNum += state + ",";
}
else if(element.stateName != "Succeeded"){
this.isTaskSuccess=true;
getTaskState+=element.taskId;
} else if (element.stateName != "Succeeded") {
this.isTaskSuccess = true;
getTaskState += element.taskId;
}
});
}
//
if(this.isTaskSuccess == true){
if (this.isTaskSuccess == true) {
this.$message({
message:
"有未成功的任务,不能单击确认!:" +
@ -1034,11 +1114,11 @@ export default {
},
getdateValue(val) {
this.startTime = val;
this.getbalanceIndexData();
//this.getbalanceIndexData();
},
getdateVal(val) {
this.endTime = val;
this.getbalanceIndexData();
//this.getbalanceIndexData();
},
getCurrentMonthFirst() {
@ -1157,8 +1237,7 @@ export default {
}
console.log(
"M平台核对明细-导出条件:" +
JSON.stringify(this.listExportQuery)
"M平台核对明细-导出条件:" + JSON.stringify(this.listExportQuery)
);
this.$axios
.posts(
@ -1302,6 +1381,10 @@ export default {
.posts("/api/settleaccount/Job/list", this.listQuery)
.then((response) => {
this.list = response;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => {
//
this.listLoading = false;

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

@ -88,6 +88,7 @@
@row-click="handleRowClick"
@selection-change="handleSelectionChange"
@filter-change="filterChange"
@cell-dblclick="dblhandleCurrentChange"
>
<el-table-column type="selection" width="44px"></el-table-column>
<el-table-column
@ -106,6 +107,39 @@
</template>
</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
prop="stateName"
label="状态(单击箭头过滤)"
@ -639,11 +673,7 @@ export default {
prop: "createdAt",
width: 150,
});
tempsTabs.push({
label: "说明",
prop: "remark",
width: 350,
});
tempsTabs.push({
label: "审批状态",
prop: "fileName",
@ -653,6 +683,60 @@ export default {
},
},
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) {
const { prop, order } = data;
if (!prop || !order) {
@ -688,7 +772,7 @@ export default {
//
handleConfirm(row) {
this.isEdit = false;
this.isTaskSuccess=false;
this.isTaskSuccess = false;
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
@ -697,22 +781,21 @@ export default {
return;
} else {
var getbillNum = "";
var getTaskState="";
var getTaskState = "";
//
this.multipleSelection.forEach((element) => {
let state = element.fileName;
if (state != "" && state != "已确认") {
this.isEdit = true;
getbillNum += state + ",";
}
else if(element.stateName != "Succeeded"){
this.isTaskSuccess=true;
getTaskState+=element.taskId;
} else if (element.stateName != "Succeeded") {
this.isTaskSuccess = true;
getTaskState += element.taskId;
}
});
}
//
if(this.isTaskSuccess == true){
if (this.isTaskSuccess == true) {
this.$message({
message:
"有未成功的任务,不能单击确认!:" +
@ -777,7 +860,7 @@ export default {
//
handleCreateBills(row) {
this.isEdit = false;
this.isTaskSuccess=false;
this.isTaskSuccess = false;
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
@ -786,22 +869,21 @@ export default {
return;
} else {
var getbillNum = "";
var getTaskState="";
var getTaskState = "";
//
this.multipleSelection.forEach((element) => {
let state = element.fileName;
if (state != "" && state != "已确认") {
this.isEdit = true;
getbillNum += state + ",";
}
else if(element.stateName != "Succeeded"){
this.isTaskSuccess=true;
getTaskState+=element.taskId;
} else if (element.stateName != "Succeeded") {
this.isTaskSuccess = true;
getTaskState += element.taskId;
}
});
}
//
if(this.isTaskSuccess == true){
if (this.isTaskSuccess == true) {
this.$message({
message:
"有未成功的任务,不能单击确认!:" +
@ -1030,11 +1112,11 @@ export default {
},
getdateValue(val) {
this.startTime = val;
this.getbalanceIndexData();
//this.getbalanceIndexData();
},
getdateVal(val) {
this.endTime = val;
this.getbalanceIndexData();
//this.getbalanceIndexData();
},
getCurrentMonthFirst() {
@ -1153,8 +1235,7 @@ export default {
}
console.log(
"M平台备件明细-导出条件:" +
JSON.stringify(this.listExportQuery)
"M平台备件明细-导出条件:" + JSON.stringify(this.listExportQuery)
);
this.$axios
.posts(
@ -1183,9 +1264,12 @@ export default {
});
},
handleCreate() {
this.$nextTick(() => {
// this.$nextTick(() => {
// this.$refs["formCount"].resetFields();
// });
if (this.$refs["formCount"] !== undefined) {
this.$refs["formCount"].resetFields();
});
}
this.formTitle = "报表统计";
this.isEdit = false;
this.form = {};
@ -1298,6 +1382,10 @@ export default {
.posts("/api/settleaccount/Job/list", this.listQuery)
.then((response) => {
this.list = response;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => {
//
this.listLoading = false;

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

@ -45,6 +45,7 @@
@sort-change="sortChange"
@selection-change="handleSelectionChange"
@row-click="handleRowClick"
@cell-dblclick="dblhandleCurrentChange"
>
<el-table-column
label="单据号"
@ -77,6 +78,39 @@
{{ scope.column.label }}
</template>
</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>
<div class="table-footer">
<!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"-->
@ -87,7 +121,7 @@
:limit.sync="listQuery.MaxResultCount"
@pagination="getList"
/>
<!-- 导入Excel组件 -->
<!-- 导入Excel组件 -->
<importExcel
ref="importexcel"
:show="showExcelImport"
@ -123,7 +157,7 @@ import { formatTimeToTimestamp } from "@/utils/index";
export default {
name: "HQY_CHECKOUT",
components: { Pagination, Detail,importExcel },
components: { Pagination, Detail, importExcel },
directives: { permission },
data() {
return {
@ -204,11 +238,63 @@ export default {
//tempsTabs.push({ label: "", prop: "billNum", width: 150 });
tempsTabs.push({ label: "创建人", prop: "creator", 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;
},
},
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() {
//
this.showExcelImport = true;
@ -277,11 +363,18 @@ export default {
this.listQuery.SkipCount = (this.page - 1) * 15;
}
this.$axios
.posts("/api/settleaccount/WmsHQHSharePartoutput/WmsSharePartList", this.listQuery)
.posts(
"/api/settleaccount/WmsHQHSharePartoutput/WmsSharePartList",
this.listQuery
)
.then((response) => {
this.list = response.items;
//alert(JSON.stringify(response.Items))
this.totalCount = response.totalCount;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => {
//
this.listLoading = false;

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

@ -45,6 +45,7 @@
@sort-change="sortChange"
@selection-change="handleSelectionChange"
@row-click="handleRowClick"
@cell-dblclick="dblhandleCurrentChange"
>
<el-table-column
label="单据号"
@ -77,6 +78,39 @@
{{ scope.column.label }}
</template>
</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>
<div class="table-footer">
<!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"-->
@ -87,7 +121,7 @@
:limit.sync="listQuery.MaxResultCount"
@pagination="getList"
/>
<!-- 导入Excel组件 -->
<!-- 导入Excel组件 -->
<importExcel
ref="importexcel"
:show="showExcelImport"
@ -123,7 +157,7 @@ import { formatTimeToTimestamp } from "@/utils/index";
export default {
name: "HQY_OUTORDER",
components: { Pagination, Detail,importExcel },
components: { Pagination, Detail, importExcel },
directives: { permission },
data() {
return {
@ -204,11 +238,63 @@ export default {
//tempsTabs.push({ label: "", prop: "billNum", width: 150 });
tempsTabs.push({ label: "创建人", prop: "creator", 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;
},
},
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() {
//
this.showExcelImport = true;
@ -277,11 +363,18 @@ export default {
this.listQuery.SkipCount = (this.page - 1) * 15;
}
this.$axios
.posts("/api/settleaccount/WmsHQCaroutput/WmsSharePartList", this.listQuery)
.posts(
"/api/settleaccount/WmsHQCaroutput/WmsSharePartList",
this.listQuery
)
.then((response) => {
this.list = response.items;
//alert(JSON.stringify(response.Items))
this.totalCount = response.totalCount;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => {
//
this.listLoading = false;

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

@ -88,6 +88,7 @@
@row-click="handleRowClick"
@selection-change="handleSelectionChange"
@filter-change="filterChange"
@cell-dblclick="dblhandleCurrentChange"
>
<el-table-column type="selection" width="44px"></el-table-column>
<el-table-column
@ -106,6 +107,39 @@
</template>
</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
prop="stateName"
label="状态(单击箭头过滤)"
@ -557,7 +591,7 @@ export default {
taskId: "",
name: "",
type: "",
stateName:""
stateName: "",
},
listBillQuery: {
version: "",
@ -640,11 +674,7 @@ export default {
prop: "createdAt",
width: 150,
});
tempsTabs.push({
label: "说明",
prop: "remark",
width: 350,
});
tempsTabs.push({
label: "审批状态",
prop: "fileName",
@ -654,6 +684,60 @@ export default {
},
},
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) {
const { prop, order } = data;
if (!prop || !order) {
@ -689,7 +773,7 @@ export default {
//
handleConfirm(row) {
this.isEdit = false;
this.isTaskSuccess=false;
this.isTaskSuccess = false;
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
@ -698,23 +782,21 @@ export default {
return;
} else {
var getbillNum = "";
var getTaskState="";
var getTaskState = "";
//
this.multipleSelection.forEach((element) => {
let state = element.fileName;
if (state != "" && state != "已确认")
{
if (state != "" && state != "已确认") {
this.isEdit = true;
getbillNum += state + ",";
}
else if(element.stateName != "Succeeded"){
this.isTaskSuccess=true;
getTaskState+=element.taskId;
} else if (element.stateName != "Succeeded") {
this.isTaskSuccess = true;
getTaskState += element.taskId;
}
});
}
//
if(this.isTaskSuccess == true){
//
if (this.isTaskSuccess == true) {
this.$message({
message:
"有未成功的任务,不能单击确认!:" +
@ -779,7 +861,7 @@ export default {
//
handleCreateBills(row) {
this.isEdit = false;
this.isTaskSuccess=false;
this.isTaskSuccess = false;
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
@ -788,22 +870,21 @@ export default {
return;
} else {
var getbillNum = "";
var getTaskState="";
var getTaskState = "";
//
this.multipleSelection.forEach((element) => {
let state = element.fileName;
if (state != "" && state != "已确认") {
this.isEdit = true;
getbillNum += state + ",";
}
else if(element.stateName != "Succeeded"){
this.isTaskSuccess=true;
getTaskState+=element.taskId;
} else if (element.stateName != "Succeeded") {
this.isTaskSuccess = true;
getTaskState += element.taskId;
}
});
}
//
if(this.isTaskSuccess == true){
if (this.isTaskSuccess == true) {
this.$message({
message:
"有未成功的任务,不能单击确认!:" +
@ -837,7 +918,9 @@ export default {
}
this.listBillQuery.guids = params;
this.listBillQuery.version = this.JobversionValue;
console.log("一汽轿车出库单条件:" + JSON.stringify(this.listBillQuery));
console.log(
"一汽轿车出库单条件:" + JSON.stringify(this.listBillQuery)
);
this.$confirm("是否确认出库" + myalert + "?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
@ -1032,11 +1115,11 @@ export default {
},
getdateValue(val) {
this.startTime = val;
this.getbalanceIndexData();
//this.getbalanceIndexData();
},
getdateVal(val) {
this.endTime = val;
this.getbalanceIndexData();
//this.getbalanceIndexData();
},
getCurrentMonthFirst() {
@ -1155,8 +1238,7 @@ export default {
}
console.log(
"一汽轿车核对明细-导出条件:" +
JSON.stringify(this.listExportQuery)
"一汽轿车核对明细-导出条件:" + JSON.stringify(this.listExportQuery)
);
this.$axios
.posts(
@ -1185,9 +1267,12 @@ export default {
});
},
handleCreate() {
this.$nextTick(() => {
// this.$nextTick(() => {
// this.$refs["formCount"].resetFields();
// });
if (this.$refs["formCount"] !== undefined) {
this.$refs["formCount"].resetFields();
});
}
this.formTitle = "报表统计";
this.isEdit = false;
this.form = {};
@ -1300,6 +1385,10 @@ export default {
.posts("/api/settleaccount/Job/list", this.listQuery)
.then((response) => {
this.list = response;
//
this.list.forEach((element) => {
element["isEditCell"] = false;
});
setTimeout(() => {
//
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.version = this.JobversionValue;
console.log("一汽轿车出库单条件:" + JSON.stringify(this.listBillQuery));
console.log(
"一汽轿车出库单条件:" + JSON.stringify(this.listBillQuery)
);
this.$confirm("是否确认出库" + myalert + "?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
@ -998,11 +1000,11 @@ export default {
},
getdateValue(val) {
this.startTime = val;
this.getbalanceIndexData();
//this.getbalanceIndexData();
},
getdateVal(val) {
this.endTime = val;
this.getbalanceIndexData();
//this.getbalanceIndexData();
},
getCurrentMonthFirst() {
@ -1151,9 +1153,12 @@ export default {
});
},
handleCreate() {
this.$nextTick(() => {
// this.$nextTick(() => {
// this.$refs["formCount"].resetFields();
// });
if (this.$refs["formCount"] !== undefined) {
this.$refs["formCount"].resetFields();
});
}
this.formTitle = "报表统计";
this.isEdit = false;
this.form = {};
@ -1263,7 +1268,10 @@ export default {
this.listQuery.name = "一汽轿车平台备件核对明细";
this.listQuery.type = this.JobversionValue;
this.$axios
.posts("/api/settleaccount/ReportMakeService/HQHSettledDetailDiffExportService", this.listQuery)
.posts(
"/api/settleaccount/ReportMakeService/HQHSettledDetailDiffExportService",
this.listQuery
)
.then((response) => {
this.list = response;
setTimeout(() => {

Loading…
Cancel
Save