<!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: "so_order",
|
table_dataname: "so_order_detail",
|
title: "订单信息",
|
formAttr: {
|
istitle: false,
|
title: "表单名称",
|
columnnumber: 3,
|
labelwidth: "140px",
|
labelposition: "left",//"left",// right//top
|
size: "mini",
|
border: "3px solid #c6c6c600"
|
},
|
formFields: [
|
{isshow: "T", field: "field1", name: "订单类型", disabled : true},
|
{isshow: "T", field: "field2", name: "公司", type: "popup"},
|
{isshow: "T", field: "field3", name: "产品组", type: "popup"},
|
{isshow: "T", field: "field4", name: "期望收货方式", type: "select", options: [{label: "普通快递", value: "普通快递"}, {label: "自提", value: "自提"}]},
|
{isshow: "T", field: "field5", name: "收货地址", type: "popup"},
|
{isshow: "T", field: "field6", name: "选择分仓", type: "popup"},
|
{isshow: "T", field: "field7", name: "期望交货日期", type: "date"},
|
{isshow: "T", field: "field8", name: "备注", colspan: 2}
|
],
|
|
newformData: {
|
//id: uuid_short(),
|
code: createCode("O"),
|
// doc_date: createDatetime(),
|
// create_time: createDatetime(),
|
state_code: "Input",
|
state_name: "草稿",
|
creator_name: window.top.vue.userinfo.name,
|
department_name: window.top.vue.userinfo.department_name,
|
type_code: "",
|
type_name: "",
|
field1: "标准订单"
|
},
|
formData: {},
|
|
isRefresh: true,
|
tableFields: [
|
{isshow: "T", field: "field1", name: "产品编码", width: "200"},
|
{isshow: "T", field: "field2", name: "产品名称", align: "left"},
|
{isshow: "T", field: "field3", name: "数量", width: "150", type: "input"},
|
{isshow: "T", field: "field4", name: "单位", width: "150"},
|
],
|
newTableData: {
|
create_time: createDatetime(),
|
creator_name: window.top.vue.userinfo.name,
|
// parent_id: "000",
|
},
|
table_row:{},
|
tableData: [],
|
|
checkRule:{},
|
|
//按键权限设置
|
isedit: false,//提交前编辑,保存/提交
|
isrefuseedit: false,//拒绝后编辑,保存/再次提交
|
isapproval: false,//审批,同意/拒绝/转办/退回
|
|
iscommit: false,//提交标记
|
|
//审批相关变量
|
reasonvisible:false,//审批通过或拒绝填写原因
|
textarea2: '',//填写理由
|
passOrRefuse:false,
|
|
//弹窗参数
|
popupParames: {},
|
//字段设置
|
tablefieldClick: {},
|
formfieldClick: {},
|
},
|
created() {
|
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;
|
}
|
else if (this.popupParames.sceneCode == "edit") {//编辑
|
this.isedit = true;
|
}
|
else if (this.popupParames.sceneCode == "approval") {//审批
|
this.formAttr.disabled = true;
|
console.log(this.formData);
|
|
// for(let i in this.formData){
|
// if(i != contract_no){
|
// i.disabled = true;
|
// }
|
// }
|
// this.formData.map(i=>{
|
// i.disabled = true;
|
// })
|
this.isapproval = true;
|
}
|
else if (this.popupParames.sceneCode == "refuseedit") {//拒绝后的编辑
|
this.isrefuseedit = true;
|
}
|
}
|
},
|
|
mounted() {
|
var me = this;
|
//预加载数据
|
if (this.dataRequest && this.dataRequest.length) {
|
var result = {};
|
this.loadRequestData(this.dataRequest, result, function(data) {
|
me.dataRequestObj = data;
|
//预加载数据后给哪些字段设置options或formatterjson
|
|
me.initData();
|
me.check_rule();
|
});
|
}
|
else {
|
this.initData();
|
me.check_rule();
|
}
|
|
// 以服务的方式调用的 Loading 需要异步关闭
|
this.$nextTick(() => {
|
hideLoading();
|
|
//重新设置弹窗宽高
|
this.$nextTick(function(){
|
//let w_ = this.$refs.popup_body.offsetWidth + "px";
|
let w_ = "1200px";
|
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;
|
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_ = "";
|
console.log(result.meta);
|
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";
|
formFields_.push(clone(f));
|
})
|
table_metas.map(f=>{
|
f.isshow = "T";
|
tableFields_.push(clone(f));
|
})
|
|
if (!me.formFields || (me.formFields && me.formFields.length == 0)) {
|
me.formFields = clone(formFields_);
|
me.tableFields = clone(tableFields_);
|
|
//字段数组转字段obj,目的为了筛选时获取字段属性
|
me.fieldsToFieldsObj();
|
|
//设置字段事件
|
me.tableFieldClick();
|
}
|
}
|
|
if (me.rowData[me.dataname]) {
|
me.formData = me.rowData[me.dataname];
|
}
|
if (me.rowData[me.table_dataname]) {
|
me.tableData = me.rowData[me.table_dataname];
|
}
|
|
if(me.popupParames.sceneCode == "add"){
|
me.open_popup();
|
}
|
})
|
},
|
|
tableFieldClick() {
|
var me = this;
|
this.tablefieldClick = {
|
qty: {//数量
|
input: {
|
onchange: function(obj) {
|
me.calculationAmt(obj.row);
|
}
|
},
|
},
|
amt_rebate: {//使用返利金额
|
input: {
|
onchange: function(obj) {
|
me.calculationAmtRebate(obj.row);
|
}
|
},
|
},
|
}
|
},
|
|
|
//数量更改时计算——table
|
calculationAmt(row) {
|
var me = this;
|
|
//数量限制
|
if(row.qty == " " || isNaN(row.qty) || row.qty <= 0){
|
row.qty = 1;
|
}
|
|
console.log(row);
|
|
//税后总额
|
row.amt_total = row.qty * row.price_after_tax;
|
//总税额
|
row.amt_tax = row.amt_total/(1+row.rate_tax/100) * row.rate_tax/100;
|
//税前总额
|
row.amt_before_tax = row.amt_total - row.amt_tax;
|
//未填写时折扣默认0
|
// if(!row.amt_rebate){
|
// row.amt_rebate = 0;
|
// }
|
//每次数量变化都需重新计算折扣后税后总额
|
row.amt_net = row.amt_total - (row.amt_rebate || 0);
|
|
//表单计算&赋值
|
this.calculationSumAmt();
|
},
|
|
//返利更改时计算——table
|
calculationAmtRebate(row) {
|
|
//返利使用金额限制
|
if(!row.amt_rebate || row.amt_rebate == "" || isNaN(row.amt_rebate) || row.amt_rebate < 0){
|
row.amt_rebate = 0;
|
}
|
|
//填写数量得到税后总额后才进行折扣计算,否则仅对折扣赋值
|
if(row.amt_total) {
|
row.amt_rebate = (row.amt_rebate > row.amt_total*0.2)?row.amt_total*0.2:row.amt_rebate;
|
//折扣后税后总额
|
row.amt_net = row.amt_total - row.amt_rebate;
|
//表单计算&赋值
|
this.calculationSumAmt();
|
}
|
},
|
|
//表单计算&赋值
|
calculationSumAmt() {
|
//计算表单税后总额、折扣总额、折扣后税后总额
|
var formData_ = clone(this.formData);
|
var amt_total_ = 0;
|
var amt_discount_ = 0;
|
var amt_net_ = 0;
|
|
this.tableData.map(r=>{
|
amt_total_ += r.amt_total || 0;
|
amt_discount_ += Number(r.amt_rebate) || 0;
|
amt_net_ += r.amt_net || 0;
|
})
|
formData_.amt_total = amt_total_;
|
formData_.amt_discount = amt_discount_;
|
formData_.amt_net = amt_net_;
|
this.formData = clone(formData_);
|
},
|
|
//两步弹窗
|
open_popup(){
|
var me = this;
|
Root.showPopup({
|
text:"创建订单",
|
url: "module/order/page/popup-new_order.html",
|
width: 965,
|
height: 550,
|
data: {},
|
dataname: "",
|
sceneCode: "add",//"refuseedit",//"approval", //"add"//"browse",
|
closecallback: function() {
|
me.closeDialog();
|
},
|
callback: function(obj, callback) {
|
console.log(obj);
|
// console.log(obj.check);
|
//选择客户后,表单相关数据赋值
|
let formData_ = clone(me.formData);
|
formData_.customer_id = obj.customer.customer_id;
|
formData_.customer_name = obj.customer.customer_name;
|
formData_.customer_code = obj.customer.customer_code;
|
formData_.province = obj.customer.province;
|
formData_.shipto_address = obj.customer.shipto_address;
|
formData_.shipto_contact = obj.customer.shipto_contact;
|
formData_.shipto_phone = obj.customer.shipto_phone;
|
formData_.settlement_name = obj.customer.settlement_name;
|
// formData_.department_name = obj.customer.department_name;
|
formData_.department_id = obj.customer.department_id;
|
formData_.doc_date = obj.customer.doc_date;
|
formData_.create_time = obj.customer.doc_date;
|
formData_.amt_credit_line = obj.customer.amt_credit_line;
|
formData_.date_plan_ship_to = obj.customer.date_plan_ship_to;
|
|
me.formData = formData_;
|
|
//选择客户后,规则校验数据赋值
|
// me.$set(me.checkRule, "purchase_quota", obj.check.purchase_quota);
|
// me.$set(me.checkRule, "credit_line", obj.check.credit_line);
|
// me.$set(me.checkRule, "account_period", obj.check.account_period);
|
// me.$set(me.checkRule, "days_before_delivery", obj.check.days_before_delivery);
|
// me.$set(me.checkRule, "rebate_percent", obj.check.rebate_percent);
|
|
console.log(me.checkRule);
|
console.log(me.checkRule.account_period);
|
|
//选择产品后,明细相关数据赋值
|
me.$set(me.table_row, "product_id", obj.product.product_id);
|
me.$set(me.table_row, "record_id", obj.product.id);
|
me.$set(me.table_row, "product_code", obj.product.product_code);
|
me.$set(me.table_row, "product_name", obj.product.product_name);
|
me.$set(me.table_row, "price_after_tax", obj.product.price_invoice);
|
me.$set(me.table_row, "rate_tax", obj.product.rate_tax);
|
|
console.log(me.table_row);
|
let test = clone(me.table_row);
|
console.log(test);
|
|
if (callback) {
|
callback();
|
}
|
|
me.rowChange(me.table_row, "add", me.table_dataname);
|
}
|
});
|
},
|
|
//新增明细弹窗
|
tablePopup_productList(obj) {
|
var me = this;
|
|
var filter = "customer_id= '" + this.formData.customer_id + "'" ;
|
|
if(me.tableData.length > 0) {
|
filter = "customer_id= '" + this.formData.customer_id + "'" + "and id not in (" ;
|
for(i = 0; i < me.tableData.length; i++){
|
filter = filter + "'"+ me.tableData[i].record_id + "',";
|
}
|
filter = filter.slice(0, -1) + ")";
|
}
|
|
Root.showPopup({
|
text:"选择产品",
|
url: "module/order/page/popup-new_order_detail.html",
|
width: 965,
|
height: 550,
|
sceneCode: "add",
|
data:{},
|
txt: filter,
|
callback: function(callbackobj, callback) {
|
//选择产品后,明细相关数据赋值
|
me.$set(me.table_row, "product_id", callbackobj.row.product_id);
|
me.$set(me.table_row, "record_id", callbackobj.row.id);
|
me.$set(me.table_row, "product_code", callbackobj.row.product_code);
|
me.$set(me.table_row, "product_name", callbackobj.row.product_name);
|
me.$set(me.table_row, "price_after_tax", callbackobj.row.price_invoice);
|
me.$set(me.table_row, "rate_tax", callbackobj.row.rate_tax);
|
|
// obj.row.spec = callbackobj.row.pack_specification;
|
// obj.row.pack = callbackobj.row.unit;
|
|
if (callback) {
|
callback();
|
}
|
|
me.rowChange(me.table_row, "add", me.table_dataname);
|
}
|
});
|
},
|
|
//对下单客户进行规则检查(unfinished)
|
check_rule(){
|
var me = this;
|
|
let param = {
|
dataName: "sys_check_rule",
|
}
|
|
Server.call("root/data/getEntitySet", param, function(result) {
|
console.log(result.data.entityset);
|
|
if(result && result.data){
|
// me.checkData = clone(result.data.entityset);
|
console.log(result.data.entityset[0].r_value);
|
|
me.$set(me.checkRule, "purchase_quota", result.data.entityset[0].r_value);
|
me.$set(me.checkRule, "credit_line", result.data.entityset[1].r_value);
|
me.$set(me.checkRule, "account_period", result.data.entityset[2].r_value);
|
me.$set(me.checkRule, "days_before_delivery", result.data.entityset[5].r_value);
|
me.$set(me.checkRule, "rebate_percent", result.data.entityset[6].r_value);
|
|
// console.log(me.checkData);
|
|
}
|
});
|
},
|
|
//新增明细行数据
|
addTableData() {
|
this.table_row = clone(this.newTableData);
|
this.tablePopup_productList();
|
},
|
|
//删除明细行数据
|
delData(scope) {
|
let me = this;
|
let row = scope.row;
|
let index_ = scope.$index;
|
|
Root.confirm('确定删除数据【' + JSON.stringify(row) + '】吗?', '删除提示', {
|
confirmButtonText: '删除',
|
cancelButtonText: '取消',
|
type: 'warning'
|
}).then(() => {
|
me.rowChange(row, "del", me.table_dataname);
|
}).catch(() => {
|
Root.message({
|
type: 'info',
|
message: '已取消删除'
|
});
|
});
|
},
|
|
//table中的行数据的增加和删除
|
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 quantity = true;
|
|
if (!this.formData.settlement_name){
|
Root.message({
|
type: 'warning',
|
message: '请填写结算方式'
|
});
|
return
|
}
|
else if(!this.formData.contract_no){
|
Root.message({
|
type: 'warning',
|
message: '请填写合同编码'
|
});
|
return
|
}
|
else {
|
for(var q = 0; q < this.tableData.length; q++){
|
if(!this.tableData[q].qty){
|
quantity = false;
|
Root.message({
|
type: 'warning',
|
message: '请填写数量'
|
});
|
return
|
}
|
}
|
if(quantity){
|
if (this.checkRule.credit_line!='nnocheck' && (this.formData.amt_total * 1 > this.formData.amt_credit_line * 1)) {
|
Root.message({
|
type: 'warning',
|
message: '订单金额已大于可授信额度,无法提交'
|
});
|
return
|
}
|
this.iscommit = true;
|
this.saveRowTable();
|
}
|
}
|
},
|
|
// submitRowTable() {
|
// this.iscommit = true;
|
// this.saveRowTable();
|
// },
|
|
//新增订单——保存&提交
|
saveRowTable() {
|
var me = this;
|
var operator_ = "save";//保存
|
// var state_code_ = "input";
|
if(me.iscommit) {
|
operator_ = "commit";//提交
|
// state_code_ = "working";
|
}
|
|
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
|
}
|
|
let param = {
|
dataName: this.dataname,
|
flowName: "sales",
|
// operator: operator_,
|
data: {},
|
// state_code: state_code_,
|
}
|
param.data[this.dataname] = entity;
|
param.data[this.table_dataname] = tableData_;
|
|
Server.call("root/data/saveEntity", param, function(result) {
|
console.log(param);
|
if (result.success) {
|
if(me.iscommit){
|
me.iscommit = false;
|
Root.message({
|
type: 'success',
|
message: '提交成功'
|
});
|
me.saveAfter();
|
}
|
else {
|
Root.message({
|
type: 'success',
|
message: '保存成功'
|
});
|
me.saveAfter();
|
}
|
}
|
});
|
},
|
|
//审批通过相关数据赋值
|
onPassApproval(){
|
this.textarea2 = "";
|
this.reasonvisible = true;
|
this.passOrRefuse = true;
|
},
|
|
//审批拒绝相关数据赋值
|
onRefuseApproval(){
|
this.textarea2 = "";
|
this.reasonvisible = true;
|
this.passOrRefuse = false;
|
},
|
|
//保存通过/拒绝原因
|
saveReason(){
|
if(this.passOrRefuse){
|
//审批通过后拆分成生产订单;
|
//this.batchOrder();
|
//this.passApproval('sales',this.textarea2);
|
this.doApproval();
|
}else{
|
if(this.textarea2 != ""){
|
//this.refuseApproval('sales',this.textarea2)
|
this.doReject();
|
}
|
else{
|
Root.message({
|
type: 'warning',
|
message: '请填写原因'
|
});
|
}
|
}
|
},
|
|
//审批通过
|
doApproval() {
|
var me = this;
|
|
let param = {
|
"business_type":"sales",
|
"flow_id": this.formData.flow_id,
|
"user_id": Root.userInfo.id,
|
"pass": true,
|
"reason": this.textarea2,
|
"variableMap": {
|
"province": this.formData.province
|
}
|
}
|
Server.call("root/workFlow/dealAct", param, function(result) {
|
// console.log(result);
|
if (result.success) {
|
Root.message({
|
type: 'success',
|
message: '审批成功'
|
});
|
//拆单时要不要重新调用接口
|
me.saveAfter();
|
}
|
else {
|
Root.message({
|
type: 'success',
|
message: '已拒绝'
|
});
|
me.saveAfter();
|
}
|
});
|
},
|
|
//审批拒绝
|
doReject() {
|
var me = this;
|
|
let param = {
|
"business_type":"sales",
|
"flow_id": this.formData.flow_id,
|
"user_id": Root.userInfo.id,
|
"pass": false,
|
"reason": this.textarea2,
|
"variableMap": {
|
"province": this.formData.province
|
}
|
}
|
Server.call("root/workFlow/dealAct", param, function(result) {
|
// console.log(result);
|
if (result.success) {
|
Root.message({
|
type: 'success',
|
message: '已拒绝'
|
});
|
me.saveAfter();
|
}
|
});
|
},
|
}
|
});
|
};
|
|
loadJsCss(function () {
|
initVue();
|
});
|
</script>
|
<style>
|
/* 在vue.js中 v-cloak 这个指令是防止页面加载时出现 vuejs 的变量名而设计的 */
|
[v-cloak] {
|
display: none !important;
|
}
|
|
.el-tag {
|
border-radius: 14px;
|
}
|
</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: 550px; 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="formData.customer_name" style="display: inline-block; text-align: left; font-size: 12px;">
|
<el-tag size="small" effect="light" type="info" style="border-width: 0px; border-radius: 14px;">单笔订单的最大可用返利金额为该订单总金额的{{checkRule.rebate_percent*100}}%</el-tag>
|
</div>
|
<div v-if="formData.customer_name" style="display: inline-block; text-align: right; font-size: 12px;">
|
<el-tag v-if="checkRule.purchase_quota!='nnocheck'" size="small" effect="dark" type="success" style="border-radius: 14px;">采购额度正常</el-tag>
|
<el-tag v-if="checkRule.credit_line!='nnocheck'" size="small" effect="dark" type="success" style="border-radius: 14px;">授信额度正常</el-tag>
|
<el-tag v-if="checkRule.account_period!='nnocheck'" size="small" effect="dark" type="success" style="border-radius: 14px;">账期</el-tag>
|
<el-tag v-if="false" size="small" effect="light" style="border-radius: 14px;">预计{{checkRule.days_before_delivery}}天内发货</el-tag>
|
</div>
|
<div v-if="isedit || isrefuseedit" style="display: inline-block; width: 90px; float: right; text-align: right; ">
|
<el-button-group>
|
<el-button @click="addTableData">新增明细</el-button>
|
</el-button-group>
|
</div>
|
<h-table
|
v-if="isRefresh && tableFields.length"
|
ref="table1"
|
:table-fields="tableFields"
|
:table-data="tableData"
|
:is-edit-table-data="isedit || isrefuseedit"
|
:is-within-edit-table-data="isedit || isrefuseedit"
|
:is-pagination="false"
|
:table-field-click="tablefieldClick"
|
:is-show-index="tableData.length ? true : false"
|
:edit-table-button="editTableButton"
|
|
v-on:get-data="getData"
|
v-on:del-data="delData">
|
</h-table>
|
</div>
|
<el-dialog title="填写原因" :visible.sync="reasonvisible" height="50%">
|
<el-input
|
type="textarea"
|
:autosize="{ minRows: 2, maxRows: 10}"
|
placeholder="请输入原因"
|
v-model="textarea2">
|
</el-input>
|
|
<div slot="footer" class="dialog-footer" >
|
<el-button type="primary" @click="saveReason">确 定</el-button>
|
<el-button type="default" @click="reasonvisible = false">取 消</el-button>
|
</div>
|
</el-dialog>
|
</div>
|
</div>
|
<div class="el-dialog__footer">
|
<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="success" @click="onPassApproval">通 过</el-button>
|
<el-button size="small" v-if="isapproval" type="danger" @click="onRefuseApproval">拒 绝</el-button>
|
<el-button size="small" v-if="false" type="primary" @click="">转 办</el-button>
|
<el-button size="small" v-if="false" type="primary" @click="">退 回</el-button>
|
<el-button size="small" type="default" @click="closeDialog">取 消</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>
|