Эх сурвалжийг харах

Merge branch 'master' of http://119.23.210.103:3000/wy/lh_firm_former

zhangjingyuan 3 жил өмнө
parent
commit
85d22ea159

+ 1 - 1
src/business/platform/form/formrender/dynamic-form/components/print.vue → src/business/platform/data/templaterender/components/print.vue

@@ -14,7 +14,7 @@
                 <div
                     v-for="(item, index) in list"
                     :key="index"
-                    :class="(index + 1) % 9 === 9 ? ['box', 'next-page'] : 'box'"
+                    :class="(index + 1) % 9 === 0 ? ['box', 'next-page'] : 'box'"
                 >
                     <template v-for="(o, i) in modelList">
                         <div v-if="item[o.value]" class="item" :style="`width: ${o.width};`">

+ 0 - 2
src/business/platform/data/templaterender/form/action.js

@@ -8,7 +8,6 @@ export default {
     emitEventHandler(actionKey, args) {
       const action = args && args.attributes ? args.attributes.button_type || actionKey : actionKey
       this.actionName = actionKey
-      // console.log(actionKey,'货币慧慧68687')
       switch (action) {
         case 'close': // 关闭窗口
           this.closeDialog()
@@ -97,7 +96,6 @@ export default {
     // 保存
     handleSave() {
       // 验证表单是否正确
-      // console.log('认为非我方2131321')
       this.validate(valid => {
         if (valid) {
           // 表单提交校验

+ 18 - 7
src/business/platform/data/templaterender/templates/list.vue

@@ -242,12 +242,13 @@
       @close="loadFlowFData"
     />
     <Scan
-    :currentScan = "scanName"
-    :scanVisible = "scanVisible"
-    :obj = "obj"
-    v-if="scanVisible"
-    @scanOff = "scanOff"
+      :currentScan = "scanName"
+      :scanVisible = "scanVisible"
+      :obj = "obj"
+      v-if="scanVisible"
+      @scanOff = "scanOff"
     />
+    <print :show="showPrint" :list="printList" :type="printType"/>
   </div>
 </template>
 <script>
@@ -308,7 +309,8 @@ export default {
     IbpsAddress,
     IbpsImage,
     DictionaryFormat,
-    Scan
+    Scan,
+    Print: () => import('../components/print')
    // BpmnFormrender
     // DataTemplateFormat
   },
@@ -404,7 +406,10 @@ export default {
       dialogTemplate: null,
       dialogTemplateAtts: {},
       formPrintTemplateDialogVisible: false,
-      printTemplateId: ''
+      printTemplateId: '',
+      showPrint: false,
+      printType: '',
+      printList: []
     }
   },
   computed: {
@@ -772,6 +777,12 @@ export default {
       this.scanName = val
       this.obj = obj
     },
+    // 标签打印
+    printTag(data, type) {
+      this.showPrint = true
+      this.printList = data
+      this.printType = type
+    },
     /* 返回关闭*/
     scanOff(val){
       this.scanVisible = false

+ 6 - 1
src/business/platform/form/formbuilder/right-aside/editors/editor-options.vue

@@ -21,7 +21,7 @@
             <!---=================自定义=============---->
             <div v-if="datasource === 'custom' || !datasource">
                 <!-- 下拉框静态数据新增是否可创建 -->
-                <el-form-item v-if="fieldType === 'select'">
+                <el-form-item v-if="fieldType === 'select'" class="label">
                     <template slot="label">是否可添加<help-tip prop="allowCreate" /></template>
                     <el-switch v-model="fieldOptions.allowCreate"/>
                 </el-form-item>
@@ -424,4 +424,9 @@
             margin-right: 0;
         }
     }
+    .label {
+        ::v-deep .el-form-item__label {
+            width: 100px !important;
+        }
+    }
 </style>

+ 2 - 13
src/business/platform/form/formrender/index.vue

@@ -61,7 +61,6 @@
                 ref="customComponent"
                 v-bind="customComponentAtts"
             />
-            <print :show="showPrint" :list="printList" :type="printType"/>
         </ibps-watermark>
     </div>
 </template>
@@ -79,8 +78,7 @@
         components: {
             DynamicForm,
             panle,
-            IbpsWatermark,
-            Print: () => import('./dynamic-form/components/print')
+            IbpsWatermark
         },
         props: {
             isDialog: {
@@ -148,10 +146,7 @@
                 number: 0,
                 // 个性定制
                 customComponent: null,
-                customComponentAtts: {},
-                showPrint: false,
-                printType: '',
-                printList: []
+                customComponentAtts: {}
             }
         },
         computed: {
@@ -560,12 +555,6 @@
             // 更新store
             updateStore(action, data) {
                 this.$store.dispatch(action, data)
-            },
-            // 标签打印
-            print(data, type) {
-                this.showPrint = true
-                this.printList = data
-                this.printType = type
             }
         }
     }

+ 1 - 1
src/views/platform/bpmn/bpmInstHis/component/testingRecord.vue

@@ -233,7 +233,7 @@
             }
         },
         data () {
-            reportList[1].path = this.info.path
+            reportList[1].path = this.info.reportPath
             return {
                 searchList,
                 reportList,

+ 2 - 2
src/views/system/jbdScan/goods/deviceTag.vue

@@ -149,10 +149,10 @@ export default {
     },
     getLook(id) {
       let sql = `select * from t_sbdj where find_in_set(id_,'${id}')`
-      console.log(sql)
+      // console.log(sql)
       repostCurd("sql", sql).then(res => {
           const data = res.variables.data
-          console.log(data)
+          // console.log(data)
           let list = []
           data.forEach(item => {
             let num = 1

+ 48 - 48
src/views/system/jbdScan/goods/tag.vue

@@ -139,8 +139,8 @@ export default {
     },
     getLook(id) {
       // console.log(id)
-      // let sql = `select * from t_lhypb where find_in_set(parent_id_,'${id}')`
-      let sql = `select * from t_lhypdjb where find_in_set(id_,'${id}')`
+      let sql = `select * from t_lhypb where find_in_set(id_,'${id}')`
+      // let sql = `select * from t_lhypdjb where find_in_set(id_,'${id}')`
       // console.log(sql)
       repostCurd("sql", sql).then(res => {
         if (res.state === 200) {
@@ -148,56 +148,56 @@ export default {
           // console.log(data)
           let list = []
           data.forEach(item => {
-            if (item.yang_ben_lei_xing != '' && parseInt(item.yang_pin_shu_lian) > 0) {
+          //   if (item.yang_ben_lei_xing != '' && parseInt(item.yang_pin_shu_lian) > 0) {
+          //     let o = {
+          //       name: item.yang_ben_ming_che,
+          //       serial: item.yang_ben_bian_hao,
+          //       type: item.yang_ben_lei_xing,
+          //       num: item.yang_pin_shu_lian,
+          //       condition: item.yun_shu_tiao_jian
+          //     }
+          //     list.push(o)
+          //   }
+            if (item.yang_pin_lei_xing != '' && parseInt(item.shu_liang_) > 0) {
               let o = {
-                name: item.yang_ben_ming_che,
-                serial: item.yang_ben_bian_hao,
-                type: item.yang_ben_lei_xing,
-                num: item.yang_pin_shu_lian,
-                condition: item.yun_shu_tiao_jian
+                name: item.yang_pin_ming_che,
+                serial: item.yang_pin_bian_hao,
+                type: item.yang_pin_lei_xing,
+                num: item.shu_liang_,
+                condition: item.yang_ben_yun_shu_
+              }
+              list.push(o)
+            }
+            if (item.yang_pin_lei_er_ != '' && parseInt(item.shu_liang_er_) > 0) {
+              let o = {
+                name: item.yang_pin_ming_che,
+                serial: item.yang_pin_bian_hao,
+                type: item.yang_pin_lei_er_,
+                num: item.shu_liang_er_,
+                condition: item.yang_pin_yun_shu_
+              }
+              list.push(o)
+            }
+            if (item.yang_pin_lei_san_ != '' && parseInt(item.shu_liang_san_) > 0) {
+              let o = {
+                name: item.yang_pin_ming_che,
+                serial: item.yang_pin_bian_hao,
+                type: item.yang_pin_lei_san_,
+                num: item.shu_liang_san_,
+                condition: item.yang_pin_yun_san
+              }
+              list.push(o)
+            }
+            if (item.yang_pin_lei_si_ != '' && parseInt(item.shu_liang_si_) > 0) {
+              let o = {
+                name: item.yang_pin_ming_che,
+                serial: item.yang_pin_bian_hao,
+                type: item.yang_pin_lei_si_,
+                num: item.shu_liang_si_,
+                condition: item.yang_pin_yun_si_
               }
               list.push(o)
             }
-            // if (item.yang_pin_lei_xing != '' && parseInt(item.shu_liang_) > 0) {
-            //   let o = {
-            //     name: item.yang_pin_ming_che,
-            //     serial: item.yang_pin_bian_hao,
-            //     type: item.yang_pin_lei_xing,
-            //     num: item.shu_liang_,
-            //     condition: item.yang_ben_yun_shu_
-            //   }
-            //   list.push(o)
-            // }
-            // if (item.yang_pin_lei_er_ != '' && parseInt(item.shu_liang_er_) > 0) {
-            //   let o = {
-            //     name: item.yang_pin_ming_che,
-            //     serial: item.yang_pin_bian_hao,
-            //     type: item.yang_pin_lei_er_,
-            //     num: item.shu_liang_er_,
-            //     condition: item.yang_pin_yun_shu_
-            //   }
-            //   list.push(o)
-            // }
-            // if (item.yang_pin_lei_san_ != '' && parseInt(item.shu_liang_san_) > 0) {
-            //   let o = {
-            //     name: item.yang_pin_ming_che,
-            //     serial: item.yang_pin_bian_hao,
-            //     type: item.yang_pin_lei_san_,
-            //     num: item.shu_liang_san_,
-            //     condition: item.yang_pin_yun_san
-            //   }
-            //   list.push(o)
-            // }
-            // if (item.yang_pin_lei_si_ != '' && parseInt(item.shu_liang_si_) > 0) {
-            //   let o = {
-            //     name: item.yang_pin_ming_che,
-            //     serial: item.yang_pin_bian_hao,
-            //     type: item.yang_pin_lei_si_,
-            //     num: item.shu_liang_si_,
-            //     condition: item.yang_pin_yun_si_
-            //   }
-            //   list.push(o)
-            // }
 
           })
           this.list = list

+ 3 - 3
src/views/system/jbdScan/js/manualConfirmationJS.js

@@ -236,7 +236,7 @@ export default {
          // console.log('lhypIdStr :',lhypIdStr)
          let wtdAndYpb = []
         // a.bao_gao_bian_zhi_,a.bao_gao_fu_he_yua,
-         let allSQL = `select a.id_ as wtID,a.zhan_shi_biao_id_,a.wei_tuo_lei_xing_,a.he_tong_id_,a.bao_gao_lei_xing_,a.wei_tuo_bian_hao_, a.wei_tuo_dan_wei_, a.wei_tuo_fang_lian, a.wei_tuo_lian,a.bao_gao_bian_zhi_,a.bao_gao_fu_he_yua,b.* from t_lhwtsqb a inner join t_lhypb b on a.id_ = b.parent_id_ where b.parent_id_ in ('${value}')and b.id_ in ('${lhypIdStr}')`
+         let allSQL = `select a.id_ as wtID,a.zhan_shi_biao_id_,a.wei_tuo_lei_xing_,a.he_tong_id_,a.bao_gao_lei_xing_,a.wei_tuo_bian_hao_, a.wei_tuo_dan_wei_ as wtdh, a.wei_tuo_fang_lian, a.wei_tuo_lian,a.bao_gao_bian_zhi_,a.bao_gao_fu_he_yua,b.* from t_lhwtsqb a inner join t_lhypb b on a.id_ = b.parent_id_ where b.parent_id_ in ('${value}')and b.id_ in ('${lhypIdStr}')`
           // console.log(allSQL)
           repostCurd('sql', allSQL).then(res1 => {
               /* 封装样品登记表对象  */
@@ -264,7 +264,7 @@ export default {
                   for(let x = 0; x<count;x++){
                     let obj = {}
                     obj["wei_tuo_dan_hao_"] = res[i].wei_tuo_bian_hao_
-                    obj["wei_tuo_dan_wei_"] = res[i].wei_tuo_dan_wei_
+                    obj["wei_tuo_dan_wei_"] = res[i].wtdh
                     obj["lian_xi_ren_"]     = res[i].wei_tuo_fang_lian
                     obj["lian_xi_dian_hua_"] = res[i].wei_tuo_lian
 
@@ -314,7 +314,7 @@ export default {
               // console.log('进入样品登记表...',ypdjb)
               repostCurd('add', '{"tableName":"t_lhypdjb","paramWhere":' + JSON.stringify(ypdjb) + '}')
               repostCurd('updates', '{"tableName":"t_lhypb","paramWhere":[' + lhypIdNewList + '],"paramCond":{"jie_yang_zhuang_t":"已接收"}}')
-
+              
               /*
                 更新委托单 如果本来没值,就更新 报告编制人和 报告审核员 否则更新
                 委托单数组 和 样品数组 数量相同,遍历两者 判断委托单是否有编制人,审核员?

+ 17 - 3
src/views/system/jbdScan/js/sampleConfirmationJS.js

@@ -33,6 +33,7 @@ export default {
             for (let i in res.variables.data) {
               res.variables.data[i].jie_yang_shu_lian = 1
               res.variables.data[i].jie_yang_zhuang_t = '未确认'
+              res.variables.data[i].biao_zhi_uuid_ = this.uuid()
               this.listData.push(res.variables.data[i])
               //this.OriginalPosition.push(res.variables.data[i].shi_fou_liu_yang_ == "是" ? res.variables.data[i].liu_yang_wei_zhi_ : res.variables.data[i].shou_yang_wei_zhi)
             }
@@ -213,7 +214,7 @@ export default {
 
          let wtdAndYpb = []
         // a.bao_gao_bian_zhi_,a.bao_gao_fu_he_yua,
-         let allSQL = `select a.id_ as wtID,a.zhan_shi_biao_id_,a.wei_tuo_lei_xing_,a.he_tong_id_,a.bao_gao_lei_xing_,a.wei_tuo_bian_hao_, a.wei_tuo_dan_wei_, a.wei_tuo_fang_lian, a.wei_tuo_lian,a.bao_gao_bian_zhi_,a.bao_gao_fu_he_yua,b.* from t_lhwtsqb a inner join t_lhypb b on a.id_ = b.parent_id_ where b.parent_id_ in ('${value}')and b.id_ in ('${lhypIdStr}')`
+         let allSQL = `select a.id_ as wtID,a.zhan_shi_biao_id_,a.wei_tuo_lei_xing_,a.he_tong_id_,a.bao_gao_lei_xing_,a.wei_tuo_bian_hao_, a.wei_tuo_dan_wei_ as wtdh, a.wei_tuo_fang_lian, a.wei_tuo_lian,a.bao_gao_bian_zhi_,a.bao_gao_fu_he_yua,b.* from t_lhwtsqb a inner join t_lhypb b on a.id_ = b.parent_id_ where b.parent_id_ in ('${value}')and b.id_ in ('${lhypIdStr}')`
           repostCurd('sql', allSQL).then(res1 => {
               /* 封装样品登记表对象  */
               let ypdjb = []
@@ -240,7 +241,7 @@ export default {
                   for(let x = 0; x<count;x++){
                     let obj = {}
                     obj["wei_tuo_dan_hao_"] = res[i].wei_tuo_bian_hao_
-                    obj["wei_tuo_dan_wei_"] = res[i].wei_tuo_dan_wei_
+                    obj["wei_tuo_dan_wei_"] = res[i].wtdh
                     obj["lian_xi_ren_"]     = res[i].wei_tuo_fang_lian
                     obj["lian_xi_dian_hua_"] = res[i].wei_tuo_lian
 
@@ -432,7 +433,9 @@ export default {
 
                     repostCurd('add', '{"tableName":"t_ypcfwz","paramWhere":' + JSON.stringify(cfNewList) + '}').then(res => {
                       let selectsql = "select id_ from t_ypcfwz where biao_zhi_uuid_='" + uuid + "'";
+                      // console.log(selectsql)
                       repostCurd('sql', selectsql).then(res => {
+                        // console.log(res)
                         let dataid = res.variables.data[0].id_;
                         let abc = '{"biao_zhi_uuid_":"' + uuid + '"}'
                         // console.log('zzj abc ',abc)
@@ -542,7 +545,18 @@ export default {
             return data.id_!=val
         })
     },
-
+      uuid() {
+        var s = [];
+        var hexDigits = "0123456789abcdef";
+        for (var i = 0; i < 36; i++) {
+            s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1);
+        }
+        s[14] = "4";  // bits 12-15 of the time_hi_and_version field to 0010
+        s[19] = hexDigits.substr((s[19] & 0x3) | 0x8, 1);  // bits 6-7 of the clock_seq_hi_and_reserved to 01
+        s[8] = s[13] = s[18] = s[23] = "-";
+        var uuid = s.join("");
+        return uuid;
+    },
     unique(arr) {
       return arr.filter((item, index) => {
         return arr.indexOf(item, 0) === index;