Browse Source

修改传参 accountDate

branch_ccpg_220107
佐 张 3 years ago
parent
commit
c4aa40737d
  1. 148
      vue/src/views/ux/vw/dataInput/hq_f_outorder/detail.vue
  2. 148
      vue/src/views/ux/vw/dataInput/hq_f_outorder_chickout/detail.vue
  3. 148
      vue/src/views/ux/vw/dataInput/hq_h_checkout/detail.vue
  4. 149
      vue/src/views/ux/vw/dataInput/hq_h_outorder/detail.vue
  5. 148
      vue/src/views/ux/vw/dataInput/hq_m_checkout/detail.vue
  6. 148
      vue/src/views/ux/vw/dataInput/hq_m_outorder/detail.vue
  7. 169
      vue/src/views/ux/vw/dataInput/hq_y_outorder/detail.vue

148
vue/src/views/ux/vw/dataInput/hq_f_outorder/detail.vue

@ -21,8 +21,8 @@
type="success" type="success"
icon="el-icon-check" icon="el-icon-check"
size="mini" size="mini"
@click="handleCreateBills()" @click="print()"
>确认出库单(支持批量)</el-button >确认出库单</el-button
> >
<el-button <el-button
class="filter-item" class="filter-item"
@ -104,6 +104,45 @@
@pagination="getList" @pagination="getList"
/> />
</div> </div>
<div>
<el-dialog
:append-to-body="true"
:visible.sync="dialogFormVisible"
:title="formTitle"
width="700px"
>
<el-form
ref="form"
:inline="true"
:model="form"
:rules="rules"
size="small"
label-width="120px"
>
<el-form-item label="日期" prop="accountDate">
<el-date-picker
v-model="accountDatelist.accountDate"
type="date"
placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="text" @click="dialogFormVisible = false"
>取消</el-button
>
<el-button
v-loading="formLoading"
type="primary"
@click="handleCreateBills()"
>确认</el-button
>
</div>
</el-dialog>
</div>
</div> </div>
</template> </template>
@ -180,6 +219,7 @@ export default {
version: "", version: "",
guids: "", guids: "",
billNum: "", billNum: "",
accountDate:""
}, },
page: 1, page: 1,
JobversionValue: "", JobversionValue: "",
@ -191,6 +231,9 @@ export default {
showExcelImport: false, showExcelImport: false,
tableHeight: document.documentElement.clientHeight - 230, tableHeight: document.documentElement.clientHeight - 230,
isEdit: false, isEdit: false,
accountDatelist:{
accountDate:""
}
}; };
}, },
mounted() { mounted() {
@ -322,99 +365,44 @@ export default {
}); });
}); });
}, },
print() {
this.dialogFormVisible = true;
},
// //
handleCreateBills(row) { handleCreateBills(row) {
if (this.multipleSelection.length == 0) { this.dialogFormVisible = true;
this.listLoading = true; this.listLoading = true;
this.listOutPutQuery.guids = []; this.listOutPutQuery.guids = [];
this.listOutPutQuery.version = this.customerInfo.version; this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId; this.listOutPutQuery.billNum = this.customerInfo.parentId;
if (this.accountDatelist != "") {
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
}
//this.listOutPutQuery.accountDate = this.accountDatelist;
console.log( console.log(
"未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery) "未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery)
); );
this.$confirm("是否全部确认出库?", "提示", {
confirmButtonText: "确定", this.$axios
cancelButtonText: "取消", .posts(
type: "warning", "/api/settleaccount/wmsHQFSharePartoutput/WmsSharePartOutPut-Pass",
}) this.listOutPutQuery
.then(() => { )
this.$axios .then((response) => {
.posts( const index = this.list.indexOf(row);
"/api/settleaccount/WMSHQFKanbanoutput/WmsHQFKanbanOutPut-Pass", this.$notify({
this.listOutPutQuery title: "成功",
) message: "生成成功",
.then((response) => { type: "success",
const index = this.list.indexOf(row); duration: 2000,
this.$notify({
title: "成功",
message: "生成成功",
type: "success",
duration: 2000,
});
this.getList();
this.listLoading = false;
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消操作",
}); });
this.getList();
this.listLoading = false; this.listLoading = false;
});
} else {
this.listLoading = true;
var params = [];
let myalert = ""; //使
if (row) {
//
params.push(row.id);
myalert = row.name;
} else {
//
this.multipleSelection.forEach((element) => {
let id = element.id;
params.push(id);
});
myalert = "选中项";
}
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.guids = params;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
console.log(
"部分选择时确认出库条件:" + JSON.stringify(this.listOutPutQuery)
);
this.$confirm("是否确认将选中的出库" + myalert + "?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.$axios
.posts(
"/api/settleaccount/WMSHQFKanbanoutput/WmsHQFKanbanOutPut-Pass",
this.listOutPutQuery
)
.then((response) => {
const index = this.list.indexOf(row);
this.$notify({
title: "成功",
message: "生成成功",
type: "success",
duration: 2000,
});
this.getList();
this.listLoading = false;
});
}) })
.catch(() => { .catch(() => {
this.$message({
type: "info",
message: "已取消操作",
});
this.listLoading = false; this.listLoading = false;
}); });
}
}, },
/** 刷新列表 */ /** 刷新列表 */
handleHandle(data) { handleHandle(data) {

148
vue/src/views/ux/vw/dataInput/hq_f_outorder_chickout/detail.vue

@ -21,8 +21,8 @@
type="success" type="success"
icon="el-icon-check" icon="el-icon-check"
size="mini" size="mini"
@click="handleCreateBills()" @click="print()"
>确认出库单(支持批量)</el-button >确认出库单</el-button
> >
<el-button <el-button
class="filter-item" class="filter-item"
@ -104,6 +104,45 @@
@pagination="getList" @pagination="getList"
/> />
</div> </div>
<div>
<el-dialog
:append-to-body="true"
:visible.sync="dialogFormVisible"
:title="formTitle"
width="700px"
>
<el-form
ref="form"
:inline="true"
:model="form"
:rules="rules"
size="small"
label-width="120px"
>
<el-form-item label="日期" prop="accountDate">
<el-date-picker
v-model="accountDatelist.accountDate"
type="date"
placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="text" @click="dialogFormVisible = false"
>取消</el-button
>
<el-button
v-loading="formLoading"
type="primary"
@click="handleCreateBills()"
>确认</el-button
>
</div>
</el-dialog>
</div>
</div> </div>
</template> </template>
@ -180,6 +219,7 @@ export default {
version: "", version: "",
guids: "", guids: "",
billNum: "", billNum: "",
accountDate:""
}, },
page: 1, page: 1,
JobversionValue: "", JobversionValue: "",
@ -191,6 +231,9 @@ export default {
showExcelImport: false, showExcelImport: false,
tableHeight: document.documentElement.clientHeight - 230, tableHeight: document.documentElement.clientHeight - 230,
isEdit: false, isEdit: false,
accountDatelist:{
accountDate:""
}
}; };
}, },
mounted() { mounted() {
@ -321,100 +364,45 @@ export default {
message: "已取消操作", message: "已取消操作",
}); });
}); });
},
print() {
this.dialogFormVisible = true;
}, },
// //
handleCreateBills(row) { handleCreateBills(row) {
if (this.multipleSelection.length == 0) { this.dialogFormVisible = true;
this.listLoading = true; this.listLoading = true;
this.listOutPutQuery.guids = []; this.listOutPutQuery.guids = [];
this.listOutPutQuery.version = this.customerInfo.version; this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId; this.listOutPutQuery.billNum = this.customerInfo.parentId;
if (this.accountDatelist != "") {
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
}
//this.listOutPutQuery.accountDate = this.accountDatelist;
console.log( console.log(
"未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery) "未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery)
); );
this.$confirm("是否全部确认出库?", "提示", {
confirmButtonText: "确定", this.$axios
cancelButtonText: "取消", .posts(
type: "warning", "/api/settleaccount/WMSHQFKanbanoutput/WmsHQFKanbanOutPut-Pass",
}) this.listOutPutQuery
.then(() => { )
this.$axios .then((response) => {
.posts( const index = this.list.indexOf(row);
"/api/settleaccount/wmsHQFSharePartoutput/WmsSharePartOutPut-Pass", this.$notify({
this.listOutPutQuery title: "成功",
) message: "生成成功",
.then((response) => { type: "success",
const index = this.list.indexOf(row); duration: 2000,
this.$notify({
title: "成功",
message: "生成成功",
type: "success",
duration: 2000,
});
this.getList();
this.listLoading = false;
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消操作",
}); });
this.getList();
this.listLoading = false; this.listLoading = false;
});
} else {
this.listLoading = true;
var params = [];
let myalert = ""; //使
if (row) {
//
params.push(row.id);
myalert = row.name;
} else {
//
this.multipleSelection.forEach((element) => {
let id = element.id;
params.push(id);
});
myalert = "选中项";
}
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.guids = params;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
console.log(
"部分选择时确认出库条件:" + JSON.stringify(this.listOutPutQuery)
);
this.$confirm("是否确认将选中的出库" + myalert + "?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.$axios
.posts(
"/api/settleaccount/wmsHQFSharePartoutput/WmsSharePartOutPut-Pass",
this.listOutPutQuery
)
.then((response) => {
const index = this.list.indexOf(row);
this.$notify({
title: "成功",
message: "生成成功",
type: "success",
duration: 2000,
});
this.getList();
this.listLoading = false;
});
}) })
.catch(() => { .catch(() => {
this.$message({
type: "info",
message: "已取消操作",
});
this.listLoading = false; this.listLoading = false;
}); });
}
}, },
/** 刷新列表 */ /** 刷新列表 */
handleHandle(data) { handleHandle(data) {

148
vue/src/views/ux/vw/dataInput/hq_h_checkout/detail.vue

@ -21,8 +21,8 @@
type="success" type="success"
icon="el-icon-check" icon="el-icon-check"
size="mini" size="mini"
@click="handleCreateBills()" @click="print()"
>确认出库单(支持批量)</el-button >确认出库单</el-button
> >
<el-button <el-button
class="filter-item" class="filter-item"
@ -104,6 +104,45 @@
@pagination="getList" @pagination="getList"
/> />
</div> </div>
<div>
<el-dialog
:append-to-body="true"
:visible.sync="dialogFormVisible"
:title="formTitle"
width="700px"
>
<el-form
ref="form"
:inline="true"
:model="form"
:rules="rules"
size="small"
label-width="120px"
>
<el-form-item label="日期" prop="accountDate">
<el-date-picker
v-model="accountDatelist.accountDate"
type="date"
placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="text" @click="dialogFormVisible = false"
>取消</el-button
>
<el-button
v-loading="formLoading"
type="primary"
@click="handleCreateBills()"
>确认</el-button
>
</div>
</el-dialog>
</div>
</div> </div>
</template> </template>
@ -180,6 +219,7 @@ export default {
version: "", version: "",
guids: "", guids: "",
billNum: "", billNum: "",
accountDate:""
}, },
page: 1, page: 1,
JobversionValue: "", JobversionValue: "",
@ -191,6 +231,9 @@ export default {
showExcelImport: false, showExcelImport: false,
tableHeight: document.documentElement.clientHeight - 230, tableHeight: document.documentElement.clientHeight - 230,
isEdit: false, isEdit: false,
accountDatelist:{
accountDate:""
}
}; };
}, },
mounted() { mounted() {
@ -322,99 +365,44 @@ export default {
}); });
}); });
}, },
print() {
this.dialogFormVisible = true;
},
// //
handleCreateBills(row) { handleCreateBills(row) {
if (this.multipleSelection.length == 0) { this.dialogFormVisible = true;
this.listLoading = true; this.listLoading = true;
this.listOutPutQuery.guids = []; this.listOutPutQuery.guids = [];
this.listOutPutQuery.version = this.customerInfo.version; this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId; this.listOutPutQuery.billNum = this.customerInfo.parentId;
if (this.accountDatelist != "") {
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
}
//this.listOutPutQuery.accountDate = this.accountDatelist;
console.log( console.log(
"未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery) "未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery)
); );
this.$confirm("是否全部确认出库?", "提示", {
confirmButtonText: "确定", this.$axios
cancelButtonText: "取消", .posts(
type: "warning", "/api/settleaccount/WmsHQHSharePartoutput/WmsSharePartOutPut-Pass",
}) this.listOutPutQuery
.then(() => { )
this.$axios .then((response) => {
.posts( const index = this.list.indexOf(row);
"/api/settleaccount/WmsHQHSharePartoutput/WmsSharePartOutPut-Pass", this.$notify({
this.listOutPutQuery title: "成功",
) message: "生成成功",
.then((response) => { type: "success",
const index = this.list.indexOf(row); duration: 2000,
this.$notify({
title: "成功",
message: "生成成功",
type: "success",
duration: 2000,
});
this.getList();
this.listLoading = false;
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消操作",
}); });
this.getList();
this.listLoading = false; this.listLoading = false;
});
} else {
this.listLoading = true;
var params = [];
let myalert = ""; //使
if (row) {
//
params.push(row.id);
myalert = row.name;
} else {
//
this.multipleSelection.forEach((element) => {
let id = element.id;
params.push(id);
});
myalert = "选中项";
}
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.guids = params;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
console.log(
"部分选择时确认出库条件:" + JSON.stringify(this.listOutPutQuery)
);
this.$confirm("是否确认将选中的出库" + myalert + "?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.$axios
.posts(
"/api/settleaccount/WmsHQHSharePartoutput/WmsSharePartOutPut-Pass",
this.listOutPutQuery
)
.then((response) => {
const index = this.list.indexOf(row);
this.$notify({
title: "成功",
message: "生成成功",
type: "success",
duration: 2000,
});
this.getList();
this.listLoading = false;
});
}) })
.catch(() => { .catch(() => {
this.$message({
type: "info",
message: "已取消操作",
});
this.listLoading = false; this.listLoading = false;
}); });
}
}, },
/** 刷新列表 */ /** 刷新列表 */
handleHandle(data) { handleHandle(data) {

149
vue/src/views/ux/vw/dataInput/hq_h_outorder/detail.vue

@ -21,8 +21,8 @@
type="success" type="success"
icon="el-icon-check" icon="el-icon-check"
size="mini" size="mini"
@click="handleCreateBills()" @click="print()"
>确认出库单(支持批量)</el-button >确认出库单</el-button
> >
<el-button <el-button
class="filter-item" class="filter-item"
@ -104,6 +104,45 @@
@pagination="getList" @pagination="getList"
/> />
</div> </div>
<div>
<el-dialog
:append-to-body="true"
:visible.sync="dialogFormVisible"
:title="formTitle"
width="700px"
>
<el-form
ref="form"
:inline="true"
:model="form"
:rules="rules"
size="small"
label-width="120px"
>
<el-form-item label="日期" prop="accountDate">
<el-date-picker
v-model="accountDatelist.accountDate"
type="date"
placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="text" @click="dialogFormVisible = false"
>取消</el-button
>
<el-button
v-loading="formLoading"
type="primary"
@click="handleCreateBills()"
>确认</el-button
>
</div>
</el-dialog>
</div>
</div> </div>
</template> </template>
@ -139,6 +178,7 @@ export default {
customerInfo: { customerInfo: {
parentId: "", parentId: "",
version: "", version: "",
accountDate: "",
}, },
form: { form: {
dicDetailID: "", dicDetailID: "",
@ -180,6 +220,7 @@ export default {
version: "", version: "",
guids: "", guids: "",
billNum: "", billNum: "",
accountDate: "",
}, },
page: 1, page: 1,
JobversionValue: "", JobversionValue: "",
@ -191,6 +232,9 @@ export default {
showExcelImport: false, showExcelImport: false,
tableHeight: document.documentElement.clientHeight - 230, tableHeight: document.documentElement.clientHeight - 230,
isEdit: false, isEdit: false,
accountDatelist:{
accountDate:""
}
}; };
}, },
mounted() { mounted() {
@ -322,99 +366,44 @@ export default {
}); });
}); });
}, },
print() {
this.dialogFormVisible = true;
},
// //
handleCreateBills(row) { handleCreateBills(row) {
if (this.multipleSelection.length == 0) { this.dialogFormVisible = true;
this.listLoading = true; this.listLoading = true;
this.listOutPutQuery.guids = []; this.listOutPutQuery.guids = [];
this.listOutPutQuery.version = this.customerInfo.version; this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId; this.listOutPutQuery.billNum = this.customerInfo.parentId;
if (this.accountDatelist != "") {
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
}
//this.listOutPutQuery.accountDate = this.accountDatelist;
console.log( console.log(
"未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery) "未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery)
); );
this.$confirm("是否全部确认出库?", "提示", {
confirmButtonText: "确定", this.$axios
cancelButtonText: "取消", .posts(
type: "warning", "/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanOutPut-Pass",
}) this.listOutPutQuery
.then(() => { )
this.$axios .then((response) => {
.posts( const index = this.list.indexOf(row);
"/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanOutPut-Pass", this.$notify({
this.listOutPutQuery title: "成功",
) message: "生成成功",
.then((response) => { type: "success",
const index = this.list.indexOf(row); duration: 2000,
this.$notify({
title: "成功",
message: "生成成功",
type: "success",
duration: 2000,
});
this.getList();
this.listLoading = false;
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消操作",
}); });
this.getList();
this.listLoading = false; this.listLoading = false;
});
} else {
this.listLoading = true;
var params = [];
let myalert = ""; //使
if (row) {
//
params.push(row.id);
myalert = row.name;
} else {
//
this.multipleSelection.forEach((element) => {
let id = element.id;
params.push(id);
});
myalert = "选中项";
}
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.guids = params;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
console.log(
"部分选择时确认出库条件:" + JSON.stringify(this.listOutPutQuery)
);
this.$confirm("是否确认将选中的出库" + myalert + "?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.$axios
.posts(
"/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanOutPut-Pass",
this.listOutPutQuery
)
.then((response) => {
const index = this.list.indexOf(row);
this.$notify({
title: "成功",
message: "生成成功",
type: "success",
duration: 2000,
});
this.getList();
this.listLoading = false;
});
}) })
.catch(() => { .catch(() => {
this.$message({
type: "info",
message: "已取消操作",
});
this.listLoading = false; this.listLoading = false;
}); });
}
}, },
/** 刷新列表 */ /** 刷新列表 */
handleHandle(data) { handleHandle(data) {

148
vue/src/views/ux/vw/dataInput/hq_m_checkout/detail.vue

@ -21,8 +21,8 @@
type="success" type="success"
icon="el-icon-check" icon="el-icon-check"
size="mini" size="mini"
@click="handleCreateBills()" @click="print()"
>确认出库单(支持批量)</el-button >确认出库单</el-button
> >
<el-button <el-button
class="filter-item" class="filter-item"
@ -104,6 +104,45 @@
@pagination="getList" @pagination="getList"
/> />
</div> </div>
<div>
<el-dialog
:append-to-body="true"
:visible.sync="dialogFormVisible"
:title="formTitle"
width="700px"
>
<el-form
ref="form"
:inline="true"
:model="form"
:rules="rules"
size="small"
label-width="120px"
>
<el-form-item label="日期" prop="accountDate">
<el-date-picker
v-model="accountDatelist.accountDate"
type="date"
placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="text" @click="dialogFormVisible = false"
>取消</el-button
>
<el-button
v-loading="formLoading"
type="primary"
@click="handleCreateBills()"
>确认</el-button
>
</div>
</el-dialog>
</div>
</div> </div>
</template> </template>
@ -180,6 +219,7 @@ export default {
version: "", version: "",
guids: "", guids: "",
billNum: "", billNum: "",
accountDate:""
}, },
page: 1, page: 1,
JobversionValue: "", JobversionValue: "",
@ -191,6 +231,9 @@ export default {
showExcelImport: false, showExcelImport: false,
tableHeight: document.documentElement.clientHeight - 230, tableHeight: document.documentElement.clientHeight - 230,
isEdit: false, isEdit: false,
accountDatelist:{
accountDate:""
}
}; };
}, },
mounted() { mounted() {
@ -321,100 +364,45 @@ export default {
message: "已取消操作", message: "已取消操作",
}); });
}); });
},
print() {
this.dialogFormVisible = true;
}, },
// //
handleCreateBills(row) { handleCreateBills(row) {
if (this.multipleSelection.length == 0) { this.dialogFormVisible = true;
this.listLoading = true; this.listLoading = true;
this.listOutPutQuery.guids = []; this.listOutPutQuery.guids = [];
this.listOutPutQuery.version = this.customerInfo.version; this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId; this.listOutPutQuery.billNum = this.customerInfo.parentId;
if (this.accountDatelist != "") {
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
}
//this.listOutPutQuery.accountDate = this.accountDatelist;
console.log( console.log(
"未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery) "未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery)
); );
this.$confirm("是否全部确认出库?", "提示", {
confirmButtonText: "确定", this.$axios
cancelButtonText: "取消", .posts(
type: "warning", "/api/settleaccount/WmsHQMSharePartoutput/WmsSharePartOutPut-Pass",
}) this.listOutPutQuery
.then(() => { )
this.$axios .then((response) => {
.posts( const index = this.list.indexOf(row);
"/api/settleaccount/WmsHQMSharePartoutput/WmsSharePartOutPut-Pass", this.$notify({
this.listOutPutQuery title: "成功",
) message: "生成成功",
.then((response) => { type: "success",
const index = this.list.indexOf(row); duration: 2000,
this.$notify({
title: "成功",
message: "生成成功",
type: "success",
duration: 2000,
});
this.getList();
this.listLoading = false;
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消操作",
}); });
this.getList();
this.listLoading = false; this.listLoading = false;
});
} else {
this.listLoading = true;
var params = [];
let myalert = ""; //使
if (row) {
//
params.push(row.id);
myalert = row.name;
} else {
//
this.multipleSelection.forEach((element) => {
let id = element.id;
params.push(id);
});
myalert = "选中项";
}
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.guids = params;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
console.log(
"部分选择时确认出库条件:" + JSON.stringify(this.listOutPutQuery)
);
this.$confirm("是否确认将选中的出库" + myalert + "?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.$axios
.posts(
"/api/settleaccount/WmsHQMSharePartoutput/WmsSharePartOutPut-Pass",
this.listOutPutQuery
)
.then((response) => {
const index = this.list.indexOf(row);
this.$notify({
title: "成功",
message: "生成成功",
type: "success",
duration: 2000,
});
this.getList();
this.listLoading = false;
});
}) })
.catch(() => { .catch(() => {
this.$message({
type: "info",
message: "已取消操作",
});
this.listLoading = false; this.listLoading = false;
}); });
}
}, },
/** 刷新列表 */ /** 刷新列表 */
handleHandle(data) { handleHandle(data) {

148
vue/src/views/ux/vw/dataInput/hq_m_outorder/detail.vue

@ -21,8 +21,8 @@
type="success" type="success"
icon="el-icon-check" icon="el-icon-check"
size="mini" size="mini"
@click="handleCreateBills()" @click="print()"
>确认出库单(支持批量)</el-button >确认出库单</el-button
> >
<el-button <el-button
class="filter-item" class="filter-item"
@ -104,6 +104,45 @@
@pagination="getList" @pagination="getList"
/> />
</div> </div>
<div>
<el-dialog
:append-to-body="true"
:visible.sync="dialogFormVisible"
:title="formTitle"
width="700px"
>
<el-form
ref="form"
:inline="true"
:model="form"
:rules="rules"
size="small"
label-width="120px"
>
<el-form-item label="日期" prop="accountDate">
<el-date-picker
v-model="accountDatelist.accountDate"
type="date"
placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="text" @click="dialogFormVisible = false"
>取消</el-button
>
<el-button
v-loading="formLoading"
type="primary"
@click="handleCreateBills()"
>确认</el-button
>
</div>
</el-dialog>
</div>
</div> </div>
</template> </template>
@ -180,6 +219,7 @@ export default {
version: "", version: "",
guids: "", guids: "",
billNum: "", billNum: "",
accountDate:""
}, },
page: 1, page: 1,
JobversionValue: "", JobversionValue: "",
@ -191,6 +231,9 @@ export default {
showExcelImport: false, showExcelImport: false,
tableHeight: document.documentElement.clientHeight - 230, tableHeight: document.documentElement.clientHeight - 230,
isEdit: false, isEdit: false,
accountDatelist:{
accountDate:""
}
}; };
}, },
mounted() { mounted() {
@ -322,99 +365,44 @@ export default {
}); });
}); });
}, },
print() {
this.dialogFormVisible = true;
},
// //
handleCreateBills(row) { handleCreateBills(row) {
if (this.multipleSelection.length == 0) { this.dialogFormVisible = true;
this.listLoading = true; this.listLoading = true;
this.listOutPutQuery.guids = []; this.listOutPutQuery.guids = [];
this.listOutPutQuery.version = this.customerInfo.version; this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId; this.listOutPutQuery.billNum = this.customerInfo.parentId;
if (this.accountDatelist != "") {
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
}
//this.listOutPutQuery.accountDate = this.accountDatelist;
console.log( console.log(
"未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery) "未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery)
); );
this.$confirm("是否全部确认出库?", "提示", {
confirmButtonText: "确定", this.$axios
cancelButtonText: "取消", .posts(
type: "warning", "/api/settleaccount/WMSHQMKanbanoutput/WmsHQMKanbanOutPut-Pass",
}) this.listOutPutQuery
.then(() => { )
this.$axios .then((response) => {
.posts( const index = this.list.indexOf(row);
"/api/settleaccount/WMSHQMKanbanoutput/WmsHQMKanbanOutPut-Pass", this.$notify({
this.listOutPutQuery title: "成功",
) message: "生成成功",
.then((response) => { type: "success",
const index = this.list.indexOf(row); duration: 2000,
this.$notify({
title: "成功",
message: "生成成功",
type: "success",
duration: 2000,
});
this.getList();
this.listLoading = false;
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消操作",
}); });
this.getList();
this.listLoading = false; this.listLoading = false;
});
} else {
this.listLoading = true;
var params = [];
let myalert = ""; //使
if (row) {
//
params.push(row.id);
myalert = row.name;
} else {
//
this.multipleSelection.forEach((element) => {
let id = element.id;
params.push(id);
});
myalert = "选中项";
}
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.guids = params;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
console.log(
"部分选择时确认出库条件:" + JSON.stringify(this.listOutPutQuery)
);
this.$confirm("是否确认将选中的出库" + myalert + "?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.$axios
.posts(
"/api/settleaccount/WMSHQMKanbanoutput/WmsHQMKanbanOutPut-Pass",
this.listOutPutQuery
)
.then((response) => {
const index = this.list.indexOf(row);
this.$notify({
title: "成功",
message: "生成成功",
type: "success",
duration: 2000,
});
this.getList();
this.listLoading = false;
});
}) })
.catch(() => { .catch(() => {
this.$message({
type: "info",
message: "已取消操作",
});
this.listLoading = false; this.listLoading = false;
}); });
}
}, },
/** 刷新列表 */ /** 刷新列表 */
handleHandle(data) { handleHandle(data) {

169
vue/src/views/ux/vw/dataInput/hq_y_outorder/detail.vue

@ -21,8 +21,8 @@
type="success" type="success"
icon="el-icon-check" icon="el-icon-check"
size="mini" size="mini"
@click="handleCreateBills()" @click="print()"
>确认出库单(支持批量)</el-button >确认出库单</el-button
> >
<el-button <el-button
class="filter-item" class="filter-item"
@ -104,6 +104,45 @@
@pagination="getList" @pagination="getList"
/> />
</div> </div>
<div>
<el-dialog
:append-to-body="true"
:visible.sync="dialogFormVisible"
:title="formTitle"
width="700px"
>
<el-form
ref="form"
:inline="true"
:model="form"
:rules="rules"
size="small"
label-width="120px"
>
<el-form-item label="日期" prop="accountDate">
<el-date-picker
v-model="accountDatelist.accountDate"
type="date"
placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="text" @click="dialogFormVisible = false"
>取消</el-button
>
<el-button
v-loading="formLoading"
type="primary"
@click="handleCreateBills()"
>确认</el-button
>
</div>
</el-dialog>
</div>
</div> </div>
</template> </template>
@ -180,6 +219,7 @@ export default {
version: "", version: "",
guids: "", guids: "",
billNum: "", billNum: "",
accountDate: "",
}, },
page: 1, page: 1,
JobversionValue: "", JobversionValue: "",
@ -191,6 +231,9 @@ export default {
showExcelImport: false, showExcelImport: false,
tableHeight: document.documentElement.clientHeight - 230, tableHeight: document.documentElement.clientHeight - 230,
isEdit: false, isEdit: false,
accountDatelist: {
accountDate: "",
},
}; };
}, },
mounted() { mounted() {
@ -322,99 +365,43 @@ export default {
}); });
}); });
}, },
print() {
this.dialogFormVisible = true;
},
// //
handleCreateBills(row) { handleCreateBills(row) {
if (this.multipleSelection.length == 0) { this.dialogFormVisible = true;
this.listLoading = true; this.listLoading = true;
this.listOutPutQuery.guids = []; this.listOutPutQuery.guids = [];
this.listOutPutQuery.version = this.customerInfo.version; this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId; this.listOutPutQuery.billNum = this.customerInfo.parentId;
console.log( if (this.accountDatelist != "") {
"未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery) this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
); }
this.$confirm("是否全部确认出库?", "提示", { //this.listOutPutQuery.accountDate = this.accountDatelist;
confirmButtonText: "确定", console.log(
cancelButtonText: "取消", "未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery)
type: "warning", );
})
.then(() => { this.$axios
this.$axios .posts(
.posts( "/api/settleaccount/WmsHQCaroutput/WmsSharePartOutPut-Pass",
"/api/settleaccount/WmsHQCaroutput/WmsSharePartOutPut-Pass", this.listOutPutQuery
this.listOutPutQuery )
) .then((response) => {
.then((response) => { const index = this.list.indexOf(row);
const index = this.list.indexOf(row); this.$notify({
this.$notify({ title: "成功",
title: "成功", message: "生成成功",
message: "生成成功", type: "success",
type: "success", duration: 2000,
duration: 2000,
});
this.getList();
this.listLoading = false;
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消操作",
});
this.listLoading = false;
});
} else {
this.listLoading = true;
var params = [];
let myalert = ""; //使
if (row) {
//
params.push(row.id);
myalert = row.name;
} else {
//
this.multipleSelection.forEach((element) => {
let id = element.id;
params.push(id);
}); });
myalert = "选中项"; this.getList();
} this.listLoading = false;
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.guids = params;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
console.log(
"部分选择时确认出库条件:" + JSON.stringify(this.listOutPutQuery)
);
this.$confirm("是否确认将选中的出库" + myalert + "?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}) })
.then(() => { .catch(() => {
this.$axios this.listLoading = false;
.posts( });
"/api/settleaccount/WmsHQCaroutput/WmsSharePartOutPut-Pass",
this.listOutPutQuery
)
.then((response) => {
const index = this.list.indexOf(row);
this.$notify({
title: "成功",
message: "生成成功",
type: "success",
duration: 2000,
});
this.getList();
this.listLoading = false;
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消操作",
});
this.listLoading = false;
});
}
}, },
/** 刷新列表 */ /** 刷新列表 */
handleHandle(data) { handleHandle(data) {

Loading…
Cancel
Save