sale-client 3.6.112 → 3.6.113

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.
@@ -0,0 +1,45 @@
1
+ <template>
2
+ <div style="padding-right:25px;padding-left: 20px;">
3
+ <!--分配状态是全部-->
4
+ <tabset >
5
+ <tab header="具体信息">
6
+ <garbage-operate-main :model="model" :oldmodel="oldmodel"></garbage-operate-main>
7
+ </tab>
8
+ <tab header="操作记录">
9
+ <garbage-add :recordlist="recordlist"></garbage-add>
10
+ </tab>
11
+ </tabset>
12
+ </div>
13
+ </template>
14
+ <script>
15
+ export default {
16
+ name: 'WareHouseOperation',
17
+ data () {
18
+ return {
19
+ showupload: false
20
+ }
21
+ },
22
+ props: {
23
+ recordlist: Array,
24
+ // row: Object,
25
+ model: Object,
26
+ oldmodel: Object
27
+ },
28
+ created () {
29
+ },
30
+ ready () {
31
+
32
+ },
33
+ methods: {
34
+ },
35
+ events: {
36
+ 'showfiles' (val) {
37
+ console.log('events!!!!!!!!!!!!!', val)
38
+ }
39
+ }
40
+ }
41
+ </script>
42
+
43
+ <style lang="less">
44
+
45
+ </style>
@@ -0,0 +1,180 @@
1
+ <template>
2
+ <div class="auto">
3
+ <validator name='a' @valid="addressValid(true)" @invalid="addressValid(false)">
4
+ <form class="form-horizontal">
5
+ <div class="row">
6
+ <div class="col-sm-4 form-group">
7
+ <label class="font_normal_body">用户姓名</label>
8
+ <input type="text" v-model="model.f_user_name" disabled=disabled style="width: 60%" class="input_search">
9
+ </div>
10
+ <div class="col-sm-4 form-group">
11
+ <label class="font_normal_body" title="参数:收费状态">收费状态</label>
12
+ <input type="text" v-model="model.f_state" disabled=disabled style="width: 60%" class="input_search">
13
+ </div>
14
+ <div class="col-sm-4 form-group">
15
+ <label class="font_normal_body" title="参数:付款方式查询">付款方式</label>
16
+ <v-select :value.sync="model.f_payment" v-model="model.f_payment"
17
+ :options='payments' placeholder='付款方式'
18
+ :value-single="true"
19
+ :search="false"
20
+ close-on-select>
21
+ </v-select>
22
+ </div>
23
+ <div class="col-sm-4 form-group">
24
+ <label class="font_normal_body">购买单价</label>
25
+ <input type="text" v-model="model.f_price" disabled=disabled style="width: 60%" class="input_search">
26
+ </div>
27
+ <div class="col-sm-4 form-group">
28
+ <label class="font_normal_body">收款金额</label>
29
+ <input type="text" v-model="model.f_money" disabled=disabled style="width: 60%" class="input_search">
30
+ </div>
31
+ <div class="col-sm-4 form-group">
32
+ <label class="font_normal_body">所跨月数</label>
33
+ <input type="text" v-model="model.f_month" disabled=disabled style="width: 60%" class="input_search">
34
+ </div>
35
+ <div class="col-sm-6 form-group">
36
+ <label class="form-group">所属日期</label>
37
+ <input type="text" v-model="model.f_hand_date" disabled=disabled style="width: 60%" class="input_search">
38
+ </div>
39
+ <div class="col-sm-6 form-group">
40
+ <label class="form-group">操作日期</label>
41
+ <input type="text" v-model="model.f_operate_date" disabled=disabled style="width: 60%" class="input_search">
42
+ </div>
43
+ <!--<div class="col-sm-4 form-group">-->
44
+ <!--<label class="font_normal_body">收据类型</label>-->
45
+ <!--<input type="text" v-model="model.f_bill_style" style="width: 60%" class="input_search">-->
46
+ <!--</div>-->
47
+ </div>
48
+
49
+ <div class="row">
50
+ <div class="col-sm-4 form-group">
51
+ <label class="font_normal_body" title="参数:操作人员查询">操作人员</label>
52
+ <input type="text" v-model="model.f_operator" disabled=disabled style="width: 60%" class="input_search">
53
+
54
+ <!-- <v-select :value.sync="model.f_operator"-->
55
+ <!-- v-model="model.f_operator"-->
56
+ <!-- :value-single="true" @change="selectoperator()"-->
57
+ <!-- :options='foperator'-->
58
+ <!-- close-on-select></v-select>-->
59
+ <!-- @click="selectoperator"-->
60
+ </div>
61
+ <div class="col-sm-4 form-group">
62
+ <label class="font_normal_body">所属部门</label>
63
+ <input type="text" v-model="model.f_depname" disabled=disabled style="width: 60%" class="input_search">
64
+ </div>
65
+ <div class="col-sm-4 form-group">
66
+ <label class="font_normal_body">所属公司</label>
67
+ <input type="text" v-model="model.f_orgname" disabled=disabled style="width: 60%" class="input_search">
68
+ </div>
69
+ </div>
70
+ </form>
71
+ <div style="float: right">
72
+ <button class="button_search" @click="save">保存</button>
73
+ <button class="button_clear" @click="cancel">取消</button>
74
+ </div>
75
+ </validator>
76
+ </div>
77
+ </template>
78
+ <script>
79
+ import Vue from 'vue'
80
+ import {HttpResetClass} from 'vue-client'
81
+ import * as Util from "../../Util";
82
+ var data
83
+ export default {
84
+ title: '基本信息',
85
+
86
+ data () {
87
+ return {
88
+ equipmentType: this.$appdata.getParam('打印格式') ? [{label: '', value: ''}, ...this.$appdata.getParam('打印格式')] : [],
89
+ // 构建数组来存储对象
90
+ editbank: true,
91
+ uploadText: '收费',
92
+ showfiles: false,
93
+ recordList: [],
94
+ fileNameSet: {
95
+ 'f_payment': '收费形式',
96
+ 'f_serial_id': '流水号'
97
+ }
98
+ }
99
+ },
100
+ props: {
101
+ oldmodel: Object,
102
+ model: Object
103
+ },
104
+
105
+ ready () {
106
+ if (this.$login.r.includes('维护银行转账信息')) {
107
+ this.editbank = true
108
+ }
109
+ this.oldmodel = JSON.parse(JSON.stringify(this.model))
110
+ this.model.f_bill_state = [this.oldmodel]
111
+ console.log('看看收费id', this.oldmodel)
112
+ },
113
+ created () {
114
+ },
115
+ methods: {
116
+
117
+ cancel () {
118
+ this.$dispatch('close')
119
+ },
120
+ uploadFiles () {
121
+ this.showfiles = !this.showfiles
122
+ },
123
+ addressValid (val) {
124
+ },
125
+ save () {
126
+ this.recordList = []
127
+ for (var item in this.model) {
128
+ if (this.model.f_payment != this.oldmodel.f_payment && item==='f_payment' ) {
129
+ var car = {
130
+ chinesename: this.fileNameSet[item],
131
+ fieldname: item,
132
+ tablename: 't_flotsamprice',
133
+ oldvalue: this.oldmodel[item],
134
+ newvalue: this.model[item],
135
+ state: '有效',
136
+ modifitime: Util.toStandardTimeString(),
137
+ operator: this.$login.f.name,
138
+ garbage_id: this.model.id,
139
+ f_operator : this.$login.f.name,
140
+ f_operatorid : this.$login.f.id,
141
+ f_orgid : this.$login.f.orgid,
142
+ f_orgname : this.$login.f.orgs,
143
+ f_depid : this.$login.f.depids,
144
+ f_depname : this.$login.f.deps
145
+
146
+ }
147
+ this.recordList.push(car)
148
+ // 该方法并未对chinesename fieldname operator等进行判断赋值,此暂写为定值
149
+ console.log('看看car的值', car)
150
+ }
151
+ }
152
+
153
+ this.$resetpost('rs/logic/saveGarbage', {data: {recordlist: this.recordList, newData: this.model}}).then((res) => {
154
+ console.log('this.model', this.model)
155
+ })
156
+ this.$dispatch('close')
157
+ }
158
+ },
159
+ computed: {
160
+ foperator () {
161
+ return [...this.$appdata.getParam('操作人员')]
162
+ },
163
+ positions () {
164
+ return this.$appdata.getParam('收费状态')
165
+ },
166
+ payments () {
167
+ return this.$appdata.getParam('付款方式查询')
168
+ },
169
+ writeCards () {
170
+ return this.$appdata.getParam('写卡状态')
171
+ },
172
+ billStyles () {
173
+ return this.$appdata.getParam('收据类型')
174
+ }
175
+ },
176
+ watch: {
177
+
178
+ }
179
+ }
180
+ </script>
@@ -36,4 +36,15 @@ export default function () {
36
36
  Vue.component('charge-modal', (resolve) => { require(['./ChargeModal'], resolve) })
37
37
  // 业务操作组件
38
38
  Vue.component('charge-oper', (resolve) => { require(['./ChargeOper'], resolve) })
39
+ //垃圾费维护主页面
40
+ Vue.component('garbage-edit-manage', (resolve) => { require(['./GarbageEditManage'], resolve) })
41
+ //垃圾费查询列表
42
+ Vue.component('garbage-list', (resolve) => { require(['./GarbageList'], resolve) })
43
+ //垃圾费右侧
44
+ Vue.component('garbage-main', (resolve) => { require(['./GarbageMain'], resolve) })
45
+ //垃圾费右侧
46
+ Vue.component('garbage-operate-main', (resolve) => { require(['./GarbageOperateMain'], resolve) })
47
+ //垃圾费右侧
48
+ Vue.component('garbage-add', (resolve) => { require(['./GarbageAdd'], resolve) })
49
+
39
50
  }