dbChuli.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664
  1. <template>
  2. <view>
  3. <u--form labelPosition="left" labelAlign="center" :model="content" ref="uForm" :rules="rules"
  4. :labelStyle="{fontSize:'32rpx'}" labelWidth="130"> <u-form-item label="督办事项:" borderBottom prop="title">
  5. <u--input placeholder='请输入督办事项' v-model="content.title" border="none"></u--input>
  6. </u-form-item>
  7. <u-form-item label="发起时间:" borderBottom prop="submitTime">
  8. <u--input v-model="content.submitTime" border="none" readonly></u--input>
  9. </u-form-item>
  10. <!-- <u-form-item label="处室及负责人:" borderBottom prop="departmentHead">
  11. <u--input v-model="content.departmentHead" border="none" readonly></u--input>
  12. </u-form-item> -->
  13. <!-- <u-form-item label="信息类别:" borderBottom prop="infoType">
  14. <u--textarea type="textarea" v-model="content.infoType" placeholder="请输入信息类别"
  15. border="none"></u--textarea>
  16. </u-form-item> -->
  17. <u-form-item label="督办来源:" borderBottom prop="infoSource">
  18. <uni-data-select @change="infoSourceChange" v-model="content.infoSource" :clear="false"
  19. placeholder="请选择督办来源" :localdata="InfoList"></uni-data-select>
  20. </u-form-item>
  21. <u-form-item label="督办内容:" borderBottom prop="infoSourceContent">
  22. <u--textarea type="textarea" v-model="content.infoSourceContent" :placeholder="infoSourceContent"
  23. border="none"></u--textarea>
  24. </u-form-item>
  25. <u-form-item label="完成时限:" @click="typeChange('shixian')" borderBottom prop="doneTime">
  26. <view>
  27. {{content.doneTime}}
  28. </view>
  29. <!-- <u--input v-model="content.doneTime" border="none" readonly></u--input> -->
  30. </u-form-item>
  31. <u-form-item label="责任处室:" borderBottom prop="prersonLiable">
  32. <u--textarea disabled style="width: 190rpx;" type="textarea" v-model="content.prersonLiable"
  33. placeholder="请选择责任处室" border="none"></u--textarea>
  34. <u-button v-if="title=='督办编辑'" size="small" type="primary" text="选择" @click="handelSelect"
  35. style="margin-top: 40rpx;width: 50rpx;margin-right: 10rpx;"></u-button>
  36. </u-form-item>
  37. <!-- <u-form-item label="各处室进度详情:" style="" borderBottom prop="ywSupervisionItemList"> -->
  38. <view style="text-align: center;font-size: 34rpx;margin-top: 50rpx;font-weight: 700;" class="">
  39. 各处室进度详情:
  40. </view>
  41. <view v-for="item in content.ywSupervisionItemList" :key="item.id"
  42. style="padding: 20rpx 40rpx;border-bottom: 1px solid #ceccca;background-color: #fff;">
  43. <uni-card style="width:600rpx">
  44. <view style='margin:20rpx 40rpx' class="">
  45. <text> 部门: {{item.deptName}}</text>
  46. <br />
  47. <text> 姓名: {{item.userName}}</text>
  48. <br />
  49. <text>
  50. 进展情况:<view v-if="
  51. userId == item.userId &&
  52. item.submitState != '1' " class="">
  53. <u--textarea type="textarea" v-model="item.progress"
  54. placeholder="请输入进展情况"></u--textarea><br />
  55. </view>
  56. <span v-else class="">
  57. {{item.progress}}
  58. <br />
  59. </span>
  60. </text>
  61. <text>
  62. 完成佐证材料:<view v-if="
  63. userId == item.userId &&
  64. item.submitState != '1' " class="example-body">
  65. <!-- <uni-file-picker file-mediatype="fileMediatype === 'image'" mode="grid"
  66. @select="select($event,item)" @progress="progress" @delete="deleteFile"
  67. @success="success" @fail="fail">
  68. </uni-file-picker> -->
  69. <u-button type="primary" @click="uploadPic(item)">上传</u-button>
  70. <!-- 展示 -->
  71. <view style="margin-bottom: 30rpx;display: flex;margin-top: 4rpx;"
  72. v-for="v in item.ywFileList" :key="v.fileId">
  73. <u-icon style="margin-top: 4rpx;color: #2979FF;" name="attach"></u-icon><u--text
  74. :lines="1" size="14" color="#2979FF" decoration="underline" :text="v.name"
  75. @click="downLoad(v.url)">{{v.name}}</u--text><u-icon @click="delFile(v)"
  76. style="margin-top: 0rpx;" name="close"></u-icon>
  77. </view>
  78. <u-action-sheet @select="selectClick" :actions="list" :closeOnClickOverlay="true"
  79. :closeOnClickAction="true" title="请选择" :show="showUpload"></u-action-sheet>
  80. </view>
  81. <view v-else
  82. style="border-radius: 8rpx;background-color: #f3f3f3;margin-top: 40rpx;padding: 20rpx 40rpx;">
  83. <!-- <view style="display: flex;align-items: center;margin-bottom: 20rpx;f">
  84. <u-icon name="file-text-fill" color="#000"></u-icon>
  85. 附件
  86. </view> -->
  87. <view style="margin-bottom: 30rpx;" v-for="v in item.ywFileList" :key="v.fileId">
  88. <u--text :lines="1" size="15" color="#2979FF" decoration="underline" :text="v.name"
  89. @click="downLoad(v.url)">{{v.name}}</u--text>
  90. </view>
  91. </view>
  92. </text>
  93. <br />
  94. <text> 提交时间: {{item.submitTime}}</text>
  95. <br />
  96. <text> 审核领导: {{item.leaderName}}</text>
  97. <br />
  98. <text> 审核时间: {{item.approveTime}}</text>
  99. <br />
  100. <text>
  101. 领导意见:<u--textarea v-if="
  102. userId == item.leaderUserId &&
  103. item.submitState == '1'
  104. " type="textarea" v-model="item.leaderMsg" placeholder="请输入领导意见"></u--textarea>
  105. <span v-else> {{item.leaderMsg}}</span>
  106. </text>
  107. <br />
  108. <text> 领导审核结果:
  109. <span>
  110. <span v-for="(aa, index) in leaderOpinList" :key="index">
  111. <span v-if="aa.value == item.leaderApprove">
  112. {{ aa.text }}
  113. <span v-if="true"></span>
  114. </span>
  115. </span>
  116. </span>
  117. </text>
  118. </view>
  119. <span style="display: flex;" v-if="item.leaderApprove == '0'">
  120. <u-button style="width: 100rpx;" v-if="
  121. userId == item.leaderUserId &&
  122. item.submitState == '1'
  123. " size="small" @click="sendBackInfo(item)" type="error">退回
  124. </u-button>
  125. <u-button style="width: 100rpx;margin-left:20rpx" v-if="
  126. userId == item.leaderUserId &&
  127. item.submitState == '1'
  128. " size="small" @click="pass(item)" type="primary">通过
  129. </u-button>
  130. </span>
  131. </uni-card>
  132. </view>
  133. <view v-if="showTijiao" style="padding: 0 20rpx;">
  134. <!-- <u-button v-if="title=='督办编辑'" type="primary" text="保存" @click="keep"
  135. style="margin-top: 40rpx;"></u-button> -->
  136. <u-button v-if="tijiaoBtn" type="primary" text="提交" @click="submit"
  137. style="margin-top: 40rpx;"></u-button>
  138. <u-button v-else type="warning" text="提交" @click="submit" style="margin-top: 40rpx;"></u-button>
  139. </view>
  140. <!-- </u-form-item> -->
  141. </u--form>
  142. <u-calendar placeholder="请选择日期" :show="show1" mode="single" allowSameDay @confirm="confirmOne"
  143. @close="show1 = false"></u-calendar>
  144. <u-modal :show="peoShow1" title="请选择接收领导" showCancelButton @cancel="cancel1" @confirm="queren1">
  145. <view style="width: 100%;height: 40vh;overflow: auto;" v-if="peoShow1 == true">
  146. <u-radio-group v-model="value1" @change="radioChange1" iconPlacement="right">
  147. <u-collapse accordion style="width: 100%;">
  148. <u-collapse-item :title="v.Name" :name="v.No" :key="v.No" v-for="v in deptList"
  149. style="width: 100%;">
  150. <view style="font-size: 32rpx; padding: 20rpx 0; border-bottom: 1px solid #eaeaea;"
  151. v-for=" i in userList" :key="i.NO" v-if="i.FK_Dept == v.No">
  152. <u-radio :label="i.Name" :name="i"></u-radio>
  153. </view>
  154. </u-collapse-item>
  155. </u-collapse>
  156. </u-radio-group>
  157. </view>
  158. </u-modal>
  159. </view>
  160. </template>
  161. <script>
  162. export default {
  163. data() {
  164. return {
  165. leaderOpinList: [],
  166. list: [{
  167. name: '拍照上传'
  168. }, {
  169. name: '从相册上传'
  170. }],
  171. userId: '',
  172. uploadUrl: 'http://121.28.24.104:13898/app/' + "/system/file/fileupload",
  173. baseURL: null,
  174. dataSubmit: {
  175. ywFileList: [],
  176. leaderUserName: ""
  177. },
  178. rowThis: {
  179. ywFileList: []
  180. },
  181. peoShow1: false,
  182. show1: false,
  183. typeDate: '',
  184. content: {
  185. ywSupervisionStartUserList: [],
  186. prersonLiable: ''
  187. },
  188. rules: {},
  189. InfoList: [],
  190. infoSourceContent: '',
  191. db_template: [],
  192. title: '',
  193. deptList: [],
  194. userList: [],
  195. dataInfo: {},
  196. Optionsid: null,
  197. showTijiao: false,
  198. tijiaoBtn: false,
  199. showUpload: false
  200. }
  201. },
  202. onLoad(options) {
  203. // console.log('config.baseURL', this.arg)
  204. this.baseURL = uni.getStorageSync('baseUrl');
  205. this.Optionsid = options.id
  206. this.getDictsInfo()
  207. this.getPeoList('016')
  208. uni.setNavigationBarTitle({
  209. title: options.title
  210. })
  211. this.title = options.title
  212. uni.$u.http.get('/getInfo').then((res) => {
  213. console.log('res1', res)
  214. this.userId = res.user.userId
  215. console.log('this.userId', this.userId)
  216. setTimeout(() => {
  217. uni.$u.http.get('/offcial/supervision/' + options.id).then((res) => {
  218. console.log('res2222', res)
  219. console.log(this.userId)
  220. this.content = res.data
  221. this.dataInfo.supervisionId = res.data.id;
  222. this.tijiaoBtn = res.data.submitState == "1" ? true : false;
  223. this.showTijiao = false;
  224. for (let i = 0; i < this.content.ywSupervisionItemList.length; i++) {
  225. if (
  226. this.content.ywSupervisionItemList[i].userId == this.userId &&
  227. this.content.ywSupervisionItemList[i].submitState == "0"
  228. ) {
  229. this.showTijiao = true;
  230. }
  231. }
  232. })
  233. }, 200)
  234. })
  235. },
  236. onShow() {
  237. uni.$once('query', (query) => {
  238. if (query.a == 'two') {
  239. if (this.content.prersonLiable != null) {
  240. // let arrPeo = this.content.prersonLiable.split(",");
  241. // let arr = getApp().globalData.zerenList.split(',')
  242. // arr = arr.concat(this.content.prersonLiable)
  243. this.content.prersonLiable = getApp().globalData.zerenList
  244. // this.content.prersonLiable = arr.join(" , ");
  245. this.content.ywSupervisionStartUserList = getApp().globalData.ywListZR
  246. } else {
  247. this.content.prersonLiable = getApp().globalData.zerenList
  248. }
  249. }
  250. })
  251. },
  252. methods: {
  253. delFile(itemFile) {
  254. console.log('itemFILE', itemFile)
  255. this.rowThis.ywFileList.splice(itemFile, 1)
  256. },
  257. uploadPic(item) {
  258. this.showUpload = true
  259. this.dataSubmit.id = item.id
  260. this.rowThis = item
  261. console.log('this.rowT', this.rowThis)
  262. },
  263. selectClick(index) {
  264. console.log(index)
  265. let that = this
  266. if (index.name == '拍照上传') {
  267. uni.chooseImage({
  268. count: 9, // 默认9,设置图片的数量
  269. sourceType: ['camera'], // 可以指定来源是相册还是相机,默认二者都有
  270. success: function(res) {
  271. // 返回选定照片的本地文件路径列表 tempFilePaths
  272. console.log(res.tempFilePaths);
  273. const pathUrl = res.tempFilePaths[0]
  274. uni.uploadFile({
  275. url: 'http://121.28.24.104:13898/app/' + "/system/file/fileupload",
  276. filePath: pathUrl,
  277. name: 'file',
  278. header: {
  279. Authorization: 'Bearer ' + uni.getStorageSync('token')
  280. },
  281. success: (response) => {
  282. console.log('1111111111111111')
  283. console.log('96+', response.data)
  284. console.log(that.rowThis)
  285. let dataFile = JSON.parse(response.data)
  286. that.rowThis.ywFileList.push(dataFile.data)
  287. // if (this.rowThis.ywFileList.length != 0) {
  288. // for (let i = 0; i < this.rowThis.ywFileList.length; i++) {
  289. // if (this.rowThis.ywFileList[i].response != undefined) {
  290. // this.dataSubmit.ywFileList.push(
  291. // this.rowThis.ywFileList[i].response.data
  292. // );
  293. // } else {
  294. // this.dataSubmit.ywFileList.push(this.rowThis
  295. // .ywFileList[i]);
  296. // }
  297. // }
  298. // }
  299. // this.dataSubmit.ywFileList.push()
  300. },
  301. fail: (response) => {
  302. console.log('fail', response)
  303. }
  304. })
  305. }
  306. });
  307. } else if (index.name == '从相册上传') {
  308. console.log('586', this.rowThis)
  309. uni.chooseImage({
  310. count: 1, // 默认9,设置图片的数量
  311. sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
  312. sourceType: ['album'], // 可以指定来源是相册还是相机,默认二者都有
  313. success: function(res) {
  314. // 返回选定照片的本地文件路径列表 tempFilePaths
  315. console.log(res);
  316. const pathUrl = res.tempFilePaths[0]
  317. uni.uploadFile({
  318. url: 'http://121.28.24.104:13898/app/' + "/system/file/fileupload",
  319. filePath: pathUrl,
  320. name: 'file',
  321. header: {
  322. Authorization: 'Bearer ' + uni.getStorageSync('token')
  323. },
  324. success: (response) => {
  325. console.log('1111111111111111')
  326. console.log('96+', response.data)
  327. console.log(that.rowThis)
  328. let dataFile = JSON.parse(response.data)
  329. that.rowThis.ywFileList.push(dataFile.data)
  330. // if (this.rowThis.ywFileList.length != 0) {
  331. // for (let i = 0; i < this.rowThis.ywFileList.length; i++) {
  332. // if (this.rowThis.ywFileList[i].response != undefined) {
  333. // this.dataSubmit.ywFileList.push(
  334. // this.rowThis.ywFileList[i].response.data
  335. // );
  336. // } else {
  337. // this.dataSubmit.ywFileList.push(this.rowThis
  338. // .ywFileList[i]);
  339. // }
  340. // }
  341. // }
  342. // this.dataSubmit.ywFileList.push()
  343. },
  344. fail: (response) => {
  345. console.log('fail', response)
  346. }
  347. })
  348. }
  349. });
  350. }
  351. this.showUpload = false
  352. },
  353. downLoad(path) {
  354. console.log('’', path)
  355. uni.downloadFile({
  356. url: path,
  357. success: (res) => {
  358. var filePath = res.tempFilePath;
  359. uni.openDocument({
  360. filePath: filePath,
  361. showMenu: true,
  362. success: function(res) {
  363. console.log('打开文档成功');
  364. }
  365. });
  366. }
  367. })
  368. },
  369. sendBackInfo(row) {
  370. if (
  371. row.leaderMsg == "" ||
  372. row.leaderMsg == null ||
  373. row.leaderMsg == undefined
  374. ) {
  375. uni.showToast({
  376. title: "请填写领导意见",
  377. icon: "none",
  378. mask: true,
  379. duration: 3000
  380. })
  381. return;
  382. } else {
  383. this.dataInfo.id = row.id;
  384. this.dataInfo.leaderMsg = row.leaderMsg;
  385. this.dataInfo.leaderApprove = "1";
  386. uni.$u.http.post('/offcial/supervision/leaderApprove', this.dataInfo).then(res => {
  387. uni.showToast({
  388. title: "退回成功",
  389. icon: "none",
  390. mask: true,
  391. duration: 3000
  392. })
  393. uni.$u.http.get('/offcial/supervision/' + this.Optionsid).then((res) => {
  394. console.log('res', res)
  395. this.content = res.data
  396. this.dataInfo.supervisionId = res.data.id;
  397. this.tijiaoBtn = res.data.submitState == "1" ? true : false;
  398. this.showTijiao = false;
  399. for (let i = 0; i < this.content.ywSupervisionItemList.length; i++) {
  400. if (
  401. this.content.ywSupervisionItemList[i].userId == this.userId &&
  402. this.content.ywSupervisionItemList[i].submitState == "0"
  403. ) {
  404. this.showTijiao = true;
  405. }
  406. }
  407. })
  408. })
  409. }
  410. },
  411. pass(row) {
  412. if (
  413. row.leaderMsg == "" ||
  414. row.leaderMsg == null ||
  415. row.leaderMsg == undefined
  416. ) {
  417. uni.showToast({
  418. title: "请填写领导意见",
  419. icon: "none",
  420. mask: true,
  421. duration: 3000
  422. })
  423. return;
  424. } else {
  425. this.dataInfo.id = row.id;
  426. // this.dataInfo.supervisionId = row.id;
  427. this.dataInfo.leaderMsg = row.leaderMsg;
  428. this.dataInfo.leaderApprove = "2";
  429. uni.$u.http.post('/offcial/supervision/leaderApprove', this.dataInfo).then(res => {
  430. uni.showToast({
  431. title: "通过成功",
  432. icon: "none",
  433. mask: true,
  434. duration: 3000
  435. })
  436. uni.$u.http.get('/offcial/supervision/' + this.Optionsid).then((res) => {
  437. console.log('res', res)
  438. this.content = res.data
  439. this.dataInfo.supervisionId = res.data.id;
  440. this.tijiaoBtn = res.data.submitState == "1" ? true : false;
  441. this.showTijiao = false;
  442. for (let i = 0; i < this.content.ywSupervisionItemList.length; i++) {
  443. if (
  444. this.content.ywSupervisionItemList[i].userId == this.userId &&
  445. this.content.ywSupervisionItemList[i].submitState == "0"
  446. ) {
  447. this.showTijiao = true;
  448. }
  449. }
  450. })
  451. })
  452. }
  453. },
  454. select(e, item) {
  455. console.log('e', e)
  456. console.log('item', item)
  457. this.dataSubmit.id = item.id
  458. this.rowThis = item
  459. const pathUrl = e.tempFilePaths[0]
  460. uni.uploadFile({
  461. url: this.uploadUrl,
  462. filePath: pathUrl,
  463. name: 'file',
  464. header: {
  465. Authorization: 'Bearer ' + uni.getStorageSync('token')
  466. },
  467. // formData: {
  468. // 'path': 'supervision'
  469. // },
  470. success: (uploadFileRes) => {
  471. console.log('uploadFileRes', uploadFileRes)
  472. this.rowThis.ywFileList.push(uploadFileRes.data)
  473. if (this.rowThis.ywFileList.length != 0) {
  474. for (let i = 0; i < this.rowThis.ywFileList.length; i++) {
  475. if (this.rowThis.ywFileList[i].response != undefined) {
  476. this.dataSubmit.ywFileList.push(
  477. this.rowThis.ywFileList[i].response.data
  478. );
  479. } else {
  480. this.dataSubmit.ywFileList.push(this.rowThis.ywFileList[i]);
  481. }
  482. }
  483. }
  484. }
  485. })
  486. },
  487. progress(e) {
  488. console.log('progress', e)
  489. },
  490. success(e) {
  491. console.log('success', e)
  492. },
  493. fail(e) {
  494. console.log('fail', e)
  495. },
  496. deleteFile(e) {
  497. console.log('del', e)
  498. },
  499. //选择接收人
  500. queren1() {
  501. this.peoShow1 = false
  502. this.dataSubmit.ywFileList = this.rowThis.ywFileList
  503. this.dataSubmit.progress = this.rowThis.progress
  504. console.log('dataSubmit', this.dataSubmit)
  505. uni.$u.http.post('/offcial/supervision/editItem', this.dataSubmit).then(res => {
  506. uni.showToast({
  507. title: "提交成功",
  508. icon: "none",
  509. mask: true,
  510. duration: 3000
  511. })
  512. uni.$emit('query', {
  513. a: 'back'
  514. })
  515. setTimeout(() => {
  516. uni.navigateBack()
  517. }, 2000)
  518. }).catch((err) => {
  519. uni.showToast({
  520. title: err.msg,
  521. icon: "none",
  522. mask: true,
  523. duration: 3000
  524. })
  525. })
  526. },
  527. radioChange1(e) {
  528. console.log('65846', e)
  529. // this.content.params.toEmps = e.NO
  530. // this.content.toEmpsName = e.Name
  531. let selUsers = e.NO
  532. if (selUsers != undefined && selUsers != "") {
  533. this.dataSubmit.leaderUserName = selUsers;
  534. }
  535. },
  536. cancel1() {
  537. this.peoShow1 = false
  538. this.content.params.toEmps = null
  539. this.content.toEmpsName = null
  540. this.value1 = null
  541. },
  542. submit() {
  543. this.peoShow1 = true
  544. },
  545. //获取接收人信息
  546. getPeoList(v) {
  547. uni.$u.http.get(`/jflow/restful/GenerNextStepNodeEmpsNoWorkId?flowNo=${v}&toNodeID=602`).then(
  548. res => {
  549. this.deptList = res.Depts
  550. this.userList = res.Emps
  551. console.log(this.deptList)
  552. console.log(this.userList)
  553. })
  554. },
  555. keep() {
  556. uni.showLoading({
  557. title: "保存中...",
  558. mask: true
  559. })
  560. uni.$u.http.put("/offcial/supervision", this.content).then(res => {
  561. uni.showToast({
  562. title: "保存成功",
  563. icon: "none",
  564. mask: true,
  565. duration: 3000
  566. })
  567. uni.hideLoading()
  568. uni.$emit('query', {
  569. a: 'back'
  570. })
  571. setTimeout(() => {
  572. uni.navigateBack()
  573. }, 2000)
  574. }).catch((err) => {
  575. uni.showToast({
  576. title: err.msg,
  577. icon: "none",
  578. mask: true,
  579. duration: 3000
  580. })
  581. uni.hideLoading()
  582. })
  583. },
  584. handelSelect() {
  585. uni.navigateTo({
  586. url: `/pages/zerenchushi/zerenchushi`
  587. })
  588. },
  589. confirmOne(e) {
  590. if (this.typeDate == 'shixian') {
  591. console.log('11')
  592. this.content.doneTime = e[0]
  593. }
  594. this.show1 = false
  595. },
  596. typeChange(e) {
  597. this.show1 = true
  598. this.typeDate = e
  599. },
  600. infoSourceChange(val) {
  601. console.log("db_template", this.db_template);
  602. console.log('val', val);
  603. this.infoSourceContent = this.db_template[val - 1].text;
  604. },
  605. getDictsInfo() {
  606. let that = this
  607. uni.$u.http.get('/system/dict/data/type/info_source').then(res => {
  608. this.InfoList = res.data.map((item, index) => {
  609. let obj = {
  610. value: item.dictValue,
  611. id: item.dictValue,
  612. text: item.dictLabel
  613. }
  614. return obj
  615. })
  616. })
  617. uni.$u.http.get('/system/dict/data/type/leader_approve').then(res => {
  618. that.leaderOpinList = res.data.map((item, index) => {
  619. let obj = {
  620. value: item.dictValue,
  621. id: item.dictValue,
  622. text: item.dictLabel
  623. }
  624. return obj
  625. })
  626. console.log('leaderOpinList', this.leaderOpinList)
  627. })
  628. uni.$u.http.get('/system/dict/data/type/db_template').then(res => {
  629. this.db_template = res.data.map((item, index) => {
  630. let obj = {
  631. value: item.dictValue,
  632. id: item.dictValue,
  633. text: item.dictLabel
  634. }
  635. return obj
  636. })
  637. })
  638. }
  639. }
  640. }
  641. </script>
  642. <style>
  643. </style>