Commit 4b0f299b by 谢明辉

a

1 parent 6bbcb041
...@@ -13,7 +13,7 @@ function resolve (dir) { ...@@ -13,7 +13,7 @@ function resolve (dir) {
module.exports = { module.exports = {
context: path.resolve(__dirname, '../'), context: path.resolve(__dirname, '../'),
entry: { entry: {
app: './src/main.js' app:['babel-polyfill','./src/main.js']
}, },
output: { output: {
path: config.build.assetsRoot, path: config.build.assetsRoot,
......
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head>
<head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>finance_serv</title> <title>finance_serv</title>
</head> </head>
<body style="height: 100%">
<body style="height: 100%;margin: 0">
<div id="app"></div> <div id="app"></div>
<!-- built files will be auto injected --> <!-- built files will be auto injected -->
</body> </body>
</html> </html>
...@@ -969,6 +969,25 @@ ...@@ -969,6 +969,25 @@
"esutils": "2.0.2" "esutils": "2.0.2"
} }
}, },
"babel-polyfill": {
"version": "6.26.0",
"resolved": "https://registry.npmjs.org/babel-polyfill/-/babel-polyfill-6.26.0.tgz",
"integrity": "sha1-N5k3q8Z9eJWXCtxiHyhM2WbPIVM=",
"dev": true,
"requires": {
"babel-runtime": "6.26.0",
"core-js": "2.5.7",
"regenerator-runtime": "0.10.5"
},
"dependencies": {
"regenerator-runtime": {
"version": "0.10.5",
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz",
"integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=",
"dev": true
}
}
},
"babel-preset-env": { "babel-preset-env": {
"version": "1.7.0", "version": "1.7.0",
"resolved": "https://registry.npmjs.org/babel-preset-env/-/babel-preset-env-1.7.0.tgz", "resolved": "https://registry.npmjs.org/babel-preset-env/-/babel-preset-env-1.7.0.tgz",
...@@ -10242,6 +10261,11 @@ ...@@ -10242,6 +10261,11 @@
"integrity": "sha512-x3LV3wdmmERhVCYy3quqA57NJW7F3i6faas++pJQWtknWT+n7k30F4TVdHvCLn48peTJFRvCpxs3UuFPqgeELg==", "integrity": "sha512-x3LV3wdmmERhVCYy3quqA57NJW7F3i6faas++pJQWtknWT+n7k30F4TVdHvCLn48peTJFRvCpxs3UuFPqgeELg==",
"dev": true "dev": true
}, },
"vuex": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/vuex/-/vuex-3.0.1.tgz",
"integrity": "sha512-wLoqz0B7DSZtgbWL1ShIBBCjv22GV5U+vcBFox658g6V0s4wZV9P4YjCNyoHSyIBpj1f29JBoNQIqD82cR4O3w=="
},
"watchpack": { "watchpack": {
"version": "1.6.0", "version": "1.6.0",
"resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.6.0.tgz", "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.6.0.tgz",
......
...@@ -14,7 +14,8 @@ ...@@ -14,7 +14,8 @@
"element-ui": "^2.4.4", "element-ui": "^2.4.4",
"style-loader": "^0.21.0", "style-loader": "^0.21.0",
"vue": "^2.5.2", "vue": "^2.5.2",
"vue-router": "^3.0.1" "vue-router": "^3.0.1",
"vuex": "^3.0.1"
}, },
"devDependencies": { "devDependencies": {
"autoprefixer": "^7.1.2", "autoprefixer": "^7.1.2",
...@@ -24,6 +25,7 @@ ...@@ -24,6 +25,7 @@
"babel-plugin-syntax-jsx": "^6.18.0", "babel-plugin-syntax-jsx": "^6.18.0",
"babel-plugin-transform-runtime": "^6.22.0", "babel-plugin-transform-runtime": "^6.22.0",
"babel-plugin-transform-vue-jsx": "^3.5.0", "babel-plugin-transform-vue-jsx": "^3.5.0",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.3.2", "babel-preset-env": "^1.3.2",
"babel-preset-stage-2": "^6.22.0", "babel-preset-stage-2": "^6.22.0",
"chalk": "^2.0.1", "chalk": "^2.0.1",
......
...@@ -21,6 +21,6 @@ export default { ...@@ -21,6 +21,6 @@ export default {
} }
<style> <style>
html,body,#app{ html,body,#app{
height:98% height:100%
} }
</style> </style>
<template> <template>
<div> <div id="contract_info">
<!-- 合同基本信息开始~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <!-- 合同基本信息开始~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<el-card class="box-card">
<el-card class="box-card" :name="1">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span style="font-size:24px" @click="contract_show =!contract_show">合同基本信息</span> <span style="font-size:24px;color:#eff0dc" @click="contract_show =!contract_show">合同基本信息</span>
<el-button style="float: right; padding: 8px 0" type="text" @click="form_submit('form')" :disabled="disabled_list[0]==1">提交</el-button> <el-button style="float: right; padding: 8px 0;color:#c9cabb" type="text" @click="form_submit('form')" v-show="disabled_list[0]!=1">提交</el-button>
</div> </div>
<transition name="el-fade-in-linear"> <transition name="el-fade-in-linear">
...@@ -70,7 +69,7 @@ ...@@ -70,7 +69,7 @@
<el-row style="text-align:left"> <el-row style="text-align:left">
<el-col :span="8"> <el-col :span="8">
<el-form-item label="签订日期"> <el-form-item label="签订日期">
<el-date-picker :disabled="disabled_list[0]==1" style="width:300px" v-model="form.sign_date" type="date" placeholder="日期" value-format="yyyy-MM-dd"> <el-date-picker :disabled="disabled_list[0]==1" class="width-220" v-model="form.sign_date" type="date" placeholder="日期" value-format="yyyy-MM-dd">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -185,7 +184,7 @@ ...@@ -185,7 +184,7 @@
<el-row style="text-align:left"> <el-row style="text-align:left">
<el-col :span="8"> <el-col :span="8">
<el-form-item label="累计应收款"> <el-form-item label="累计应收款">
<el-input class="width-220" v-model="total_receive_amount" :disabled="true"></el-input> <el-input id="total_receive_amount" class="width-220" v-model="total_receive_amount" :disabled="true"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
...@@ -195,7 +194,7 @@ ...@@ -195,7 +194,7 @@
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="逾期天数"> <el-form-item label="逾期天数">
<el-input class="width-220" v-model="over_days_unid" :disabled="true"></el-input> <el-input class="width-220" id="over_days" v-model="over_days_unid" :disabled="true"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
...@@ -227,9 +226,9 @@ ...@@ -227,9 +226,9 @@
<el-option v-for="item in mainten_start_point_data" :key="item.unid" :label="item.name" :value="item.code"> <el-option v-for="item in mainten_start_point_data" :key="item.unid" :label="item.name" :value="item.code">
</el-option> </el-option>
</el-select> </el-select>
<el-date-picker v-model="this.mainten_start_date" type="date" placeholder="开始日期" value-format="yyyy-MM-dd" :readonly="true"> <el-date-picker v-model="this.mainten_start_date" type="date" placeholder="开始日期" value-format="yyyy-MM-dd" :disabled="true">
</el-date-picker> </el-date-picker>
<el-date-picker v-model="this.mainten_end_date" type="date" placeholder="结束日期" value-format="yyyy-MM-dd" :readonly="true"> <el-date-picker v-model="this.mainten_end_date" type="date" placeholder="结束日期" value-format="yyyy-MM-dd" :disabled="true">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -237,14 +236,15 @@ ...@@ -237,14 +236,15 @@
<el-row style="text-align:left"> <el-row style="text-align:left">
<el-col :span="8"> <el-col :span="8">
<el-form-item label="备注"> <el-form-item label="备注">
<el-input :disabled="disabled_list[0]==1" v-model="form.contract_note" type="textarea" :rows="8" style="width:300px"></el-input> <el-input :disabled="disabled_list[0]==1" v-model="form.contract_note" type="textarea" :rows="5" style="width:300px"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="9"> <el-col :span="9">
<el-form-item label="上传文件"> <el-form-item label="上传文件">
<el-upload :disabled="disabled_list[0]==1" class="upload-demo" :action="upload_url" drag multiple :file-list="contract_appendix_list" :http-request="contract_upload" :on-preview="download_file" :on-remove="on_remove"> <el-upload :disabled="disabled_list[0]==1" class="upload-demo" :action="upload_url" multiple :file-list="contract_appendix_list" :http-request="contract_upload" :on-preview="download_file" :on-remove="on_remove">
<i class="el-icon-upload"></i> <el-tooltip class="item" effect="dark" content="上传后点击提交按钮生效" placement="top">
<div :disabled="disabled_list[0]==1" class="el-upload__text">上传后,点击提交按钮生效</div> <el-button :disabled="disabled_list[0]==1" type="primary" style="width:200px">点击上传</el-button>
</el-tooltip>
</el-upload> </el-upload>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -258,8 +258,8 @@ ...@@ -258,8 +258,8 @@
<el-card class="box-card"> <el-card class="box-card">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span style="font-size:24px" @click="payments_show = !payments_show">付款约定</span> <span style="font-size:24px;color:#eff0dc" @click="payments_show = !payments_show">付款约定</span>
<el-button style="float: right; padding: 8px 0" type="text" @click="form_submit('payment')" :disabled="disabled_list[0]==1">提交</el-button> <el-button style="float: right; padding: 8px 0;color:#c9cabb" type="text" @click="form_submit('payment')" v-show="disabled_list[0]!=1">提交</el-button>
</div> </div>
<transition name="el-fade-in-linear"> <transition name="el-fade-in-linear">
...@@ -343,8 +343,8 @@ ...@@ -343,8 +343,8 @@
<el-card class="box-card"> <el-card class="box-card">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span style="font-size:24px" @click="rebacks_show = !rebacks_show">合同回款信息(财务部)</span> <span style="font-size:24px;color:#eff0dc" @click="rebacks_show = !rebacks_show">合同回款信息(财务部)</span>
<el-button style="float: right; padding: 8px 0" type="text" @click="form_submit('reback')" :disabled="disabled_list[0]==1">提交</el-button> <el-button style="float: right; padding: 8px 0;color:#c9cabb" type="text" @click="form_submit('reback')" v-show="disabled_list[0]!=1">提交</el-button>
</div> </div>
<transition name="el-fade-in-linear"> <transition name="el-fade-in-linear">
...@@ -409,8 +409,8 @@ ...@@ -409,8 +409,8 @@
<el-card class="box-card"> <el-card class="box-card">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span style="font-size:24px" @click="receipts_show = !receipts_show">合同开票信息(财务部)</span> <span style="font-size:24px;color:#eff0dc" @click="receipts_show = !receipts_show">合同开票信息(财务部)</span>
<el-button style="float: right; padding: 8px 0" type="text" @click="form_submit('receipt')" :disabled="disabled_list[0]==1">提交</el-button> <el-button style="float: right; padding: 8px 0;color:#c9cabb" type="text" @click="form_submit('receipt')" v-show="disabled_list[0]!=1">提交</el-button>
</div> </div>
<transition name="el-fade-in-linear"> <transition name="el-fade-in-linear">
...@@ -479,10 +479,10 @@ ...@@ -479,10 +479,10 @@
<!-- 合同开票信息结束~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <!-- 合同开票信息结束~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!-- 发货信息开始~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <!-- 发货信息开始~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<el-card class="box-card"> <el-card class="box-card" id="tail">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span style="font-size:24px" @click="delivers_show = !delivers_show">发货信息(生产部)</span> <span style="font-size:24px;color:#eff0dc" @click="delivers_show = !delivers_show">发货信息(生产部)</span>
<el-button style="float: right; padding: 8px 0" type="text" @click="form_submit('deliver')" :disabled="disabled_list[1]==1">提交</el-button> <el-button style="float: right; padding: 8px 0;color:#c9cabb" type="text" @click="form_submit('deliver')" v-show="disabled_list[1]!=1">提交</el-button>
</div> </div>
<transition name="el-fade-in-linear"> <transition name="el-fade-in-linear">
...@@ -542,8 +542,8 @@ ...@@ -542,8 +542,8 @@
<el-card class="box-card"> <el-card class="box-card">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span style="font-size:24px" @click="acceptanc_show = !acceptanc_show">工程验收信息(工程部)</span> <span style="font-size:24px;color:#eff0dc" @click="acceptanc_show = !acceptanc_show">工程验收信息(工程部)</span>
<el-button style="float: right; padding: 8px 0" type="text" @click="form_submit('project')" :disabled="disabled_list[2]==1">提交</el-button> <el-button style="float: right; padding: 8px 0;color:#c9cabb" type="text" @click="form_submit('project')" v-show="disabled_list[2]!=1">提交</el-button>
</div> </div>
<transition name="el-fade-in-linear"> <transition name="el-fade-in-linear">
...@@ -737,7 +737,7 @@ export default { ...@@ -737,7 +737,7 @@ export default {
// 工程验收表单 // 工程验收表单
first_acceptancs_form: { first_acceptancs_form: {
acceptanc_unid: null, acceptanc_unid: null,
acceptanc_type: null, acceptanc_type: "",
acceptanc_date: null, acceptanc_date: null,
acceptanc_note: null, acceptanc_note: null,
appendix_unids: [] appendix_unids: []
...@@ -745,7 +745,7 @@ export default { ...@@ -745,7 +745,7 @@ export default {
final_acceptancs_form: { final_acceptancs_form: {
acceptanc_unid: null, acceptanc_unid: null,
acceptanc_type: null, acceptanc_type: "",
acceptanc_date: null, acceptanc_date: null,
acceptanc_note: null, acceptanc_note: null,
appendix_unids: [] appendix_unids: []
...@@ -1292,7 +1292,7 @@ export default { ...@@ -1292,7 +1292,7 @@ export default {
this.form.contract_amount this.form.contract_amount
).toFixed(2); ).toFixed(2);
} }
return receipt_propority + "%"; return receipt_propority;
}, },
reback_propority_cal(index) { reback_propority_cal(index) {
var reback_propority = 0; var reback_propority = 0;
...@@ -1302,7 +1302,7 @@ export default { ...@@ -1302,7 +1302,7 @@ export default {
this.form.contract_amount * this.form.contract_amount *
100; 100;
} }
return parseFloat(reback_propority).toFixed(2) + "%"; return parseFloat(reback_propority).toFixed(2);
}, },
// dialog_cancel~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // dialog_cancel~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...@@ -1397,7 +1397,6 @@ export default { ...@@ -1397,7 +1397,6 @@ export default {
if (valid) { if (valid) {
var payment_unid = this.payments_form.payment_unid; var payment_unid = this.payments_form.payment_unid;
var type_value = this.payments_form.payment_type; var type_value = this.payments_form.payment_type;
debugger;
if ( if (
(type_value == "100004" || type_value == "100005") && (type_value == "100004" || type_value == "100005") &&
!this.modify_data !this.modify_data
...@@ -1594,6 +1593,15 @@ export default { ...@@ -1594,6 +1593,15 @@ export default {
this.payment_type_tag = 0; this.payment_type_tag = 0;
} }
data.splice(index, 1); data.splice(index, 1);
if (appendUrl == "delivers") {
this.delivers_form = {
deliver_unid: null,
deliver_goods_date: "",
goods_acceptanc_date: "",
appendix_unids: [],
delivers_appendix_list: []
};
}
} else { } else {
this.$message.error("删除失败"); this.$message.error("删除失败");
} }
...@@ -1606,7 +1614,17 @@ export default { ...@@ -1606,7 +1614,17 @@ export default {
) { ) {
this.payment_type_tag = 0; this.payment_type_tag = 0;
} }
debugger;
data.splice(index, 1); data.splice(index, 1);
if (appendUrl == "delivers") {
this.delivers_form = {
deliver_unid: null,
deliver_goods_date: "",
goods_acceptanc_date: "",
appendix_unids: [],
delivers_appendix_list: []
};
}
} }
}) })
.catch(action => { .catch(action => {
...@@ -1641,7 +1659,9 @@ export default { ...@@ -1641,7 +1659,9 @@ export default {
}, },
receipt_data_modify(index, data) { receipt_data_modify(index, data) {
this.receipts_form.receipt_unid = data[index].receipt_unid; this.receipts_form.receipt_unid = data[index].receipt_unid;
this.receipts_form.receipt_amount = data[index].receipt_amount; this.receipts_form.receipt_amount = parseFloat(
data[index].receipt_amount
).toFixed(2);
this.receipts_form.oa_flow_id = data[index].oa_flow_id; this.receipts_form.oa_flow_id = data[index].oa_flow_id;
this.receipts_form.receipt_note = data[index].receipt_note; this.receipts_form.receipt_note = data[index].receipt_note;
this.modify_data = true; this.modify_data = true;
...@@ -2007,7 +2027,9 @@ export default { ...@@ -2007,7 +2027,9 @@ export default {
item.reback_unid = e.reback_unid; item.reback_unid = e.reback_unid;
item.reback_progress = e.reback_progress; item.reback_progress = e.reback_progress;
item.reback_date = e.reback_date; item.reback_date = e.reback_date;
item.actual_reback_amount = e.actual_reback_amount; item.actual_reback_amount = parseFloat(
e.actual_reback_amount
).toFixed(2);
item.reback_note = e.reback_note; item.reback_note = e.reback_note;
this.rebacks_data.push(item); this.rebacks_data.push(item);
} }
...@@ -2032,7 +2054,7 @@ export default { ...@@ -2032,7 +2054,7 @@ export default {
var item = {}; var item = {};
item.receipt_unid = e.receipt_unid; item.receipt_unid = e.receipt_unid;
item.oa_flow_id = e.oa_flow_id; item.oa_flow_id = e.oa_flow_id;
item.receipt_amount = e.receipt_amount; item.receipt_amount = parseFloat(e.receipt_amount).toFixed(2);
item.receipt_note = e.receipt_note; item.receipt_note = e.receipt_note;
item.receipt_progress = e.receipt_progress; item.receipt_progress = e.receipt_progress;
this.receipts_data.push(item); this.receipts_data.push(item);
...@@ -2333,6 +2355,11 @@ export default { ...@@ -2333,6 +2355,11 @@ export default {
.then(res => { .then(res => {
if (res.data.ecode == "500") { if (res.data.ecode == "500") {
this.$message.error("提交失败"); this.$message.error("提交失败");
} else {
this.$message({
type: "success",
message: "提交成功"
});
} }
if (i == this.payments_data.length - 1) { if (i == this.payments_data.length - 1) {
this.payments_data = []; this.payments_data = [];
...@@ -2357,6 +2384,11 @@ export default { ...@@ -2357,6 +2384,11 @@ export default {
.then(res => { .then(res => {
if (res.data.ecode == "500") { if (res.data.ecode == "500") {
this.$message.error("提交失败"); this.$message.error("提交失败");
} else {
this.$message({
type: "success",
message: "提交成功"
});
} }
if (i == this.payments_data.length - 1) { if (i == this.payments_data.length - 1) {
this.payments_data = []; this.payments_data = [];
...@@ -2387,6 +2419,11 @@ export default { ...@@ -2387,6 +2419,11 @@ export default {
.then(res => { .then(res => {
if (res.data.ecode == "500") { if (res.data.ecode == "500") {
this.$message.error("提交失败"); this.$message.error("提交失败");
} else {
this.$message({
type: "success",
message: "提交成功"
});
} }
if (i == this.rebacks_data.length - 1) { if (i == this.rebacks_data.length - 1) {
this.rebacks_data = []; this.rebacks_data = [];
...@@ -2408,6 +2445,11 @@ export default { ...@@ -2408,6 +2445,11 @@ export default {
.then(res => { .then(res => {
if (res.data.ecode == "500") { if (res.data.ecode == "500") {
this.$message.error("提交失败"); this.$message.error("提交失败");
} else {
this.$message({
type: "success",
message: "提交成功"
});
} }
if (i == this.rebacks_data.length - 1) { if (i == this.rebacks_data.length - 1) {
this.rebacks_data = []; this.rebacks_data = [];
...@@ -2441,6 +2483,11 @@ export default { ...@@ -2441,6 +2483,11 @@ export default {
.then(res => { .then(res => {
if (res.data.ecode == "500") { if (res.data.ecode == "500") {
this.$message.error("提交失败"); this.$message.error("提交失败");
} else {
this.$message({
type: "success",
message: "提交成功"
});
} }
if (i == this.receipts_data.length - 1) { if (i == this.receipts_data.length - 1) {
this.receipts_data = []; this.receipts_data = [];
...@@ -2466,6 +2513,11 @@ export default { ...@@ -2466,6 +2513,11 @@ export default {
.then(res => { .then(res => {
if (res.data.ecode == "500") { if (res.data.ecode == "500") {
this.$message.error("提交失败"); this.$message.error("提交失败");
} else {
this.$message({
type: "success",
message: "提交成功"
});
} }
if (i == this.receipts_data.length - 1) { if (i == this.receipts_data.length - 1) {
this.receipts_data = []; this.receipts_data = [];
...@@ -2498,6 +2550,11 @@ export default { ...@@ -2498,6 +2550,11 @@ export default {
.then(res => { .then(res => {
if (res.data.ecode == "500") { if (res.data.ecode == "500") {
this.$message.error("提交失败"); this.$message.error("提交失败");
} else {
this.$message({
type: "success",
message: "提交成功"
});
} }
if (i == this.delivers_data.length - 1) { if (i == this.delivers_data.length - 1) {
this.delivers_data = []; this.delivers_data = [];
...@@ -2522,6 +2579,11 @@ export default { ...@@ -2522,6 +2579,11 @@ export default {
.then(res => { .then(res => {
if (res.data.ecode == "500") { if (res.data.ecode == "500") {
this.$message.error("提交失败"); this.$message.error("提交失败");
} else {
this.$message({
type: "success",
message: "提交成功"
});
} }
if (i == this.delivers_data.length - 1) { if (i == this.delivers_data.length - 1) {
this.delivers_data = []; this.delivers_data = [];
...@@ -2547,6 +2609,26 @@ export default { ...@@ -2547,6 +2609,26 @@ export default {
} else { } else {
first_method = "post"; first_method = "post";
} }
if (this.first_acceptancs_form.acceptanc_type == "") {
if (this.first_acceptancs_form.acceptanc_unid != null) {
this.$Axios({
method: "DELETE",
url:
this.contract_base_url +
this.form.contract_unid +
"/project/acceptancs",
data: {
acceptanc_unids: [
this.first_acceptancs_form.acceptanc_unid
]
}
})
.then(res => {
console.log(res.data);
})
.catch();
}
} else {
this.$Axios({ this.$Axios({
method: first_method, method: first_method,
url: url:
...@@ -2565,12 +2647,41 @@ export default { ...@@ -2565,12 +2647,41 @@ export default {
this.$refs["final_acceptancs_form"].resetFields(); this.$refs["final_acceptancs_form"].resetFields();
this.get_project_info(unid); this.get_project_info(unid);
return; return;
} else { }
})
.catch(err => {
this.$message.error("提交失败");
});
}
if (this.final_acceptancs_form.acceptanc_unid != null) { if (this.final_acceptancs_form.acceptanc_unid != null) {
final_method = "put"; final_method = "put";
} else { } else {
final_method = "post"; final_method = "post";
} }
if (this.final_acceptancs_form.acceptanc_type == "") {
if (this.final_acceptancs_form.acceptanc_unid != null) {
this.$Axios({
method: "DELETE",
url:
this.contract_base_url +
this.form.contract_unid +
"/project/acceptancs",
data: {
acceptanc_unids: [
this.final_acceptancs_form.acceptanc_unid
]
}
})
.then(res => {
console.log(res.data);
this.$refs["first_acceptancs_form"].resetFields();
this.$refs["final_acceptancs_form"].resetFields();
this.get_project_info(unid);
})
.catch();
}
} else {
this.$Axios({ this.$Axios({
method: final_method, method: final_method,
url: url:
...@@ -2590,21 +2701,16 @@ export default { ...@@ -2590,21 +2701,16 @@ export default {
type: "success", type: "success",
message: "提交成功" message: "提交成功"
}); });
// this.$router.go(0);
}
this.$refs["first_acceptancs_form"].resetFields(); this.$refs["first_acceptancs_form"].resetFields();
this.$refs["final_acceptancs_form"].resetFields(); this.$refs["final_acceptancs_form"].resetFields();
this.get_project_info(unid); this.get_project_info(unid);
})
.catch(err => {
this.$message.error("提交失败");
});
} }
}) })
.catch(err => { .catch(err => {
this.$message.error("提交失败"); this.$message.error("提交失败");
}); });
} }
}
}); });
} }
}); });
...@@ -2619,7 +2725,7 @@ export default { ...@@ -2619,7 +2725,7 @@ export default {
} }
}, },
created() { created() {
if (sessionStorage.getItem("user_roles")) { if (sessionStorage.getItem("user_roles") != "null") {
var roles = JSON.parse(sessionStorage.getItem("user_roles")); var roles = JSON.parse(sessionStorage.getItem("user_roles"));
for (let i = 0; i < roles.length; i++) { for (let i = 0; i < roles.length; i++) {
const e = roles[i]; const e = roles[i];
...@@ -2733,13 +2839,66 @@ export default { ...@@ -2733,13 +2839,66 @@ export default {
.add_button { .add_button {
font-size: 20px; font-size: 20px;
padding-top: 20px; padding-top: 20px;
color: black;
} }
.width-220 { .width-220 {
width: 300px; width: 220px;
} }
span:hover { span:hover {
cursor: pointer; cursor: pointer;
text-shadow: lightgray 0.1em 0.1em 0.2em; }
.box-card >>> .el-card__header {
background-color: #34352c;
}
#contract_info >>> #over_days:disabled {
background: yellow;
color: black;
}
#contract_info >>> #total_receive_amount:disabled {
background: yellow;
color: black;
}
#contract_info >>> label {
color: black;
}
#contract_info >>> .el-card {
margin-bottom: 20px;
}
#contract_info >>> .el-card__body {
background: lightgray;
}
#contract_info >>> input {
border-color: black;
color: black;
}
#contract_info >>> .el-date-editor,
#contract_info >>> .el-textarea__inner,
#contract_info >>> .el-upload-dragger {
border-color: black;
}
#contract_info >>> .el-range-editor.is-disabled,
#contract_info >>> .el-textarea__inner:disabled,
#contract_info >>> .el-upload-dragger:disabled {
color: black;
background: lightgray;
}
#contract_info >>> .el-input-number__decrease,
#contract_info >>> .el-input-number__increase {
color: black;
background: lightgray;
border: 0px !important;
}
#contract_info >>> input:disabled {
color: black;
background: lightgray;
}
#contract_info >>> thead > tr > th > .cell {
color: black;
}
#contract_info >>> thead > tr > th {
background-color: lightgray;
} }
</style> </style>
...@@ -32,8 +32,8 @@ export default { ...@@ -32,8 +32,8 @@ export default {
name: "login", name: "login",
data() { data() {
return { return {
password_type:"password", password_type: "password",
view_password:"icon i-password-not-view", view_password: "icon i-password-not-view",
contract_base_url: disparch_data.contract_base_url, contract_base_url: disparch_data.contract_base_url,
code_base_url: disparch_data.code_base_url, code_base_url: disparch_data.code_base_url,
auth_base_url: disparch_data.auth_base_url, auth_base_url: disparch_data.auth_base_url,
...@@ -51,13 +51,13 @@ export default { ...@@ -51,13 +51,13 @@ export default {
}; };
}, },
methods: { methods: {
show_password(){ show_password() {
if (this.password_type == "password") { if (this.password_type == "password") {
this.password_type = "text", (this.password_type = "text"),
this.view_password = "icon i-password-view" (this.view_password = "icon i-password-view");
}else { } else {
this.password_type = "password", (this.password_type = "password"),
this.view_password = "icon i-password-not-view" (this.view_password = "icon i-password-not-view");
} }
}, },
submitForm(form) { submitForm(form) {
...@@ -81,20 +81,18 @@ export default { ...@@ -81,20 +81,18 @@ export default {
}); });
} else { } else {
window.localStorage.setItem("username", this.form.username); window.localStorage.setItem("username", this.form.username);
window.sessionStorage.setItem("loginCheck", true); sessionStorage.setItem("login_check",true)
window.sessionStorage.setItem("user_unid", res.data.user_unid); sessionStorage.setItem("user_unid",res.data.user_unid)
window.sessionStorage.setItem("rtoken", res.data.rtoken); sessionStorage.setItem("rtoken",res.data.rtoken)
window.sessionStorage.setItem( sessionStorage.setItem("user_roles",JSON.stringify(res.data.roles));
"user_roles", sessionStorage.setItem("user_name",res.data.user_name)
JSON.stringify(res.data.roles) this.get_provinces();
); this.get_contract_state_data();
this.get_provinces(), this.get_contract_type_data();
this.get_contract_state_data(), this.get_amount_state_unid_data();
this.get_contract_type_data(), this.get_mainten_start_point_data();
this.get_amount_state_unid_data(), this.get_product_line_type_data();
this.get_mainten_start_point_data(), this.get_payment_type_data();
this.get_product_line_type_data(),
this.get_payment_type_data(),
// this.get_salesperson(), // this.get_salesperson(),
// this.get_contract_unid(), // this.get_contract_unid(),
// this.get_projects(), // this.get_projects(),
...@@ -310,19 +308,15 @@ export default { ...@@ -310,19 +308,15 @@ export default {
}); });
}, },
manager() { manager() {
window.sessionStorage.setItem("loginCheck", true); sessionStorage.setItem('manager','1')
window.sessionStorage.setItem("manager", "1"); sessionStorage.setItem('login_check','1')
this.get_provinces(), this.get_provinces();
this.get_contract_state_data(), this.get_contract_state_data();
this.get_contract_type_data(), this.get_contract_type_data();
this.get_amount_state_unid_data(), this.get_amount_state_unid_data();
this.get_mainten_start_point_data(), this.get_mainten_start_point_data();
this.get_product_line_type_data(), this.get_product_line_type_data();
this.get_payment_type_data(), this.get_payment_type_data();
// this.get_salesperson(),
// this.get_contract_unid(),
// this.get_projects(),
// this.get_customers();
this.$router.push({ path: "/nav/main" }); this.$router.push({ path: "/nav/main" });
}, },
get_customers() { get_customers() {
......
<template> <template>
<div style="align:center"> <transition name="logo-fade">
<div style="align:center" v-show="show">
<span style="font-size:100px;margin-top:15%;margin-bottom:0;margin-left:auto;margin-right:auto;background-color:black;color:white;width:622px;display:block">合同管理系统</span> <span style="font-size:100px;margin-top:15%;margin-bottom:0;margin-left:auto;margin-right:auto;background-color:black;color:white;width:622px;display:block">合同管理系统</span>
<img src="../assets/logo.png" alt=""> <img src="../assets/logo.png" alt="">
</div> </div>
</transition>
</template> </template>
<script> <script>
export default {}; export default {
data(){
return {
show:false
}
},
mounted() {
this.show = true;
},
};
</script> </script>
<style scoped>
.logo-fade-enter-active {
transition: all 3.5s ease;
}
.logo-fade-enter {
opacity: 0;
}
</style>
<template> <template>
<el-card class="box-card"> <el-card class="box-card" id="manage">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span style="font-size:24px">后台管理</span> <span style="font-size:24px;color:#eff0dc">后台管理</span>
</div> </div>
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<el-row type="flex" justify="start" style="text-align :left;border-bottom:1px solid #ebeef5;padding-bottom:18px"> <el-row type="flex" justify="start" style="text-align :left;border-bottom:1px solid #ebeef5;padding-bottom:18px">
...@@ -56,9 +56,6 @@ export default { ...@@ -56,9 +56,6 @@ export default {
name: "manage", name: "manage",
data() { data() {
return { return {
check_password_view:"",
new_password_view:"",
odd_password_view:"",
login_user_dialog_show: false, login_user_dialog_show: false,
code_base_url: disparch_data.code_base_url, code_base_url: disparch_data.code_base_url,
contract_base_url: disparch_data.contract_base_url, contract_base_url: disparch_data.contract_base_url,
...@@ -287,7 +284,24 @@ export default { ...@@ -287,7 +284,24 @@ export default {
.add_button { .add_button {
font-size: 20px; font-size: 20px;
padding-top: 18px; padding-top: 18px;
color: #409eff; color: black;
}
#manage >>> .el-button--primary {
border-color: #34352c;
background-color: #34352c
}
#manage >>> label {
color: black;
}
#manage >>> .el-card__body {
background: lightgray;
}
#manage >>> input {
border-color: black;
color: black
}
#manage >>> .el-card__header {
background-color: #34352c;
} }
</style> </style>
<template> <template>
<el-container> <el-container id="nav">
<el-aside width="10%"> <el-aside width="10%">
<el-menu :default-active="$route.path" class="el-menu-vertical-demo" router :collapse="false"> <el-menu :default-active="$route.path" class="el-menu-vertical-demo" router :collapse="false" text-color="white" background-color="black" active-text-color="#ffd04b">
<div style="height:20%;text-align:center"> <div style="height:20%;text-align:center">
<img src="../assets/logo.png" alt="" style="width:100%;height:26%"> <img src="../assets/logo.png" alt="" style="width:100%;height:26%">
</div> </div>
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<i class="icon i-search"></i> <i class="icon i-search"></i>
<span slot="title">检索合同</span> <span slot="title">检索合同</span>
</el-menu-item> </el-menu-item>
<el-menu-item index="/nav/contract/0" @click="contract"> <el-menu-item index="/nav/contract/0" @click="contract" v-show="contract_show">
<i class="icon i-file"></i> <i class="icon i-file"></i>
<span slot="title">合同信息</span> <span slot="title">合同信息</span>
</el-menu-item> </el-menu-item>
...@@ -46,7 +46,8 @@ export default { ...@@ -46,7 +46,8 @@ export default {
management: false, management: false,
username: "", username: "",
department: "", department: "",
collapse: true collapse: true,
contract_show: true,
}; };
}, },
...@@ -70,14 +71,13 @@ export default { ...@@ -70,14 +71,13 @@ export default {
} }
}, },
beforeCreate() { beforeCreate() {
if (!sessionStorage.getItem("loginCheck")) { if (!sessionStorage.getItem("login_check")) {
alert("请登录"); alert("请登录");
this.$router.push({ path: "/" }); this.$router.push({ path: "/" });
} }
}, },
created() { created() {
this.username = sessionStorage.getItem("user_name"); if (sessionStorage.getItem("user_roles") != "null") {
if (sessionStorage.getItem("user_roles")) {
var roles = JSON.parse(sessionStorage.getItem("user_roles")); var roles = JSON.parse(sessionStorage.getItem("user_roles"));
for (let i = 0; i < roles.length; i++) { for (let i = 0; i < roles.length; i++) {
const e = roles[i]; const e = roles[i];
...@@ -85,6 +85,8 @@ export default { ...@@ -85,6 +85,8 @@ export default {
this.management = true; this.management = true;
} }
} }
}else{
this.contract_show = false;
} }
if (sessionStorage.getItem("manager")) { if (sessionStorage.getItem("manager")) {
this.management = true; this.management = true;
...@@ -94,15 +96,16 @@ export default { ...@@ -94,15 +96,16 @@ export default {
</script> </script>
<style> <style>
.el-main { .el-container > .el-main {
text-align: center; text-align: center;
padding-top: 0;
padding-left: 0;
} }
.el-container, .el-container,
.el-aside { .el-aside {
height: 100%; height: 100%;
} }
.el-menu { .el-aside > .el-menu {
height: 100%; height: 100%;
} }
</style> </style>
<template> <template>
<div> <div id="search">
<el-card class="box-card"> <el-card class="box-card">
<div slot="header" class="clearfix "> <div slot="header" class="clearfix ">
<span style="font-size:24px;padding-right:0px">检索条件</span> <span style="font-size:24px;padding-right:0px;color:#eff0dc">检索条件</span>
</div> </div>
<el-form id="form" :inline="true" :model="search_form" class="demo-form-inline" label-width="100px" ref="search_form" :rules="search_form_rules"> <el-form id="form" :inline="true" :model="search_form" class="demo-form-inline" label-width="100px" ref="search_form" :rules="search_form_rules">
<el-row style="text-align:left"> <el-row style="text-align:left">
<el-col :span="6"> <el-col :span="6">
<el-form-item label="销售员" prop="salesperson_name__like"> <el-form-item label="合同编号" prop="contract_unid">
<el-input style="width:217px" v-model="search_form.contract_unid"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="销售员" v-if="sales" >
<el-input style="width:217px" :readonly="true" v-model="salesperson_name"></el-input>
</el-form-item>
<el-form-item label="销售员" prop="salesperson_name__like" v-if="!sales">
<el-input style="width:217px" v-model="search_form.salesperson_name__like"></el-input> <el-input style="width:217px" v-model="search_form.salesperson_name__like"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -21,13 +29,7 @@ ...@@ -21,13 +29,7 @@
<el-input style="width:217px" v-model="search_form.customer_name__like"></el-input> <el-input style="width:217px" v-model="search_form.customer_name__like"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6">
<el-form-item label="质保周期(月)" prop="guarantee_period">
<el-select v-model="search_form.guarantee_period" clearable>
<el-option v-for="n in guarantee_period_list" :key="n" :label="n" :value="n"></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row> </el-row>
<el-row style="text-align:left"> <el-row style="text-align:left">
<el-col :span="6"> <el-col :span="6">
...@@ -105,6 +107,13 @@ ...@@ -105,6 +107,13 @@
<el-input style="width:217px" v-model="search_form.confirm_income_amount"></el-input> <el-input style="width:217px" v-model="search_form.confirm_income_amount"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6">
<el-form-item label="质保周期(月)" prop="guarantee_period">
<el-select v-model="search_form.guarantee_period" clearable>
<el-option v-for="n in guarantee_period_list" :key="n" :label="n" :value="n"></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12" style="text-align:left"> <el-col :span="12" style="text-align:left">
<el-form-item label="项目所在地" prop="province"> <el-form-item label="项目所在地" prop="province">
<el-select style="width:100px" v-model="search_form.province" clearable placeholder="省" @change="get_cities()"> <el-select style="width:100px" v-model="search_form.province" clearable placeholder="省" @change="get_cities()">
...@@ -129,20 +138,20 @@ ...@@ -129,20 +138,20 @@
<el-row style="text-align:left"> <el-row style="text-align:left">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="签订日期" prop="start_date"> <el-form-item label="签订日期" prop="start_date">
<el-date-picker style="width:217px" v-model="search_form.start_date" type="date" placeholder="开始日期" value-format="yyyy-MM-dd"> <el-date-picker style="width:202px" v-model="search_form.start_date" type="date" placeholder="开始日期" value-format="yyyy-MM-dd">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item prop="end_date"> <el-form-item prop="end_date">
<el-date-picker style="width:217px" v-model="search_form.end_date" type="date" placeholder="结束日期" value-format="yyyy-MM-dd"> <el-date-picker style="width:202px" v-model="search_form.end_date" type="date" placeholder="结束日期" value-format="yyyy-MM-dd">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="逾期天数" prop="overdays_start_point"> <el-form-item label="逾期天数" prop="overdays_start_point">
<el-input style="width:217px" v-model="search_form.overdays_start_point" placeholder="不填默认为0"></el-input> <el-input v-model="search_form.overdays_start_point" placeholder="不填默认为0"></el-input>
</el-form-item> </el-form-item>
<el-form-item prop="overdays_end_point"> <el-form-item prop="overdays_end_point">
<el-input style="width:217px" v-model="search_form.overdays_end_point" placeholder="不填则无上限"></el-input> <el-input v-model="search_form.overdays_end_point" placeholder="不填则无上限"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
...@@ -150,18 +159,18 @@ ...@@ -150,18 +159,18 @@
<el-row style="text-align:left"> <el-row style="text-align:left">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="合同金额" prop="amount_start_point"> <el-form-item label="合同金额" prop="amount_start_point">
<el-input style="width:217px" v-model="search_form.amount_start_point" placeholder="不填默认为0"></el-input> <el-input v-model="search_form.amount_start_point" placeholder="不填默认为0"></el-input>
</el-form-item> </el-form-item>
<el-form-item prop="amount_end_point"> <el-form-item prop="amount_end_point">
<el-input style="width:217px" v-model="search_form.amount_end_point" placeholder="不填则无上限"></el-input> <el-input v-model="search_form.amount_end_point" placeholder="不填则无上限"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="应收账款余额" prop="leave_amount_start_point"> <el-form-item label="应收账款余额" prop="leave_amount_start_point">
<el-input style="width:217px" v-model="search_form.leave_amount_start_point" placeholder="不填默认为0"></el-input> <el-input v-model="search_form.leave_amount_start_point" placeholder="不填默认为0"></el-input>
</el-form-item> </el-form-item>
<el-form-item prop="leave_amount_end_point"> <el-form-item prop="leave_amount_end_point">
<el-input style="width:217px" v-model="search_form.leave_amount_end_point" placeholder="不填则无上限"></el-input> <el-input v-model="search_form.leave_amount_end_point" placeholder="不填则无上限"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
...@@ -176,7 +185,7 @@ ...@@ -176,7 +185,7 @@
<el-card class="box-card"> <el-card class="box-card">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span style="font-size:24px;padding-right:0px">检索结果</span> <span style="font-size:24px;padding-right:0px;color:#eff0dc">检索结果</span>
</div> </div>
<!-- test------------------------------------------------------------------------------------------------ --> <!-- test------------------------------------------------------------------------------------------------ -->
...@@ -258,37 +267,37 @@ ...@@ -258,37 +267,37 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="合同编号" prop="contract_unid" min-width="120" align="center"> <el-table-column label="合同编号" prop="contract_unid" min-width="9%" align="center">
</el-table-column> </el-table-column>
<el-table-column label="项目名称" prop="project_name" min-width="150" align="center"> <el-table-column label="项目名称" prop="project_name" min-width="11%" align="center">
</el-table-column> </el-table-column>
<el-table-column label="客户名称" prop="customer_name" min-width="150" align="center"> <el-table-column label="客户名称" prop="customer_name" min-width="11%" align="center">
</el-table-column> </el-table-column>
<el-table-column label="合同金额" prop="contract_amount" min-width="120" align="center"> <el-table-column label="合同金额" prop="contract_amount" min-width="9%" align="center">
</el-table-column> </el-table-column>
<el-table-column label="签订时间" prop="sign_date" min-width="100" align="center"> <el-table-column label="签订时间" prop="sign_date" min-width="8%" align="center">
</el-table-column> </el-table-column>
<el-table-column label="所属年份" min-width="80" align="center"> <el-table-column label="所属年份" min-width="6%" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
{{get_year(scope.row.sign_date)}} {{get_year(scope.row.sign_date)}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="所属月份" min-width="80" align="center"> <el-table-column label="所属月份" min-width="6%" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
{{get_month(scope.row.sign_date)}} {{get_month(scope.row.sign_date)}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="产品线类型" prop="product_line_type_name" min-width="120" align="center"> <el-table-column label="产品线类型" prop="product_line_type_name" min-width="9%" align="center">
</el-table-column> </el-table-column>
<el-table-column label="销售员" prop="salesperson_name" min-width="100" align="center"> <el-table-column label="销售员" prop="salesperson_name" min-width="7%" align="center">
</el-table-column> </el-table-column>
<el-table-column label="省" prop="province_name" min-width="80" align="center"> <el-table-column label="省" prop="province_name" min-width="6%" align="center">
</el-table-column> </el-table-column>
<el-table-column label="市" prop="city_name" min-width="80" align="center"> <el-table-column label="市" prop="city_name" min-width="6%" align="center">
</el-table-column> </el-table-column>
<el-table-column label="县" prop="county_name" min-width="80" align="center"> <el-table-column label="县" prop="county_name" min-width="7%" align="center">
</el-table-column> </el-table-column>
<el-table-column label="操作" min-width="50" align="center" fixed="right"> <el-table-column label="操作" min-width="4%" align="center" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" @click="go_to(scope.row.contract_unid)"> <el-button type="text" @click="go_to(scope.row.contract_unid)">
详情 详情
...@@ -325,6 +334,8 @@ export default { ...@@ -325,6 +334,8 @@ export default {
name: "search", name: "search",
data() { data() {
return { return {
sales:false,
salesperson_name:null,
provinces: [], provinces: [],
cities: [], cities: [],
counties: [], counties: [],
...@@ -349,6 +360,8 @@ export default { ...@@ -349,6 +360,8 @@ export default {
product_line_type_data: [], product_line_type_data: [],
amount_state_unid_data: [], amount_state_unid_data: [],
search_form: { search_form: {
contract_unid: null,
salesperson_unid: null,
salesperson_name__like: null, salesperson_name__like: null,
project_name__like: null, project_name__like: null,
customer_name__like: null, customer_name__like: null,
...@@ -422,45 +435,6 @@ export default { ...@@ -422,45 +435,6 @@ export default {
} }
}, },
methods: { methods: {
// remote---------------------------------------------------------------------------------
// salespersonIdRemoteMethod(query) {
// this.$Axios({
// method: "get",
// url: this.code_base_url + "simple/cates/09BB973F92/codes"
// })
// .then(response => {
// this.salesperson_unid_selected_data = response.data.list_data;
// })
// .catch(err => {
// console.log(err.message);
// });
// },
// projectIdRemoteMethod(query) {
// this.$Axios({
// method: "get",
// url: this.contract_base_url + "projects"
// })
// .then(response => {
// this.project_unid_selected_data = response.data;
// })
// .catch(err => {
// console.log(err.message);
// });
// },
// customerIdRemoteMethod(query) {
// this.$Axios({
// method: "get",
// url: this.contract_base_url + "customers"
// })
// .then(response => {
// this.customer_unid_selected_data = response.data.list_data;
// })
// .catch(err => {
// console.log(err.message);
// });
// },
// remote---------------------------------------------------------------------------------
// get start~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // get start~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
get_amount_state_unid_data() { get_amount_state_unid_data() {
this.$Axios({ this.$Axios({
...@@ -609,11 +583,14 @@ export default { ...@@ -609,11 +583,14 @@ export default {
commit() { commit() {
this.current_page = 1; this.current_page = 1;
sessionStorage.setItem("search_form", JSON.stringify(this.search_form)); sessionStorage.setItem(
"search_condition",
JSON.stringify(this.search_form)
);
this.get_list_data(); this.get_list_data();
}, },
page_change(val) { page_change(val) {
this.search_form = JSON.parse(sessionStorage.getItem("search_form")); this.search_form = JSON.parse(sessionStorage.getItem("search_condition"));
this.current_page = val; this.current_page = val;
console.log(this.current_page); console.log(this.current_page);
this.get_list_data(); this.get_list_data();
...@@ -645,11 +622,16 @@ export default { ...@@ -645,11 +622,16 @@ export default {
}); });
}, },
go_to(id) { go_to(id) {
sessionStorage.setItem("modify","1"); sessionStorage.setItem("modify", "1");
this.$router.push("/nav/contract/" + id); this.$router.push("/nav/contract/" + id);
} }
}, },
created() { created() {
if (sessionStorage.getItem("user_roles") == "null") {
this.salesperson_name = sessionStorage.getItem("user_name");
this.sales = true;
this.search_form.salesperson_unid = sessionStorage.getItem("user_unid")
}
if (sessionStorage.getItem("provinces")) { if (sessionStorage.getItem("provinces")) {
this.provinces = JSON.parse(sessionStorage.getItem("provinces")); this.provinces = JSON.parse(sessionStorage.getItem("provinces"));
} else { } else {
...@@ -691,4 +673,23 @@ export default { ...@@ -691,4 +673,23 @@ export default {
span { span {
padding-right: 10px; padding-right: 10px;
} }
#search >>> label {
color: black;
}
#search >>> .el-card__body {
background: lightgray;
}
#search >>> input {
border-color: black;
color: black;
}
#search >>> .el-card__header {
background-color: #34352c;
}
#search >>> thead > tr > th > .cell {
color: black;
}
#search >>> thead > tr > th {
background-color: lightgray;
}
</style> </style>
<template> <template>
<el-card class="box-card" shadow="hover" style="width:30%"> <el-card class="box-card" id="user" shadow="hover" style="width:30%;margin:auto">
<div slot="header" style="text-align:center" class="clearfix"> <div slot="header" style="text-align:center" class="clearfix">
<span style="font-size:24px">修改密码</span> <span style="font-size:24px;color:#eff0dc">修改密码</span>
</div> </div>
<el-form ref="password_form" :model="password_form" :rules="password_form_rules" label-width="60px" label-position="top"> <el-form ref="password_form" :model="password_form" :rules="password_form_rules" label-width="60px" label-position="top">
<el-form-item prop="odd_password"> <el-form-item prop="odd_password">
<el-input :type="odd_password_type" v-model="password_form.odd_password" auto-complete="off"> <el-input :type="odd_password_type" v-model="password_form.odd_password" auto-complete="off">
<template slot="prepend">原密码</template> <template slot="prepend">原密码</template>
<el-button slot="append" :icon="odd_password_view" @click="show_odd_password"></el-button> <el-button class="append_button" slot="append" :icon="odd_password_view" @click="show_odd_password"></el-button>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item prop="new_password"> <el-form-item prop="new_password">
<el-input :type="new_password_type" v-model="password_form.new_password" auto-complete="off"> <el-input :type="new_password_type" v-model="password_form.new_password" auto-complete="off">
<template slot="prepend">新密码</template> <template slot="prepend">新密码</template>
<el-button slot="append" :icon="new_password_view" @click="show_new_password"></el-button> <el-button class="append_button" slot="append" :icon="new_password_view" @click="show_new_password"></el-button>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item prop="check_password"> <el-form-item prop="check_password">
<el-input :type="new_password_type" v-model="password_form.check_password" auto-complete="off"> <el-input :type="new_password_type" v-model="password_form.check_password" auto-complete="off">
<template slot="prepend">新密码</template> <template slot="prepend">新密码</template>
<el-button slot="append" :icon="new_password_view" @click="show_new_password"></el-button> <el-button class="append_button" slot="append" :icon="new_password_view" @click="show_new_password"></el-button>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
...@@ -161,5 +161,28 @@ export default { ...@@ -161,5 +161,28 @@ export default {
<style scoped> <style scoped>
#user >>> label {
color: black;
}
#user >>> .el-card__body {
background: lightgray;
}
#user >>> input {
border-color: black;
color: black;
}
#user >>> .el-card__header {
background-color: #34352c;
}
#user >>> .el-input-group__prepend {
border-color: black;
color: black;
background-color: lightgray;
}
#user >>> .el-input-group__append {
color: black;
border-color: black;
background-color: lightgray;
}
</style> </style>
...@@ -4,13 +4,14 @@ import Vue from 'vue' ...@@ -4,13 +4,14 @@ import Vue from 'vue'
import App from './App' import App from './App'
import router from './router' import router from './router'
import ElementUI from 'element-ui' import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import Axios from 'axios' import Axios from 'axios'
import '../static/city-data'
import CollapseTransition from 'element-ui/lib/transitions/collapse-transition'; import CollapseTransition from 'element-ui/lib/transitions/collapse-transition';
import 'element-ui/lib/theme-chalk/index.css'
import '../static/city-data'
// import "./mock" // import "./mock"
import '../static/disparch' import '../static/disparch'
import './assets/icons/iconfont.css' import './assets/icons/iconfont.css'
import 'babel-polyfill'
Vue.component(CollapseTransition.name, CollapseTransition) Vue.component(CollapseTransition.name, CollapseTransition)
......
...@@ -19,21 +19,27 @@ export default new Router({ ...@@ -19,21 +19,27 @@ export default new Router({
{ {
path: '/nav', path: '/nav',
component: Nav, component: Nav,
name: "nav",
children: [{ children: [{
path: 'search', path: 'search',
component: Search component: Search,
name: 'search'
}, { }, {
path: 'contract/:contract_unid', path: 'contract/:contract_unid',
component: Contract component: Contract,
name:"contract"
}, { }, {
path: 'manage', path: 'manage',
component: Manage component: Manage,
name:'manage'
}, { }, {
path: 'main', path: 'main',
component: Main component: Main,
name:'main'
}, { }, {
path: 'user', path: 'user',
component: User component: User,
name:'user'
} }
] ]
......
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta http-equiv=X-UA-Compatible content="IE=edge"><title>finance_serv</title><link href=./static/css/app.d62e4b44ab39ef517343bab48304a001.css rel=stylesheet></head><body style="height: 100%"><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.fc2101258ea160a48533.js></script><script type=text/javascript src=./static/js/app.d5d4d3ffa539de4e4de6.js></script></body></html>
\ No newline at end of file \ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta http-equiv=X-UA-Compatible content="IE=edge"><title>finance_serv</title><link href=./static/css/app.ff0fceba9c9ed4b11c7a5e51bceb7d58.css rel=stylesheet></head><body style="height: 100%;margin: 0"><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.fc2101258ea160a48533.js></script><script type=text/javascript src=./static/js/app.4b46a9809ce71dd60d99.js></script></body></html>
\ No newline at end of file \ No newline at end of file
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
{"version":3,"sources":["webpack:///webpack/bootstrap 74db7c42138bb39b7743"],"names":["parentJsonpFunction","window","chunkIds","moreModules","executeModules","moduleId","chunkId","result","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","shift","__webpack_require__","s","installedModules","2","exports","module","l","m","c","d","name","getter","o","defineProperty","configurable","enumerable","get","n","__esModule","object","property","p","oe","err","console","error"],"mappings":"aACA,IAAAA,EAAAC,OAAA,aACAA,OAAA,sBAAAC,EAAAC,EAAAC,GAIA,IADA,IAAAC,EAAAC,EAAAC,EAAAC,EAAA,EAAAC,KACQD,EAAAN,EAAAQ,OAAoBF,IAC5BF,EAAAJ,EAAAM,GACAG,EAAAL,IACAG,EAAAG,KAAAD,EAAAL,GAAA,IAEAK,EAAAL,GAAA,EAEA,IAAAD,KAAAF,EACAU,OAAAC,UAAAC,eAAAC,KAAAb,EAAAE,KACAY,EAAAZ,GAAAF,EAAAE,IAIA,IADAL,KAAAE,EAAAC,EAAAC,GACAK,EAAAC,QACAD,EAAAS,OAAAT,GAEA,GAAAL,EACA,IAAAI,EAAA,EAAYA,EAAAJ,EAAAM,OAA2BF,IACvCD,EAAAY,IAAAC,EAAAhB,EAAAI,IAGA,OAAAD,GAIA,IAAAc,KAGAV,GACAW,EAAA,GAIA,SAAAH,EAAAd,GAGA,GAAAgB,EAAAhB,GACA,OAAAgB,EAAAhB,GAAAkB,QAGA,IAAAC,EAAAH,EAAAhB,IACAG,EAAAH,EACAoB,GAAA,EACAF,YAUA,OANAN,EAAAZ,GAAAW,KAAAQ,EAAAD,QAAAC,IAAAD,QAAAJ,GAGAK,EAAAC,GAAA,EAGAD,EAAAD,QAKAJ,EAAAO,EAAAT,EAGAE,EAAAQ,EAAAN,EAGAF,EAAAS,EAAA,SAAAL,EAAAM,EAAAC,GACAX,EAAAY,EAAAR,EAAAM,IACAhB,OAAAmB,eAAAT,EAAAM,GACAI,cAAA,EACAC,YAAA,EACAC,IAAAL,KAMAX,EAAAiB,EAAA,SAAAZ,GACA,IAAAM,EAAAN,KAAAa,WACA,WAA2B,OAAAb,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAL,EAAAS,EAAAE,EAAA,IAAAA,GACAA,GAIAX,EAAAY,EAAA,SAAAO,EAAAC,GAAsD,OAAA1B,OAAAC,UAAAC,eAAAC,KAAAsB,EAAAC,IAGtDpB,EAAAqB,EAAA,KAGArB,EAAAsB,GAAA,SAAAC,GAA8D,MAApBC,QAAAC,MAAAF,GAAoBA","file":"static/js/manifest.3ad1d5771e9b13dbdad2.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) {\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [], result;\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules, executeModules);\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n \t\tif(executeModules) {\n \t\t\tfor(i=0; i < executeModules.length; i++) {\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = executeModules[i]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t};\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// objects to store loaded and loading chunks\n \tvar installedChunks = {\n \t\t2: 0\n \t};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"./\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 74db7c42138bb39b7743"],"sourceRoot":""}
\ No newline at end of file \ No newline at end of file
{"version":3,"sources":["webpack:///webpack/bootstrap 5726eb9d12bc13f2aef2"],"names":["parentJsonpFunction","window","chunkIds","moreModules","executeModules","moduleId","chunkId","result","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","shift","__webpack_require__","s","installedModules","2","exports","module","l","m","c","d","name","getter","o","defineProperty","configurable","enumerable","get","n","__esModule","object","property","p","oe","err","console","error"],"mappings":"aACA,IAAAA,EAAAC,OAAA,aACAA,OAAA,sBAAAC,EAAAC,EAAAC,GAIA,IADA,IAAAC,EAAAC,EAAAC,EAAAC,EAAA,EAAAC,KACQD,EAAAN,EAAAQ,OAAoBF,IAC5BF,EAAAJ,EAAAM,GACAG,EAAAL,IACAG,EAAAG,KAAAD,EAAAL,GAAA,IAEAK,EAAAL,GAAA,EAEA,IAAAD,KAAAF,EACAU,OAAAC,UAAAC,eAAAC,KAAAb,EAAAE,KACAY,EAAAZ,GAAAF,EAAAE,IAIA,IADAL,KAAAE,EAAAC,EAAAC,GACAK,EAAAC,QACAD,EAAAS,OAAAT,GAEA,GAAAL,EACA,IAAAI,EAAA,EAAYA,EAAAJ,EAAAM,OAA2BF,IACvCD,EAAAY,IAAAC,EAAAhB,EAAAI,IAGA,OAAAD,GAIA,IAAAc,KAGAV,GACAW,EAAA,GAIA,SAAAH,EAAAd,GAGA,GAAAgB,EAAAhB,GACA,OAAAgB,EAAAhB,GAAAkB,QAGA,IAAAC,EAAAH,EAAAhB,IACAG,EAAAH,EACAoB,GAAA,EACAF,YAUA,OANAN,EAAAZ,GAAAW,KAAAQ,EAAAD,QAAAC,IAAAD,QAAAJ,GAGAK,EAAAC,GAAA,EAGAD,EAAAD,QAKAJ,EAAAO,EAAAT,EAGAE,EAAAQ,EAAAN,EAGAF,EAAAS,EAAA,SAAAL,EAAAM,EAAAC,GACAX,EAAAY,EAAAR,EAAAM,IACAhB,OAAAmB,eAAAT,EAAAM,GACAI,cAAA,EACAC,YAAA,EACAC,IAAAL,KAMAX,EAAAiB,EAAA,SAAAZ,GACA,IAAAM,EAAAN,KAAAa,WACA,WAA2B,OAAAb,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAL,EAAAS,EAAAE,EAAA,IAAAA,GACAA,GAIAX,EAAAY,EAAA,SAAAO,EAAAC,GAAsD,OAAA1B,OAAAC,UAAAC,eAAAC,KAAAsB,EAAAC,IAGtDpB,EAAAqB,EAAA,KAGArB,EAAAsB,GAAA,SAAAC,GAA8D,MAApBC,QAAAC,MAAAF,GAAoBA","file":"static/js/manifest.3ad1d5771e9b13dbdad2.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) {\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [], result;\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules, executeModules);\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n \t\tif(executeModules) {\n \t\t\tfor(i=0; i < executeModules.length; i++) {\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = executeModules[i]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t};\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// objects to store loaded and loading chunks\n \tvar installedChunks = {\n \t\t2: 0\n \t};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"./\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 5726eb9d12bc13f2aef2"],"sourceRoot":""}
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!