<!doctype html>
|
<html>
|
<head>
|
<meta charset="utf-8"><meta http-equiv="Expires" content="0"><meta http-equiv="Pragma" content="no-cache"><meta http-equiv="Cache-control" content="no-cache"><meta http-equiv="Cache" content="no-cache">
|
<title>内部移仓修改</title>
|
|
<script type="text/javascript">
|
var pageVue = null;
|
function loadJsCss(callback) {
|
var jscss_urls = [];
|
window.top.initJsCss(document, jscss_urls, callback);
|
};
|
|
function initVue() {
|
new FormVue({
|
el: "#vbody",
|
data: {
|
dataname: "wm_movement",
|
table_dataname: "wm_movement_detail",
|
title: "内部移仓信息",
|
dataRequest: [
|
{
|
name: "wm_stock_type",
|
dataname: "wm_stock_type",
|
// filter: " table_name='agm_record'",
|
orderby: "name",
|
isnotoption: false, //true:不是选项
|
code:"code",//是下拉选项时设置
|
label:"name",//是下拉选项时设置
|
},
|
{
|
name: "wm_warehouse",
|
dataname: "wm_warehouse",
|
filter: "wm_warehouse.org_id='"+window.top.vue.userinfo.org.id+"'",
|
orderby: "name",
|
isnotoption: false, //true:不是选项
|
code:"code",//是下拉选项时设置
|
label:"name",//是下拉选项时设置
|
}
|
],
|
options_wm_warehouse: [],
|
|
formAttr: {
|
istitle: false,
|
title: "表单名称",
|
columnnumber: 2,
|
labelwidth: "120px",
|
labelposition: "left",//"left",// right//top
|
size: "mini",
|
border: "5px solid #c6c6c600"
|
},
|
formFields: [],
|
newformData: {
|
code: createCode("YC"),
|
doc_date: createDate(),
|
create_time: createDatetime(),
|
state_code: "Input",
|
state_name: "草稿",
|
account_id:window.top.vue.userinfo.currentactor.target_id,
|
to_account_id:window.top.vue.userinfo.currentactor.target_id,
|
company_id:window.top.vue.userinfo.currentactor.company_id,
|
bu_name:window.top.vue.userinfo.currentactor.bu_name,
|
bu_id:window.top.vue.userinfo.currentactor.bu_id,
|
org_id:window.top.vue.userinfo.org.id,
|
org_code:window.top.vue.userinfo.org.code,
|
org_name:window.top.vue.userinfo.org.name,
|
creator_name: window.top.vue.userinfo.name,
|
},
|
formData: {},
|
|
isRefresh: true,
|
tablebuttonClick:[],
|
tableFields: [],
|
newTableData: {
|
create_time: createDatetime(),
|
creator_name: window.top.vue.userinfo.name,
|
},
|
tableData: [],
|
stock_qty:0,
|
//按键权限设置
|
isedit: false,//提交前编辑,保存/提交
|
isrefuseedit: false,//拒绝后编辑,保存/再次提交
|
isapproval: false,//审批,同意/拒绝/转办/退回
|
|
iscommit: false,//提交标记
|
|
//弹窗参数
|
popupParames: {},
|
//字段设置
|
tablefieldClick: {},
|
formfieldClick: {},
|
dheight: 0,
|
checkarr:[],
|
delarr:[],
|
iscustomer: false,
|
tableAttr:{}
|
},
|
created() {
|
this.tableButtonClick();
|
if (window.top.vue.userinfo && window.top.vue.userinfo.org && window.top.vue.userinfo.org.is_account) {
|
this.iscustomer = true;
|
}
|
this.dheight = document.documentElement.clientHeight - 92;
|
this.popupParames = clone(Root.popupParames);
|
this.title = this.popupParames.title || this.popupParames.text
|
if (this.popupParames.data) {
|
this.formData = clone(this.popupParames.data);
|
}
|
|
if (this.popupParames.sceneCode) {
|
if (this.popupParames.sceneCode == "add") {//新增
|
if (this.newformData) {
|
let formData_ = clone(this.formData);
|
|
for (var k in this.newformData) {
|
formData_[k] = this.newformData[k];
|
}
|
this.formData = formData_;
|
}
|
|
// if (this.newTableData) {
|
// this.tableData.push(clone(this.newTableData));
|
// }
|
|
this.isedit = true;
|
}
|
else if (this.popupParames.sceneCode == "browse") {//只读
|
this.formAttr.disabled = true;
|
this.isedit = false;
|
}
|
else if (this.popupParames.sceneCode == "edit") {//编辑
|
this.isedit = true;
|
}
|
else if (this.popupParames.sceneCode == "approval") {//审批
|
this.formAttr.disabled = true;
|
this.isapproval = true;
|
}
|
else if (this.popupParames.sceneCode == "refuseedit") {//拒绝后的编辑
|
this.isrefuseedit = true;
|
}
|
}
|
},
|
|
mounted() {
|
var me = this;
|
me.tableButtonClick();
|
|
// this.tableAttr.toolbarobj={};
|
// this.$set(tableAttr , 'toolbarobj', '');
|
//预加载数据
|
if (this.dataRequest && this.dataRequest.length) {
|
var result = {};
|
this.loadRequestData(this.dataRequest, result, function(data) {
|
me.dataRequestObj = data;
|
//预加载数据后给哪些字段设置options或formatterjson
|
if(me.dataRequestObj.wm_warehouse){
|
me.options_wm_warehouse = me.dataRequestObj.wm_warehouse
|
}
|
me.initData();
|
|
});
|
}
|
else {
|
this.initData();
|
}
|
|
// 以服务的方式调用的 Loading 需要异步关闭
|
this.$nextTick(() => {
|
hideLoading();
|
|
//重新设置弹窗宽高
|
this.$nextTick(function(){
|
//let w_ = this.$refs.popup_body.offsetWidth + "px";
|
let w_ = "900px";
|
let h_ = this.$refs.popup_body.offsetHeight + "px";
|
Root.setPopupWH(w_, h_);
|
})
|
});
|
},
|
|
methods:{
|
//关闭弹窗
|
closeDialog() {
|
var me = this;
|
if (me.popupParames.totab){
|
Root.tab.removeItem(Root.tab.selected);
|
Root.tab.open(me.popupParames.parentOption, false);
|
}
|
else {
|
Root.hidePopup();
|
}
|
},
|
//关闭前调回调
|
saveAfter() {
|
var me = this;
|
if(this.popupParames.callback) {
|
let obj = {
|
//row: this.formData
|
}
|
this.popupParames.callback(obj, function() {
|
me.closeDialog();
|
});
|
}
|
else {
|
me.closeDialog();
|
}
|
},
|
|
initData() {
|
|
let me = this
|
var id_ = null;
|
me.tableButtonClick();
|
|
if (this.formData.id) {
|
id_ = this.formData.id;
|
}
|
|
this.getRowDataById(id_, function(result) {//查询后的回调,用于获取字段的
|
if (result.meta && result.meta[me.dataname] && result.meta[me.dataname].fields) {
|
var metas = clone(result.meta[me.dataname].fields);
|
var table_dataname_ = "";
|
for (var dataname_ in result.meta) {
|
if (dataname_ != me.dataname && !table_dataname_) {
|
table_dataname_ = dataname_;
|
}
|
}
|
var table_metas = [];
|
if (table_dataname_) {
|
me.table_dataname = table_dataname_;
|
table_metas = clone(result.meta[table_dataname_].fields);
|
|
}
|
|
var formFields_ = [];
|
var tableFields_ = [];
|
metas.map(f=>{
|
f.isshow = "T";
|
// if(f.field == "org_code" || f.field == "org_name"){
|
// if(me.iscustomer){
|
// f.isshow = "F";
|
// }
|
// }
|
if (f.field == "from_warehouse_name") {
|
f.options = me.options_wm_warehouse;
|
}
|
if (f.field == "to_warehouse_name") {
|
f.options = me.options_wm_warehouse;
|
}
|
formFields_.push(clone(f));
|
})
|
table_metas.map(f=>{
|
f.isshow = "T";
|
|
if (f.field == "stock_type") {
|
f.options = me.dataRequestObj.wm_stock_type
|
var formatterjson_ = {};
|
me.dataRequestObj.wm_stock_type.map(r=>{
|
formatterjson_[r.code] = r.name;
|
})
|
f.formatterjson = formatterjson_
|
|
}
|
if (f.field == "qty") {
|
|
f.inputkeys = "number";//按键正整数
|
var f_stock_qty = {isshow: "T", field: "stock_qty", name: "可用数量", align: "right",width: "100"}
|
tableFields_.push(clone(f_stock_qty));
|
}
|
tableFields_.push(clone(f));
|
})
|
|
if (!me.formFields || (me.formFields && me.formFields.length == 0)) {
|
me.formFields = clone(formFields_);
|
me.tableFields = clone(tableFields_);
|
|
|
}
|
}
|
if (me.rowData[me.dataname]) {
|
me.formData = me.rowData[me.dataname];
|
}
|
if (me.rowData[me.table_dataname]) {
|
me.tableData = me.rowData[me.table_dataname];
|
}
|
})
|
|
me.tableButtonClick();
|
|
//字段数组转字段obj,目的为了筛选时获取字段属性
|
me.fieldsToFieldsObj();
|
|
//设置字段事件
|
me.tableFieldClick();
|
|
},
|
|
tableFieldClick() {
|
var me = this;
|
//表单字段事件设置
|
this.formfieldClick = {
|
org_name: {
|
popup: {
|
onclick: function(obj) {//弹窗点击事件
|
//打开
|
me.tablePopup_customerList()
|
}
|
},
|
},
|
from_warehouse_name: {
|
visible: {
|
onchange: function(obj) {
|
// me.formData.from_warehouse_name//这是出仓项
|
var formFields_ = [];
|
var options_ = []
|
formFields_ = clone(me.formFields)
|
me.options_wm_warehouse.map(f=>{
|
if(f.name != me.formData.to_warehouse_name && f.account_id == me.formData.account_id) {
|
options_.push(clone(f))
|
}
|
})
|
formFields_.map(f=>{
|
if(f.field == "from_warehouse_name") {
|
f.options = clone(options_)
|
}
|
})
|
me.formFields = clone(formFields_)
|
if(me.formData.from_warehouse_name) {
|
Root.confirm('更换移出仓库将会重置明细,是否继续?', '更换提示', { //下拉提示
|
confirmButtonText: '确定',
|
// cancelButtonText: '取消',
|
showCancelButton:false,
|
type: 'warning'
|
}).then(() => {
|
return
|
}).catch(() => {
|
return
|
});
|
}
|
|
}
|
},
|
select: {
|
onchange: function(obj) {
|
me.tableData = []
|
obj.data.from_warehouse_name = obj.selectoption.name//将选中项赋值
|
obj.data.from_warehouse_id = obj.selectoption.id
|
obj.data.from_warehouse_code = obj.selectoption.code
|
|
}
|
}
|
|
},
|
to_warehouse_name: {
|
visible: {
|
onchange: function(obj) {
|
var formFields_ = [];
|
var options_ = []
|
formFields_ = clone(me.formFields)
|
me.options_wm_warehouse.map(f=>{
|
if(f.name != me.formData.from_warehouse_name && f.account_id == me.formData.to_account_id) {//这是出仓项
|
options_.push(clone(f))
|
}
|
|
})
|
formFields_.map(f=>{
|
if(f.field == "to_warehouse_name") {
|
f.options = clone(options_)
|
}
|
})
|
me.formFields = clone(formFields_)
|
|
}
|
},
|
select: {
|
onchange: function(obj){
|
obj.data.to_warehouse_name = obj.selectoption.name
|
obj.data.to_warehouse_id = obj.selectoption.id
|
obj.data.to_warehouse_code = obj.selectoption.code
|
}
|
}
|
},
|
};
|
|
//表格字段事件设置
|
this.tablefieldClick = {
|
material_name: {
|
popup: {
|
onclick: function(obj) {//弹窗点击事件
|
//打开
|
me.tablepopup_productlist(obj);
|
}
|
},
|
},
|
qty: {
|
input: {
|
onchange: function(obj) {//输入更改事件
|
// if (obj.row.batch_sn) {//有序列号
|
// //不能大于1且不能小于0
|
// if (obj.row.qty > 1) {
|
// Root.message({
|
// type: 'warning',
|
// message: '存在序列号的数量不可大于1'
|
// });
|
// me.$set(obj.row, "qty", 1);
|
// }
|
// else if (obj.row.qty < 0) {
|
// Root.message({
|
// type: 'warning',
|
// message: '存在序列号的数量不可小于0'
|
// });
|
// me.$set(obj.row, "qty", 0);
|
// }
|
// }
|
if (obj.row.stock_qty) {//可用数
|
if (obj.row.qty > obj.row.stock_qty) {
|
Root.message({
|
type: 'warning',
|
message: '数量不可大于可用数'
|
});
|
me.$set(obj.row, "qty", 0);
|
}
|
}
|
//将类似‘00099’之类的数字,前面的0都删掉
|
if (obj.row.qty && obj.row.qty.length > 1) {
|
var p = 0;
|
for (q = 0; q <= (obj.row.qty.length + p); q++) {
|
if (obj.row.qty[0]*1 == 0) {
|
obj.row.qty = obj.row.qty.substring(1);
|
p ++;
|
} else {
|
break;
|
}
|
}
|
}
|
}
|
},
|
},
|
};
|
},
|
// 设置表格工具栏按键事件
|
tableButtonClick() {
|
var me = this;
|
var tablebuttonclick = [];
|
tablebuttonclick = [
|
{
|
name:"新增明细",
|
isbuttonshow: me.isedit, type: "primary",
|
code: "addDetail", isselected: false, classname:"",
|
|
onclick: function(obj) {
|
console.log(obj)
|
if(!me.formData.from_warehouse_name || !me.formData.to_warehouse_name){
|
Root.message({
|
type: 'warning',
|
message: '请先选择仓库'
|
});
|
return;
|
}
|
// me.tablepopup_productlist(obj)
|
me.tablepopup_productlist("add", obj, function(popupobj){
|
// let row_ = clone(me.formData)
|
var tableData_ = clone(me.tableData);
|
// var newrow = {
|
// product_id: popupobj.row.product_id,
|
// product_code: popupobj.row.product_code,
|
// product_name: popupobj.row.product_name,
|
// spec: popupobj.row.spec,
|
// unit: popupobj.row.unit,
|
// batch_no: popupobj.row.batch_no,
|
// batch_sn: popupobj.row.batch_sn,
|
// valid_from: popupobj.row.valid_from,
|
// valid_to: popupobj.row.valid_to,
|
// stock_type: popupobj.row.stock_type_name,
|
// stock_qty: popupobj.row.qty_total * 1 - popupobj.row.qty_frozen * 1,
|
// qty: 1,
|
// }
|
// //me.stock_qty = popupobj.row.qty_total * 1 - popupobj.row.qty_frozen * 1
|
// tableData_.unshift(clone(newrow));
|
|
if (popupobj.rowlist && popupobj.rowlist.length) {
|
popupobj.rowlist.map(row=>{
|
var newrow = {
|
product_id: row.product_id,
|
product_code: row.product_code,
|
product_name: row.product_name,
|
spec: row.spec,
|
|
unit: row.unit,
|
batch_no: row.batch_no,
|
batch_sn: row.batch_sn,
|
valid_from: row.valid_from,
|
valid_to: row.valid_to,
|
stock_type: row.stock_type_name,
|
stock_qty: row.qty_total * 1 - row.qty_frozen * 1,
|
qty: 1,//标识二,待调整
|
}
|
tableData_.unshift(clone(newrow));
|
})
|
}
|
me.tableData = clone(tableData_)
|
})
|
|
}
|
},
|
{
|
isbuttonshow: me.isedit, type: "danger",
|
code: "delete", isselected: true, classname:"",
|
disabled: function(selectRowList) {
|
var bo_ = true ;
|
if (selectRowList[0]) {
|
bo_ = false
|
}
|
return bo_;
|
},
|
onclick: function(obj) {
|
var row = obj.selectedList[0];
|
var txt = clone(row.product_name);
|
me.deleteDataById(row.id, "wm_movement_detail", "【" + txt + "】", function(){
|
me.tableData.splice(obj.selectRowIndex, 1);
|
})
|
}
|
}
|
]
|
me.tablebuttonClick = tablebuttonclick
|
|
},
|
|
tablepopup_productlist(sceneCode, obj , callback) {
|
var me = this;
|
var data_ = {};
|
var delta_ = {};
|
console.log(obj);
|
|
//排除已选物料
|
me.tableData.map(row=>{
|
if (row.batch_sn) {
|
var key_ = me.formData.from_warehouse_id + "_" + row.product_code + "_" + row.batch_no + "_" + row.batch_sn
|
delta_[key_] = true
|
}
|
else if (row.product_code) {
|
var key_ = me.formData.from_warehouse_id + "_" + row.product_code + "_" + row.batch_no
|
delta_[key_] = true
|
}
|
})
|
var config = {
|
totab: false, //true: 以Tab导航的方式打开
|
width: "800px",
|
height: "520px",
|
icon: "icon-product",
|
text: "明细选择",
|
id: "popup_mv_detail",//totab: true时需设置,用于判断是否已打开此页面
|
url: "module/inventory/page/popup/popup_book_detail.html",
|
data: data_,
|
delta: delta_,
|
// filter: "org_id='"+ me.selectedrow.org_id + "' and bu_id='" + me.selectedrow.bu_id + "'",
|
filter: "warehouse_name='" + me.formData.from_warehouse_name +"'" ,
|
sceneCode: sceneCode,//"refuseedit",//"approval", //"add"//"browse",
|
callback: function(popupobj, popupcallback) {
|
callback(popupobj);
|
if (popupcallback) {
|
popupcallback();
|
}
|
}
|
};
|
me.doPopupByPublic(config);
|
},
|
deleteDataById(id, dataname, confirm_txt, callback){
|
var me = this;
|
var formData_ = clone(me.formData);
|
Root.confirm('确定删除该' + confirm_txt + '吗?', '删除提示', {
|
confirmButtonText: '删除',
|
cancelButtonText: '取消',
|
type: 'warning'
|
}).then(() => {
|
if (id) {
|
let param = {
|
dataname: dataname,
|
id: id
|
}
|
Server.call("root/data/deleteEntity", param, function(result) {
|
console.log(result);
|
if (result && result.data) {
|
callback();
|
}
|
});
|
}
|
else {
|
callback();
|
}
|
|
}).catch(() => {
|
Root.message({
|
type: 'info',
|
message: '已取消删除'
|
});
|
});
|
|
},
|
|
GFG_Fun() {
|
var suiji = Math.random().toString(36).slice(2);
|
return suiji;
|
},
|
|
addTableData() {
|
var me = this
|
if(!this.formData.from_warehouse_name || !this.formData.to_warehouse_name){
|
Root.message({
|
type: 'warning',
|
message: '请先选择仓库'
|
});
|
return;
|
}
|
},
|
|
delData(scope) {
|
let me = this;
|
let row = scope.row;
|
let index_ = scope.$index;
|
|
Root.confirm('确定删除该数据吗?', '删除提示', {
|
confirmButtonText: '删除',
|
cancelButtonText: '取消',
|
type: 'warning'
|
}).then(() => {
|
me.rowChange(row, "del", me.table_dataname);
|
}).catch(() => {
|
Root.message({
|
type: 'info',
|
message: '已取消删除'
|
});
|
});
|
},
|
|
rowChange(row, type, tablename) {
|
var me = this;
|
if (type == "add") {
|
this.tableData.unshift(row);
|
}
|
else if (type == "del") {
|
if (row.id) {
|
let param = {
|
dataname: tablename,
|
id: row.id
|
}
|
|
Server.call("root/data/deleteEntity", param, function(result) {
|
console.log(result);
|
if (result && result.data) {
|
me.tableData.remove(row);
|
|
Root.message({
|
type: 'success',
|
message: '删除成功!'
|
});
|
}
|
});
|
}
|
else {
|
this.tableData.remove(row);
|
}
|
}
|
else {
|
|
}
|
},
|
|
//提交
|
submitRowTable() {
|
var me = this;
|
var bo_ = true;
|
var batch_no_ = true;
|
|
if (me.tableData.length == 0) {
|
bo_ = false;
|
Root.message({
|
type: 'warning',
|
message: '请先添加明细数据'
|
});
|
return
|
}
|
|
me.tableData.map(r=>{
|
if (r.qty == null || r.qty === "" || isNaN(r.qty) || r.qty == 0) {
|
bo_ = false;
|
}
|
if (r.batch_no == null || r.batch_no === "") {
|
batch_no_ = false;
|
}
|
})
|
if (!bo_) {
|
Root.message({
|
type: 'error',
|
message: '明细中存在数量为空的数据'
|
});
|
return
|
}
|
|
// if (!batch_no_) {
|
// Root.message({
|
// type: 'error',
|
// message: '明细中存在批号为空的数据'
|
// });
|
// return
|
// }
|
|
|
this.iscommit = true;
|
this.saveRowTable();
|
},
|
|
//保存
|
saveRowTable() {
|
var me = this;
|
var operator_ = "saveEntity";//保存
|
if(me.iscommit) {
|
operator_ = "Commit";//提交
|
}
|
|
var entity_ = clone(this.formData);
|
var entity = {};
|
for (var r in entity_) {
|
if (entity_[r] || entity_[r] == "" || entity_[r] == false || entity_[r] == 0) {
|
entity[r] = entity_[r];
|
}
|
}
|
|
var tableData_ = [];
|
this.tableData.map(r=>{
|
var row_ = {};
|
for (var k in r) {
|
if (r[k]) {
|
row_[k] = r[k];
|
}
|
}
|
tableData_.push(row_);
|
})
|
|
if (tableData_.length == 0) {
|
Root.message({
|
type: 'warning',
|
message: '请先添加明细数据'
|
});
|
return
|
}
|
|
var bo_ = true;
|
var batch_no_ = true;
|
tableData_.map(r=>{
|
if (r.qty == null || r.qty === "" || isNaN(r.qty) || r.qty == 0) {
|
bo_ = false;
|
}
|
if (r.batch_no == null || r.batch_no === "") {
|
batch_no_ = false;
|
}
|
})
|
if (!bo_) {
|
Root.message({
|
type: 'error',
|
message: '明细中存在数量为空的数据'
|
});
|
return
|
}
|
|
let param = {
|
dataname: this.dataname,
|
data: {},
|
}
|
param.data[this.dataname] = entity;
|
param.data[this.table_dataname] = tableData_;
|
|
if (this.formData.id) {
|
param.id = this.formData.id
|
}
|
|
Server.call("root/data/" + operator_, param, function(result) {
|
console.log(result);
|
if (result.success) {
|
if(me.iscommit){
|
me.iscommit = false;
|
Root.message({
|
type: 'success',
|
message: '提交成功'
|
});
|
me.saveAfter();
|
}
|
else {
|
Root.message({
|
type: 'success',
|
message: '保存成功'
|
});
|
me.saveAfter();
|
}
|
}
|
}, function(errorresult) {
|
console.log("错误信息", errorresult);
|
|
if (errorresult.messages && errorresult.messages.count && errorresult.messages.count.error) {
|
me.iscommit = false;
|
if (errorresult.messages.list) {
|
var config = {
|
totab: false,
|
// width: "1200px",
|
// height: 800,
|
icon: "icon-product",
|
text: "错误信息",
|
url: "module/tool/page/popup_error_messages.html",
|
data: {},
|
delta: errorresult.messages.list,
|
callback: function(obj, callback) {
|
if (callback) {
|
callback();
|
}
|
}
|
};
|
me.doPopupByPublic(config);
|
}
|
}
|
else {
|
if (me.iscommit) {
|
Root.message({
|
type: 'error',
|
message: '提交失败'
|
});
|
me.iscommit = false;
|
}
|
else {
|
Root.message({
|
type: 'error',
|
message: '保存失败'
|
});
|
}
|
|
}
|
});
|
},
|
|
}
|
});
|
};
|
|
loadJsCss(function () {
|
initVue();
|
});
|
</script>
|
<style>
|
/* 在vue.js中 v-cloak 这个指令是防止页面加载时出现 vuejs 的变量名而设计的 */
|
[v-cloak] {
|
display: none !important;
|
}
|
</style>
|
|
</head>
|
|
<body style="margin: 0px;">
|
<div v-cloak id="vbody">
|
<div id="page_root">
|
<div ref="popup_body" style="padding: 0 20px;">
|
<div class="el-dialog__header">
|
<div class="dialog-title">
|
<i class="iconfont icon-customermanagement"></i>
|
<span> {{title}}</span>
|
</div>
|
</div>
|
<div :style="{height: dheight + 'px', 'overflow-y': 'auto'}">
|
<div class="el-dialog__body">
|
<h-form
|
ref="form1"
|
:form-attr="formAttr"
|
:table-fields="formFields"
|
:form-data="formData"
|
:table-field-click="formfieldClick"
|
>
|
</h-form>
|
|
<div class="h_dialog__body">
|
<div v-if="isedit || isrefuseedit" style=" text-align: right; margin-top: 20px;">
|
<!-- 工具栏 -->
|
<!-- <div style=" display: inline-block; width: 90px;">
|
<el-button-group style="display: flex;justify-content: center;"> -->
|
<!-- <el-button>批量导入</el-button>
|
<el-button type = "danger" @click="delDetail">删 除</el-button>
|
<el-button>导入模板下载</el-button> -->
|
<!-- <el-button @click="addTableData">新增明细</el-button> -->
|
<!-- </el-button-group>
|
</div> -->
|
</div>
|
<h-table
|
v-if="isRefresh && tableFields.length"
|
ref="table1"
|
:table-fields="tableFields"
|
:table-data="tableData"
|
:is-within-edit-table-data="isedit || isrefuseedit"
|
:is-pagination="false"
|
:is-highlight-row="true"
|
:isdraggableorder="false"
|
:isfilterfield="false"
|
:table-field-click="tablefieldClick"
|
:table-buttons-click="tablebuttonClick"
|
|
v-on:get-data="getData"
|
v-on:del-data="delData"
|
>
|
</h-table>
|
</div>
|
|
|
</div>
|
</div>
|
<div class="el-dialog__footer">
|
<el-button size="small" type="default" @click="closeDialog">取 消</el-button>
|
<el-button size="small" v-if="isedit || isrefuseedit" type="primary" @click="saveRowTable":icon="buttonsconfig.save.icon">{{buttonsconfig.save.name}}</el-button>
|
<el-button size="small" v-if="isedit" type="success" @click="submitRowTable":icon="buttonsconfig.submit.icon">{{buttonsconfig.submit.name}}</el-button>
|
<el-button size="small" v-if="isrefuseedit" type="success" @click="">再次提交</el-button>
|
|
<el-button size="small" v-if="isapproval" type="primary" @click="">通 过</el-button>
|
<el-button size="small" v-if="isapproval" type="success" @click="">拒 绝</el-button>
|
<el-button size="small" v-if="isapproval" type="primary" @click="">转 办</el-button>
|
<el-button size="small" v-if="isapproval" type="success" @click="">退 回</el-button>
|
</div>
|
</div>
|
</div>
|
</div>
|
|
<div id="page_loading" style="position: absolute; top:0px; width: 100vw; height: 50vh;">
|
<div class="spinner">
|
<div class="cube1"></div>
|
<div class="cube2"></div>
|
</div>
|
</div>
|
</body>
|
</html>
|