apply-clients 3.3.110-208 → 3.3.110-211
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
CHANGED
|
@@ -150,6 +150,7 @@
|
|
|
150
150
|
</template>
|
|
151
151
|
|
|
152
152
|
<script>
|
|
153
|
+
import Vue from 'vue'
|
|
153
154
|
import {HttpResetClass} from 'vue-client'
|
|
154
155
|
export default {
|
|
155
156
|
name: 'addMaterialScience',
|
|
@@ -185,12 +186,14 @@
|
|
|
185
186
|
},
|
|
186
187
|
methods: {
|
|
187
188
|
async getOnetoManyData () {
|
|
189
|
+
let http = new HttpResetClass()
|
|
188
190
|
let data = {
|
|
189
191
|
tablename: `t_material_apply`,
|
|
190
192
|
condition: `f_process_id='${this.selectdata.f_process_id}'`
|
|
191
193
|
}
|
|
192
|
-
let res = await
|
|
193
|
-
'
|
|
194
|
+
let res = await http.load(
|
|
195
|
+
'POST',
|
|
196
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
|
|
194
197
|
{data: data},
|
|
195
198
|
{resolveMsg: null, rejectMsg: 'onetomany查询失败'}
|
|
196
199
|
)
|
|
@@ -234,7 +237,7 @@
|
|
|
234
237
|
let http = new HttpResetClass()
|
|
235
238
|
let res = await http.load(
|
|
236
239
|
'POST',
|
|
237
|
-
|
|
240
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/getStockMaterial`,
|
|
238
241
|
{data: data},
|
|
239
242
|
{resolveMsg: null, rejectMsg: '材料查询失败!!!'}
|
|
240
243
|
)
|
|
@@ -260,15 +263,17 @@
|
|
|
260
263
|
this.title = '新增'
|
|
261
264
|
let data = {
|
|
262
265
|
f_process_id : this.selectdata.f_process_id,
|
|
263
|
-
f_operator_id:
|
|
264
|
-
f_operator:
|
|
266
|
+
f_operator_id: Vue.user.id,
|
|
267
|
+
f_operator: Vue.user.name,
|
|
265
268
|
f_operation_date: new Date().Format('yyyy-MM-dd HH:mm:ss'),
|
|
266
|
-
f_orgid:
|
|
267
|
-
f_orgname:
|
|
269
|
+
f_orgid: Vue.user.orgid,
|
|
270
|
+
f_orgname: Vue.user.orgs,
|
|
268
271
|
materials:this.materials
|
|
269
272
|
}
|
|
270
|
-
let
|
|
271
|
-
|
|
273
|
+
let http = new HttpResetClass()
|
|
274
|
+
let res = await http.load(
|
|
275
|
+
'POST',
|
|
276
|
+
`${this.$androidUtil.getProxyUrl()}/rs/logic/saveMaterials`,
|
|
272
277
|
data
|
|
273
278
|
)
|
|
274
279
|
this.closeMaterials()
|
|
@@ -277,10 +282,9 @@
|
|
|
277
282
|
this.$showMessage('您确定要删除这条记录吗?',['confirm']).then(res =>{
|
|
278
283
|
if (res === 'confirm'){
|
|
279
284
|
let http = new HttpResetClass()
|
|
280
|
-
|
|
281
285
|
let res = http.load(
|
|
282
286
|
'DELETE',
|
|
283
|
-
|
|
287
|
+
`${this.$androidUtil.getProxyUrl()}/rs/entity/t_material_apply/${row.id}`,
|
|
284
288
|
null,
|
|
285
289
|
{resolveMsg: null, rejectMsg: '删除失败!!!'}
|
|
286
290
|
)
|
|
@@ -311,8 +315,10 @@
|
|
|
311
315
|
data.f_material_unit = this.materials[0].f_material_unit
|
|
312
316
|
data.f_material_number = this.materials[0].f_material_number
|
|
313
317
|
data.f_material_code = this.materials[0].f_material_code
|
|
314
|
-
let
|
|
315
|
-
|
|
318
|
+
let http = new HttpResetClass()
|
|
319
|
+
let res = await http.load(
|
|
320
|
+
'POST',
|
|
321
|
+
`${this.$androidUtil.getProxyUrl()}/rs/entity/t_material_apply`,
|
|
316
322
|
data
|
|
317
323
|
)
|
|
318
324
|
this.closeMaterials()
|
|
@@ -257,14 +257,15 @@
|
|
|
257
257
|
},
|
|
258
258
|
// 新增材料
|
|
259
259
|
async addMaterial () {
|
|
260
|
+
console.log("登录信息:",this.$login.f)
|
|
260
261
|
this.title = '新增'
|
|
261
262
|
let data = {
|
|
262
263
|
f_process_id : this.selectdata.f_process_id,
|
|
263
264
|
f_operator_id: this.$login.f.id,
|
|
264
265
|
f_operator: this.$login.f.name,
|
|
265
266
|
f_operation_date: new Date().Format('yyyy-MM-dd HH:mm:ss'),
|
|
266
|
-
f_orgid: this.$login.f.
|
|
267
|
-
f_orgname: this.$login.f.
|
|
267
|
+
f_orgid: this.$login.f.orgid,
|
|
268
|
+
f_orgname: this.$login.f.orgs,
|
|
268
269
|
materials:this.materials
|
|
269
270
|
}
|
|
270
271
|
let res = await this.$resetpost(
|