telephone-clients 3.0.101 → 3.0.102
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +116 -116
- package/src/components/MaterialsManage/MaterialsBase.vue +177 -177
- package/src/components/Util/RightTreeSafe.vue +346 -346
- package/src/components/pc/SiteSend.vue +281 -281
- package/src/components/pc/WorkCenterList.vue +292 -292
- package/src/components/pc/WorkListAllNew.vue +700 -706
- package/src/filiale/qianneng/pc/WorkListAllNew.vue +701 -711
- package/src/filiale/shanxian/pc/WorkList.vue +823 -823
- package/src/filiale/shexian/android/Outlay.vue +249 -249
- package/src/main.js +22 -22
- package/yarn-error.log +0 -7872
package/package.json
CHANGED
|
@@ -1,116 +1,116 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "telephone-clients",
|
|
3
|
-
"version": "3.0.
|
|
4
|
-
"description": "呼叫模块前台组件",
|
|
5
|
-
"main": "src/index.js",
|
|
6
|
-
"directories": {
|
|
7
|
-
"example": "examples",
|
|
8
|
-
"test": "test"
|
|
9
|
-
},
|
|
10
|
-
"scripts": {
|
|
11
|
-
"unit": "karma start test/unit/karma.conf.js",
|
|
12
|
-
"example": "node build/example-server.js",
|
|
13
|
-
"dev": "webpack-dev-server --config ./build/dev-server.js",
|
|
14
|
-
"android": "node build/dev-android.js",
|
|
15
|
-
"lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
|
|
16
|
-
"build": "rimraf dist && mkdirp dist && ncp static dist/static && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.prod.conf.js",
|
|
17
|
-
"e2e": "node test/e2e/runner.js",
|
|
18
|
-
"release": "bash build/release.sh"
|
|
19
|
-
},
|
|
20
|
-
"repository": "http://gitee.com/aote/telephone",
|
|
21
|
-
"keywords": [
|
|
22
|
-
"telephone-clients"
|
|
23
|
-
],
|
|
24
|
-
"author": "申志明",
|
|
25
|
-
"license": "ISC",
|
|
26
|
-
"dependencies": {
|
|
27
|
-
"@keeex/qrcodejs-kx": "^1.0.2",
|
|
28
|
-
"date-fns": "^2.29.3",
|
|
29
|
-
"dayjs": "^1.11.6",
|
|
30
|
-
"less": "^2.7.1",
|
|
31
|
-
"less-loader": "^2.2.3",
|
|
32
|
-
"qrcodejs2": "^0.0.2",
|
|
33
|
-
"src": "^1.1.2",
|
|
34
|
-
"swiper": "^6.1.2",
|
|
35
|
-
"vue": "^1.0.17",
|
|
36
|
-
"vue-awesome-swiper": "^4.1.1"
|
|
37
|
-
},
|
|
38
|
-
"devDependencies": {
|
|
39
|
-
"address-client": "3.0.23",
|
|
40
|
-
"babel-core": "^6.26.0",
|
|
41
|
-
"babel-loader": "^6.0.0",
|
|
42
|
-
"babel-plugin-transform-runtime": "^6.0.0",
|
|
43
|
-
"babel-preset-es2015": "^6.0.0",
|
|
44
|
-
"babel-preset-stage-2": "^6.0.0",
|
|
45
|
-
"chai": "^3.5.0",
|
|
46
|
-
"chromedriver": "^2.21.2",
|
|
47
|
-
"compression-webpack-plugin": "^1.1.2",
|
|
48
|
-
"connect-history-api-fallback": "^1.1.0",
|
|
49
|
-
"cross-env": "^1.0.7",
|
|
50
|
-
"cross-spawn": "^2.1.5",
|
|
51
|
-
"css-loader": "^0.23.0",
|
|
52
|
-
"echarts": "^4.1.0",
|
|
53
|
-
"eslint": "^2.0.0",
|
|
54
|
-
"eslint-config-standard": "^5.1.0",
|
|
55
|
-
"eslint-friendly-formatter": "^1.2.2",
|
|
56
|
-
"eslint-loader": "^1.3.0",
|
|
57
|
-
"eslint-plugin-html": "^1.3.0",
|
|
58
|
-
"eslint-plugin-promise": "^1.0.8",
|
|
59
|
-
"eslint-plugin-standard": "^1.3.2",
|
|
60
|
-
"eslint-plugin-vue": "^0.1.1",
|
|
61
|
-
"eventsource-polyfill": "^0.9.6",
|
|
62
|
-
"express": "^4.13.3",
|
|
63
|
-
"extract-text-webpack-plugin": "^3.0.2",
|
|
64
|
-
"file-loader": "^0.8.4",
|
|
65
|
-
"function-bind": "^1.0.2",
|
|
66
|
-
"html-webpack-plugin": "^2.30.1",
|
|
67
|
-
"http-proxy-middleware": "^0.11.0",
|
|
68
|
-
"inject-loader": "^2.0.1",
|
|
69
|
-
"isparta-loader": "^2.0.0",
|
|
70
|
-
"jasmine-core": "^2.4.1",
|
|
71
|
-
"jquery": "^3.3.1",
|
|
72
|
-
"jsencrypt": "^3.0.0-rc.1",
|
|
73
|
-
"json-loader": "^0.5.4",
|
|
74
|
-
"karma": "^1.4.1",
|
|
75
|
-
"karma-chrome-launcher": "^2.2.0",
|
|
76
|
-
"karma-coverage": "^1.1.1",
|
|
77
|
-
"karma-mocha": "^1.3.0",
|
|
78
|
-
"karma-sinon-chai": "^1.3.1",
|
|
79
|
-
"karma-sourcemap-loader": "^0.3.7",
|
|
80
|
-
"karma-spec-reporter": "0.0.31",
|
|
81
|
-
"karma-webpack": "^2.0.2",
|
|
82
|
-
"less-loader": "^2.2.3",
|
|
83
|
-
"lolex": "^1.5.2",
|
|
84
|
-
"mkdirp": "^0.5.1",
|
|
85
|
-
"mocha": "^3.2.0",
|
|
86
|
-
"ncp": "^2.0.0",
|
|
87
|
-
"nightwatch": "^0.8.18",
|
|
88
|
-
"ol": "^4.6.4",
|
|
89
|
-
"phantomjs-prebuilt": "^2.1.3",
|
|
90
|
-
"proj4": "^2.2.1",
|
|
91
|
-
"rimraf": "^2.5.0",
|
|
92
|
-
"selenium-server": "2.52.0",
|
|
93
|
-
"sinon": "^2.1.0",
|
|
94
|
-
"sinon-chai": "^2.8.0",
|
|
95
|
-
"style": "0.0.3",
|
|
96
|
-
"style-loader": "^0.20.3",
|
|
97
|
-
"system-clients": "3.2.55",
|
|
98
|
-
"system-phone": "1.2.100",
|
|
99
|
-
"terser-webpack-plugin-legacy": "^1.2.5",
|
|
100
|
-
"url-loader": "^0.5.7",
|
|
101
|
-
"vue-client": "1.24.77",
|
|
102
|
-
"vue-hot-reload-api": "^1.2.0",
|
|
103
|
-
"vue-html-loader": "^1.0.0",
|
|
104
|
-
"vue-loader": "^8.2.1",
|
|
105
|
-
"vue-resource": "^1.5.0",
|
|
106
|
-
"vue-router": "^0.7.13",
|
|
107
|
-
"vue-strap": "^1.0.9",
|
|
108
|
-
"vue-style-loader": "^1.0.0",
|
|
109
|
-
"vue-validator": "2.1.7",
|
|
110
|
-
"webpack": "^3.12.0",
|
|
111
|
-
"webpack-dev-middleware": "^1.4.0",
|
|
112
|
-
"webpack-dev-server": "^2.9.7",
|
|
113
|
-
"webpack-hot-middleware": "^2.6.0",
|
|
114
|
-
"webpack-merge": "^0.8.3"
|
|
115
|
-
}
|
|
116
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "telephone-clients",
|
|
3
|
+
"version": "3.0.102",
|
|
4
|
+
"description": "呼叫模块前台组件",
|
|
5
|
+
"main": "src/index.js",
|
|
6
|
+
"directories": {
|
|
7
|
+
"example": "examples",
|
|
8
|
+
"test": "test"
|
|
9
|
+
},
|
|
10
|
+
"scripts": {
|
|
11
|
+
"unit": "karma start test/unit/karma.conf.js",
|
|
12
|
+
"example": "node build/example-server.js",
|
|
13
|
+
"dev": "webpack-dev-server --config ./build/dev-server.js",
|
|
14
|
+
"android": "node build/dev-android.js",
|
|
15
|
+
"lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
|
|
16
|
+
"build": "rimraf dist && mkdirp dist && ncp static dist/static && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.prod.conf.js",
|
|
17
|
+
"e2e": "node test/e2e/runner.js",
|
|
18
|
+
"release": "bash build/release.sh"
|
|
19
|
+
},
|
|
20
|
+
"repository": "http://gitee.com/aote/telephone",
|
|
21
|
+
"keywords": [
|
|
22
|
+
"telephone-clients"
|
|
23
|
+
],
|
|
24
|
+
"author": "申志明",
|
|
25
|
+
"license": "ISC",
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@keeex/qrcodejs-kx": "^1.0.2",
|
|
28
|
+
"date-fns": "^2.29.3",
|
|
29
|
+
"dayjs": "^1.11.6",
|
|
30
|
+
"less": "^2.7.1",
|
|
31
|
+
"less-loader": "^2.2.3",
|
|
32
|
+
"qrcodejs2": "^0.0.2",
|
|
33
|
+
"src": "^1.1.2",
|
|
34
|
+
"swiper": "^6.1.2",
|
|
35
|
+
"vue": "^1.0.17",
|
|
36
|
+
"vue-awesome-swiper": "^4.1.1"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"address-client": "3.0.23",
|
|
40
|
+
"babel-core": "^6.26.0",
|
|
41
|
+
"babel-loader": "^6.0.0",
|
|
42
|
+
"babel-plugin-transform-runtime": "^6.0.0",
|
|
43
|
+
"babel-preset-es2015": "^6.0.0",
|
|
44
|
+
"babel-preset-stage-2": "^6.0.0",
|
|
45
|
+
"chai": "^3.5.0",
|
|
46
|
+
"chromedriver": "^2.21.2",
|
|
47
|
+
"compression-webpack-plugin": "^1.1.2",
|
|
48
|
+
"connect-history-api-fallback": "^1.1.0",
|
|
49
|
+
"cross-env": "^1.0.7",
|
|
50
|
+
"cross-spawn": "^2.1.5",
|
|
51
|
+
"css-loader": "^0.23.0",
|
|
52
|
+
"echarts": "^4.1.0",
|
|
53
|
+
"eslint": "^2.0.0",
|
|
54
|
+
"eslint-config-standard": "^5.1.0",
|
|
55
|
+
"eslint-friendly-formatter": "^1.2.2",
|
|
56
|
+
"eslint-loader": "^1.3.0",
|
|
57
|
+
"eslint-plugin-html": "^1.3.0",
|
|
58
|
+
"eslint-plugin-promise": "^1.0.8",
|
|
59
|
+
"eslint-plugin-standard": "^1.3.2",
|
|
60
|
+
"eslint-plugin-vue": "^0.1.1",
|
|
61
|
+
"eventsource-polyfill": "^0.9.6",
|
|
62
|
+
"express": "^4.13.3",
|
|
63
|
+
"extract-text-webpack-plugin": "^3.0.2",
|
|
64
|
+
"file-loader": "^0.8.4",
|
|
65
|
+
"function-bind": "^1.0.2",
|
|
66
|
+
"html-webpack-plugin": "^2.30.1",
|
|
67
|
+
"http-proxy-middleware": "^0.11.0",
|
|
68
|
+
"inject-loader": "^2.0.1",
|
|
69
|
+
"isparta-loader": "^2.0.0",
|
|
70
|
+
"jasmine-core": "^2.4.1",
|
|
71
|
+
"jquery": "^3.3.1",
|
|
72
|
+
"jsencrypt": "^3.0.0-rc.1",
|
|
73
|
+
"json-loader": "^0.5.4",
|
|
74
|
+
"karma": "^1.4.1",
|
|
75
|
+
"karma-chrome-launcher": "^2.2.0",
|
|
76
|
+
"karma-coverage": "^1.1.1",
|
|
77
|
+
"karma-mocha": "^1.3.0",
|
|
78
|
+
"karma-sinon-chai": "^1.3.1",
|
|
79
|
+
"karma-sourcemap-loader": "^0.3.7",
|
|
80
|
+
"karma-spec-reporter": "0.0.31",
|
|
81
|
+
"karma-webpack": "^2.0.2",
|
|
82
|
+
"less-loader": "^2.2.3",
|
|
83
|
+
"lolex": "^1.5.2",
|
|
84
|
+
"mkdirp": "^0.5.1",
|
|
85
|
+
"mocha": "^3.2.0",
|
|
86
|
+
"ncp": "^2.0.0",
|
|
87
|
+
"nightwatch": "^0.8.18",
|
|
88
|
+
"ol": "^4.6.4",
|
|
89
|
+
"phantomjs-prebuilt": "^2.1.3",
|
|
90
|
+
"proj4": "^2.2.1",
|
|
91
|
+
"rimraf": "^2.5.0",
|
|
92
|
+
"selenium-server": "2.52.0",
|
|
93
|
+
"sinon": "^2.1.0",
|
|
94
|
+
"sinon-chai": "^2.8.0",
|
|
95
|
+
"style": "0.0.3",
|
|
96
|
+
"style-loader": "^0.20.3",
|
|
97
|
+
"system-clients": "3.2.55",
|
|
98
|
+
"system-phone": "1.2.100",
|
|
99
|
+
"terser-webpack-plugin-legacy": "^1.2.5",
|
|
100
|
+
"url-loader": "^0.5.7",
|
|
101
|
+
"vue-client": "1.24.77",
|
|
102
|
+
"vue-hot-reload-api": "^1.2.0",
|
|
103
|
+
"vue-html-loader": "^1.0.0",
|
|
104
|
+
"vue-loader": "^8.2.1",
|
|
105
|
+
"vue-resource": "^1.5.0",
|
|
106
|
+
"vue-router": "^0.7.13",
|
|
107
|
+
"vue-strap": "^1.0.9",
|
|
108
|
+
"vue-style-loader": "^1.0.0",
|
|
109
|
+
"vue-validator": "2.1.7",
|
|
110
|
+
"webpack": "^3.12.0",
|
|
111
|
+
"webpack-dev-middleware": "^1.4.0",
|
|
112
|
+
"webpack-dev-server": "^2.9.7",
|
|
113
|
+
"webpack-hot-middleware": "^2.6.0",
|
|
114
|
+
"webpack-merge": "^0.8.3"
|
|
115
|
+
}
|
|
116
|
+
}
|
|
@@ -1,177 +1,177 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="auto select-overspread" style="overflow-y: scroll;overflow-x: hidden">
|
|
3
|
-
<ul class="nav nav-tabs" style="position: relative">
|
|
4
|
-
<p class="bg-info text-center" style="padding: 8px;">{{ title }}</p>
|
|
5
|
-
<h3 class="txtline" v-if="model.parent_name">上一级【{{ model.parent_name }}】</h3>
|
|
6
|
-
</ul>
|
|
7
|
-
<div class="row" style="margin-top:1rem;">
|
|
8
|
-
<div class="col-sm-6">
|
|
9
|
-
<label class="font_normal_body">名称</label>
|
|
10
|
-
<input type="text"
|
|
11
|
-
:disabled="look"
|
|
12
|
-
v-model="model.name" style="width:60%"
|
|
13
|
-
class="input_search full-with" placeholder="名称">
|
|
14
|
-
</div>
|
|
15
|
-
<div class="col-sm-6">
|
|
16
|
-
<label style="width: 80px" class="font_normal_body">类别</label>
|
|
17
|
-
<v-select :disabled="look"
|
|
18
|
-
v-model="model.type"
|
|
19
|
-
placeholder='项目类别'
|
|
20
|
-
:value.sync="model.type"
|
|
21
|
-
:value-single="true"
|
|
22
|
-
:options='types'></v-select>
|
|
23
|
-
</div>
|
|
24
|
-
</div>
|
|
25
|
-
<div class="row" style="margin-top:1rem;" v-if="model.type ==='型号'">
|
|
26
|
-
<div class="col-sm-6">
|
|
27
|
-
<label class="font_normal_body">单位</label>
|
|
28
|
-
<input type="text"
|
|
29
|
-
:disabled="look"
|
|
30
|
-
v-model="model.unit" style="width:60%"
|
|
31
|
-
class="input_search full-with" id="name" placeholder="计量单位">
|
|
32
|
-
</div>
|
|
33
|
-
<div class="col-sm-6">
|
|
34
|
-
<label style="width: 80px" class="font_normal_body">编码</label>
|
|
35
|
-
<input type="text"
|
|
36
|
-
:disabled="look"
|
|
37
|
-
v-model="model.code" style="width:60%"
|
|
38
|
-
class="input_search full-with" id="name" placeholder="物料编码">
|
|
39
|
-
</div>
|
|
40
|
-
<div class="col-sm-6">
|
|
41
|
-
<label class="font_normal_body">单价</label>
|
|
42
|
-
<input type="text"
|
|
43
|
-
:disabled="look"
|
|
44
|
-
v-model="model.price" style="width:60%"
|
|
45
|
-
class="input_search full-with" id="name" placeholder="物料单价">
|
|
46
|
-
</div>
|
|
47
|
-
<div class="col-sm-6">
|
|
48
|
-
<label style="width: 80px" class="font_normal_body">业务类型</label>
|
|
49
|
-
<v-select
|
|
50
|
-
v-model="model.material_type"
|
|
51
|
-
placeholder='请选择'
|
|
52
|
-
:value.sync="model.material_type"
|
|
53
|
-
:value-single="true"
|
|
54
|
-
:options='materialTypeOptions'></v-select>
|
|
55
|
-
</div>
|
|
56
|
-
</div>
|
|
57
|
-
<!-- 按钮 -->
|
|
58
|
-
<div class="row col-sm-12" style="margin-top: 1rem">
|
|
59
|
-
<button @click="confirm()" v-show="!look" class="btn button_search col-sm-1 col-sm-offset-5"
|
|
60
|
-
style="width: 70px">
|
|
61
|
-
<span class="glyphicon glyphicon-floppy-disk"></span>保存
|
|
62
|
-
</button>
|
|
63
|
-
<button @click='cancel()' class="btn button_clear col-sm-1 col-sm-offset-1" style="width: 70px">
|
|
64
|
-
<span class=" glyphicon glyphicon-log-out"></span>返回
|
|
65
|
-
</button>
|
|
66
|
-
</div>
|
|
67
|
-
<div class="row col-sm-12" style="margin-top: 18rem">
|
|
68
|
-
</div>
|
|
69
|
-
<work-busy :is-busy="isbusy"></work-busy>
|
|
70
|
-
</div>
|
|
71
|
-
</template>
|
|
72
|
-
|
|
73
|
-
<script>
|
|
74
|
-
|
|
75
|
-
export default {
|
|
76
|
-
title: '功能',
|
|
77
|
-
props: ['parent', 'data', 'look', 'title'],
|
|
78
|
-
data () {
|
|
79
|
-
return {
|
|
80
|
-
model: {
|
|
81
|
-
menu_id: null,
|
|
82
|
-
menu_name: '',
|
|
83
|
-
parent_id: '0',
|
|
84
|
-
component: null,
|
|
85
|
-
create_by: '',
|
|
86
|
-
depict: '',
|
|
87
|
-
type: '',
|
|
88
|
-
material_type: '',
|
|
89
|
-
org_id: ''
|
|
90
|
-
},
|
|
91
|
-
type: '',
|
|
92
|
-
isbusy: false,
|
|
93
|
-
types: this.$appdata.getParam('材料管理-项目类别') ? this.$appdata.getParam('材料管理-项目类别') : [{
|
|
94
|
-
label: '型号',
|
|
95
|
-
value: '型号'
|
|
96
|
-
}, {label: '燃气具设备', value: '燃气具设备'}, {label: '报建', value: '报建'},
|
|
97
|
-
{label: '规格', value: '规格'}, {label: '材料', value: '材料'}, {label: '品名', value: '品名'}],
|
|
98
|
-
showFile: 'false',
|
|
99
|
-
file: [],
|
|
100
|
-
materialTypeOptions: this.$appdata.getParam('材料管理-业务类型')
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
watch: {
|
|
104
|
-
data: {
|
|
105
|
-
handler (n, o) {
|
|
106
|
-
// if (!n.menu_id&&n.menu_id !== o.menu_id)
|
|
107
|
-
this.initdata()
|
|
108
|
-
},
|
|
109
|
-
deep: true // 对象内部属性的监听,关键。
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
ready () {
|
|
113
|
-
this.initdata()
|
|
114
|
-
},
|
|
115
|
-
methods: {
|
|
116
|
-
// 初始化数据
|
|
117
|
-
initdata () {
|
|
118
|
-
this.model = {
|
|
119
|
-
id: null,
|
|
120
|
-
name: '',
|
|
121
|
-
parent_id: '0',
|
|
122
|
-
create_by: '',
|
|
123
|
-
type: '',
|
|
124
|
-
org_id: ''
|
|
125
|
-
}
|
|
126
|
-
this.model = Object.assign({}, this.model, this.data)
|
|
127
|
-
this.model.org_id = this.$login.f.orgid
|
|
128
|
-
// this.type = this.model.type
|
|
129
|
-
// if (this.model.id) {
|
|
130
|
-
// this.$resetpost('rs/sql/singleTable_OrderBy', {
|
|
131
|
-
// data: {
|
|
132
|
-
// items: '*',
|
|
133
|
-
// table: 't_material_info',
|
|
134
|
-
// condition: ` 1 = 1 and id = ${this.model.id}`,
|
|
135
|
-
// order: 'id desc'
|
|
136
|
-
// }
|
|
137
|
-
// }, {rejectMsg: null, resolveMsg: null})
|
|
138
|
-
// }
|
|
139
|
-
},
|
|
140
|
-
// 关闭文件上传对话框
|
|
141
|
-
closeFile () {
|
|
142
|
-
this.showFile = 'false'
|
|
143
|
-
// 将选的文件清空
|
|
144
|
-
this.$refs.file.$el.querySelector('input').value = ''
|
|
145
|
-
},
|
|
146
|
-
cancel () {
|
|
147
|
-
this.$dispatch('cancel')
|
|
148
|
-
},
|
|
149
|
-
async confirm () {
|
|
150
|
-
await this.$resetpost('rs/entity/t_material_info', this.model).then(res =>
|
|
151
|
-
this.$parent.$refs.funlist.searchData()
|
|
152
|
-
)
|
|
153
|
-
},
|
|
154
|
-
importFile () {
|
|
155
|
-
this.showFile = 'true'
|
|
156
|
-
},
|
|
157
|
-
delFile (row) {
|
|
158
|
-
if (!this.look) {
|
|
159
|
-
this.$resetdelete(`rs/entity/t_material_info`, {id: row.id}).then(res =>
|
|
160
|
-
this.initdata()
|
|
161
|
-
)
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
},
|
|
165
|
-
events: {}
|
|
166
|
-
}
|
|
167
|
-
</script>
|
|
168
|
-
|
|
169
|
-
<style>
|
|
170
|
-
.full-with {
|
|
171
|
-
width: 100%;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
#ldapDisplayUploadFile {
|
|
175
|
-
height: auto !important;
|
|
176
|
-
}
|
|
177
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="auto select-overspread" style="overflow-y: scroll;overflow-x: hidden">
|
|
3
|
+
<ul class="nav nav-tabs" style="position: relative">
|
|
4
|
+
<p class="bg-info text-center" style="padding: 8px;">{{ title }}</p>
|
|
5
|
+
<h3 class="txtline" v-if="model.parent_name">上一级【{{ model.parent_name }}】</h3>
|
|
6
|
+
</ul>
|
|
7
|
+
<div class="row" style="margin-top:1rem;">
|
|
8
|
+
<div class="col-sm-6">
|
|
9
|
+
<label class="font_normal_body">名称</label>
|
|
10
|
+
<input type="text"
|
|
11
|
+
:disabled="look"
|
|
12
|
+
v-model="model.name" style="width:60%"
|
|
13
|
+
class="input_search full-with" placeholder="名称">
|
|
14
|
+
</div>
|
|
15
|
+
<div class="col-sm-6">
|
|
16
|
+
<label style="width: 80px" class="font_normal_body">类别</label>
|
|
17
|
+
<v-select :disabled="look"
|
|
18
|
+
v-model="model.type"
|
|
19
|
+
placeholder='项目类别'
|
|
20
|
+
:value.sync="model.type"
|
|
21
|
+
:value-single="true"
|
|
22
|
+
:options='types'></v-select>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
<div class="row" style="margin-top:1rem;" v-if="model.type ==='型号'">
|
|
26
|
+
<div class="col-sm-6">
|
|
27
|
+
<label class="font_normal_body">单位</label>
|
|
28
|
+
<input type="text"
|
|
29
|
+
:disabled="look"
|
|
30
|
+
v-model="model.unit" style="width:60%"
|
|
31
|
+
class="input_search full-with" id="name" placeholder="计量单位">
|
|
32
|
+
</div>
|
|
33
|
+
<div class="col-sm-6">
|
|
34
|
+
<label style="width: 80px" class="font_normal_body">编码</label>
|
|
35
|
+
<input type="text"
|
|
36
|
+
:disabled="look"
|
|
37
|
+
v-model="model.code" style="width:60%"
|
|
38
|
+
class="input_search full-with" id="name" placeholder="物料编码">
|
|
39
|
+
</div>
|
|
40
|
+
<div class="col-sm-6">
|
|
41
|
+
<label class="font_normal_body">单价</label>
|
|
42
|
+
<input type="text"
|
|
43
|
+
:disabled="look"
|
|
44
|
+
v-model="model.price" style="width:60%"
|
|
45
|
+
class="input_search full-with" id="name" placeholder="物料单价">
|
|
46
|
+
</div>
|
|
47
|
+
<div class="col-sm-6">
|
|
48
|
+
<label style="width: 80px" class="font_normal_body">业务类型</label>
|
|
49
|
+
<v-select
|
|
50
|
+
v-model="model.material_type"
|
|
51
|
+
placeholder='请选择'
|
|
52
|
+
:value.sync="model.material_type"
|
|
53
|
+
:value-single="true"
|
|
54
|
+
:options='materialTypeOptions'></v-select>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
<!-- 按钮 -->
|
|
58
|
+
<div class="row col-sm-12" style="margin-top: 1rem">
|
|
59
|
+
<button @click="confirm()" v-show="!look" class="btn button_search col-sm-1 col-sm-offset-5"
|
|
60
|
+
style="width: 70px">
|
|
61
|
+
<span class="glyphicon glyphicon-floppy-disk"></span>保存
|
|
62
|
+
</button>
|
|
63
|
+
<button @click='cancel()' class="btn button_clear col-sm-1 col-sm-offset-1" style="width: 70px">
|
|
64
|
+
<span class=" glyphicon glyphicon-log-out"></span>返回
|
|
65
|
+
</button>
|
|
66
|
+
</div>
|
|
67
|
+
<div class="row col-sm-12" style="margin-top: 18rem">
|
|
68
|
+
</div>
|
|
69
|
+
<work-busy :is-busy="isbusy"></work-busy>
|
|
70
|
+
</div>
|
|
71
|
+
</template>
|
|
72
|
+
|
|
73
|
+
<script>
|
|
74
|
+
|
|
75
|
+
export default {
|
|
76
|
+
title: '功能',
|
|
77
|
+
props: ['parent', 'data', 'look', 'title'],
|
|
78
|
+
data () {
|
|
79
|
+
return {
|
|
80
|
+
model: {
|
|
81
|
+
menu_id: null,
|
|
82
|
+
menu_name: '',
|
|
83
|
+
parent_id: '0',
|
|
84
|
+
component: null,
|
|
85
|
+
create_by: '',
|
|
86
|
+
depict: '',
|
|
87
|
+
type: '',
|
|
88
|
+
material_type: '',
|
|
89
|
+
org_id: ''
|
|
90
|
+
},
|
|
91
|
+
type: '',
|
|
92
|
+
isbusy: false,
|
|
93
|
+
types: this.$appdata.getParam('材料管理-项目类别') ? this.$appdata.getParam('材料管理-项目类别') : [{
|
|
94
|
+
label: '型号',
|
|
95
|
+
value: '型号'
|
|
96
|
+
}, {label: '燃气具设备', value: '燃气具设备'}, {label: '报建', value: '报建'},
|
|
97
|
+
{label: '规格', value: '规格'}, {label: '材料', value: '材料'}, {label: '品名', value: '品名'}],
|
|
98
|
+
showFile: 'false',
|
|
99
|
+
file: [],
|
|
100
|
+
materialTypeOptions: this.$appdata.getParam('材料管理-业务类型')
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
watch: {
|
|
104
|
+
data: {
|
|
105
|
+
handler (n, o) {
|
|
106
|
+
// if (!n.menu_id&&n.menu_id !== o.menu_id)
|
|
107
|
+
this.initdata()
|
|
108
|
+
},
|
|
109
|
+
deep: true // 对象内部属性的监听,关键。
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
ready () {
|
|
113
|
+
this.initdata()
|
|
114
|
+
},
|
|
115
|
+
methods: {
|
|
116
|
+
// 初始化数据
|
|
117
|
+
initdata () {
|
|
118
|
+
this.model = {
|
|
119
|
+
id: null,
|
|
120
|
+
name: '',
|
|
121
|
+
parent_id: '0',
|
|
122
|
+
create_by: '',
|
|
123
|
+
type: '',
|
|
124
|
+
org_id: ''
|
|
125
|
+
}
|
|
126
|
+
this.model = Object.assign({}, this.model, this.data)
|
|
127
|
+
this.model.org_id = this.$login.f.orgid
|
|
128
|
+
// this.type = this.model.type
|
|
129
|
+
// if (this.model.id) {
|
|
130
|
+
// this.$resetpost('rs/sql/singleTable_OrderBy', {
|
|
131
|
+
// data: {
|
|
132
|
+
// items: '*',
|
|
133
|
+
// table: 't_material_info',
|
|
134
|
+
// condition: ` 1 = 1 and id = ${this.model.id}`,
|
|
135
|
+
// order: 'id desc'
|
|
136
|
+
// }
|
|
137
|
+
// }, {rejectMsg: null, resolveMsg: null})
|
|
138
|
+
// }
|
|
139
|
+
},
|
|
140
|
+
// 关闭文件上传对话框
|
|
141
|
+
closeFile () {
|
|
142
|
+
this.showFile = 'false'
|
|
143
|
+
// 将选的文件清空
|
|
144
|
+
this.$refs.file.$el.querySelector('input').value = ''
|
|
145
|
+
},
|
|
146
|
+
cancel () {
|
|
147
|
+
this.$dispatch('cancel')
|
|
148
|
+
},
|
|
149
|
+
async confirm () {
|
|
150
|
+
await this.$resetpost('rs/entity/t_material_info', this.model).then(res =>
|
|
151
|
+
this.$parent.$refs.funlist.searchData()
|
|
152
|
+
)
|
|
153
|
+
},
|
|
154
|
+
importFile () {
|
|
155
|
+
this.showFile = 'true'
|
|
156
|
+
},
|
|
157
|
+
delFile (row) {
|
|
158
|
+
if (!this.look) {
|
|
159
|
+
this.$resetdelete(`rs/entity/t_material_info`, {id: row.id}).then(res =>
|
|
160
|
+
this.initdata()
|
|
161
|
+
)
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
events: {}
|
|
166
|
+
}
|
|
167
|
+
</script>
|
|
168
|
+
|
|
169
|
+
<style>
|
|
170
|
+
.full-with {
|
|
171
|
+
width: 100%;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
#ldapDisplayUploadFile {
|
|
175
|
+
height: auto !important;
|
|
176
|
+
}
|
|
177
|
+
</style>
|