Bläddra i källkod

移除多余文件

xiaohaizhao 1 år sedan
förälder
incheckning
8d443ec7f7
27 ändrade filer med 0 tillägg och 4229 borttagningar
  1. 0 475
      src/HDrpManagement/orderManage/modules/edit copy.vue
  2. 0 47
      src/HDrpManagement/prodectFileData/index copy.vue
  3. 0 278
      src/HDrpManagement/projectStage/modules/stageDetail copy.vue
  4. 0 474
      src/HDrpManagement/serveWorkBill/modules/detail copy.vue
  5. 0 115
      src/HManagement/accountManage/bak/account_detail copy.vue
  6. 0 72
      src/HManagement/accountManage/bak/index copy.vue
  7. 0 111
      src/HManagement/archives_ad/index copy.vue
  8. 0 30
      src/HManagement/clueManage/clue_import/index copy.vue
  9. 0 132
      src/HManagement/clueManage/clue_private/modules/detail copy.vue
  10. 0 110
      src/HManagement/department/bak/index copy.vue
  11. 0 42
      src/HManagement/roleManage/bak/index copy.vue
  12. 0 139
      src/HManagement/roleManage/bak/role_details copy.vue
  13. 0 29
      src/HManagement/siteManage/coderule/index copy.vue
  14. 0 288
      src/SManagement/archives_admag/index copy.vue
  15. 0 96
      src/SManagement/notice/index copy.vue
  16. 0 188
      src/SManagement/orderclue_detail/components/followDetailCopy.vue
  17. 0 125
      src/SManagement/orderclue_detail/index copy.vue
  18. 0 97
      src/SManagement/project_target/modules/components/projectAdd/index copy.vue
  19. 0 116
      src/SManagement/project_target/modules/components/projectAdd/project copy.vue
  20. 0 119
      src/SManagement/sales_forecast/modules/bak/productDetail copy.vue
  21. 0 119
      src/SManagement/sales_forecast/modules/bak/projectDetail copy.vue
  22. 0 130
      src/SManagement/sales_forecast/modules/bak/salesHistory copy.vue
  23. 0 114
      src/SManagement/user/role-manage/RoleManage copy.vue
  24. 0 110
      src/SManagement/user/team-manage/TeamManage copy.vue
  25. 0 266
      src/optionSystem/itemManage/modules/add copy.vue
  26. 0 378
      src/optionSystem/itemManage/modules/edit copy.vue
  27. 0 29
      src/utils/copy.js

+ 0 - 475
src/HDrpManagement/orderManage/modules/edit copy.vue

@@ -1,475 +0,0 @@
-<template>
-  <div>
-    <el-button :disabled="data.status !=='新建' && data.status !=='提交'" type="primary" size="mini" @click="onShow(drawer = true)">{{$t('编辑')}}</el-button>
-    <el-drawer
-    :visible.sync="drawer"
-    direction="rtl"
-    append-to-body
-    size="80%">
-    <div slot="title">
-      <div class="flex-align-center">
-        <p><span style="font-size:14px">订单合计:</span><span style="color:red;font-size:16px;"><b>¥&nbsp;{{tool.formatAmount(data.amount,2)}}</b></span></p>
-        <!-- <label style="font-size:14px;margin-left:10px" for="">备注:</label>
-        <input class="order__note__input" v-model="defaultData.remarks" type="text" placeholder="请输入订单备注"> -->
-      </div>
-    </div>
-    <div class="drawer__panel">
-      <div>
-        <div class="mt-10">
-          <p class="normal-title inline-16">选择账户</p>
-          <el-popover
-            placement="bottom"
-            title="选择账户"
-            trigger="click"
-            v-model="visible3">
-            <el-table
-              :data="accountlist"
-              style="width: 100%"
-              size="mini">
-              <el-table-column
-                prop="accountname"
-                label="账户名称"
-                width="120">
-              </el-table-column>
-              <el-table-column
-                prop="balance"
-                label="账户余额"
-                width="120">
-                <template slot-scope="scope">
-                  ¥{{tool.formatAmount(scope.row.balance,2)}}
-                </template>
-              </el-table-column>
-              <el-table-column
-                :label="$t('操作')"
-                width="90">
-                <template slot-scope="scope">
-                  <el-button type="text" @click="(defaultData.accountclass = scope.row,visible3 = false)" size="mini">{{$t('选 择')}}</el-button>
-                </template>
-              </el-table-column>
-            </el-table>
-            <el-button slot="reference" type="text" size="mini">选择其他账户</el-button>
-          </el-popover>
-        </div>
-        <div class="reveive__panel normal-margin">
-          <p><b>¥{{tool.formatAmount(defaultData.accountclass.balance?defaultData.accountclass.balance:0,2)}}</b></p>
-          <small>{{defaultData.accountclass.accountname?defaultData.accountclass.accountname:'未选择账户'}}</small>
-          <div v-if="(data.type === '标准订单' ||  data.type === '特殊订单') && isusedrebate === 1">
-            <el-checkbox v-model="checked" :true-label="1" :false-label="0">使用返利金</el-checkbox>
-            <div v-if="checked" class="flex-align-center">
-              <p class="inline-16"><b>返利金余额:{{tool.formatAmount(rebateAccount[0]?rebateAccount[0].balance:0,2)}}</b></p>
-              <el-input class="inline-16" size="mini" style="width:150px" v-model="rebateamount" @blur="useRebate" placeholder="输入使用金额"></el-input>
-              <small>(返利金最高使用比例{{data.order_rebate_userate}}%)</small>
-            </div>
-          </div>
-        </div>
-      </div>
-      <div class="flex-align-center normal-margin">
-        <div style="flex:1;margin-right:10px">
-          <div class="mt-10">
-            <p class="normal-title inline-16">选择财务信息</p>
-            <el-popover
-              placement="bottom"
-              title="选择财务信息"
-              trigger="click"
-              v-model="visible2">
-              <el-table
-                :data="financiallist"
-                style="width: 100%"
-                size="mini">
-                <el-table-column
-                  prop="enterprisename"
-                  label="公司抬头"
-                  width="120">
-                </el-table-column>
-                <el-table-column
-                  prop="address"
-                  :label="$t('开票地址')"
-                  width="120">
-                </el-table-column>
-                <el-table-column
-                  prop="bank"
-                  :label="$t('开户行')"
-                  width="120">
-                </el-table-column>
-                <el-table-column
-                  prop="bankcardno"
-                  :label="$t('开户账号')"
-                  width="120">
-                </el-table-column>
-                <el-table-column
-                  :label="$t('操作')"
-                  width="90">
-                  <template slot-scope="scope">
-                    <el-button type="text" @click="(defaultData.fin_info = scope.row,visible2 = false)" size="mini">{{$t('选 择')}}</el-button>
-                  </template>
-                </el-table-column>
-              </el-table>
-              <el-button slot="reference" type="text" size="mini">选择其他</el-button>
-            </el-popover>
-          </div>
-          <div class="reveive__panel normal-margin">
-            <p><small>抬头:&nbsp;</small><span class="inline-16"><b>{{defaultData.fin_info.enterprisename}}</b></span></p>
-            <div class="flex-align-center">
-              <p class="inline-16"><small>开票地址:&nbsp;</small>{{defaultData.fin_info.address?defaultData.fin_info.address:'--'}}</p>
-              <p><small>开户行:&nbsp;</small> {{defaultData.fin_info.bank}} &emsp;<small>开户账号:&nbsp;</small> {{defaultData.fin_info.bankcardno}}</p>
-            </div>
-          </div>
-        </div>
-        <div style="flex:1;">
-          <div class="mt-10">
-            <p class="normal-title inline-16">收货信息</p>
-            <el-popover
-              placement="bottom"
-              title="选择地址"
-              trigger="click"
-              v-model="visible">
-              <el-table
-                :data="receiveAddresslist"
-                style="width: 100%"
-                size="mini">
-                <el-table-column
-                  prop="name"
-                  :label="$t('联系人')"
-                  width="90">
-                </el-table-column>
-                <el-table-column
-                  prop="phonenumber"
-                  label="电话"
-                  width="120">
-                </el-table-column>
-                <el-table-column
-                  :label="$t('地址')"
-                  width="360">
-                  <template slot-scope="scope">
-                    {{scope.row.province}}{{scope.row.city}}{{scope.row.county}}{{scope.row.address}}
-                  </template>
-                </el-table-column>
-                <el-table-column
-                  :label="$t('操作')"
-                  width="90">
-                  <template slot-scope="scope">
-                    <el-button type="text" @click="(defaultData.re_info = scope.row,visible = false)" size="mini">{{$t('选 择')}}</el-button>
-                  </template>
-                </el-table-column>
-              </el-table>
-              <el-button slot="reference" type="text" size="mini">选择其他地址</el-button>
-            </el-popover>
-          </div>
-          <div class="reveive__panel normal-margin">
-            <p><span class="inline-16"><b>{{defaultData.re_info.name}}</b></span><small>{{defaultData.re_info.phonenumber}}</small></p>
-            <small>{{defaultData.re_info.province}}{{defaultData.re_info.city}}{{defaultData.re_info.county}}{{defaultData.re_info.address?defaultData.re_info.address:'--'}}</small>
-          </div>
-        </div>
-
-      </div>
-
-      <div class="mt-10">
-        <p class="normal-title inline-16">领域明细</p>
-      </div>
-      <div class="mt-10 flex-align-center">
-        <div v-for="item in data.subvalues" :key="item.index" :style="defaultData.tradefieldmx === item?{background:'#d9ecff'}:{background:'#fff'}" class="reveive__panel normal-margin inline-16" @click="defaultData.tradefieldmx = item">
-          <p>{{item}}</p>
-        </div>
-      </div>
-      <div class="mt-10">
-        <p class="normal-title inline-16">寄付方式</p>
-      </div>
-      <div class="mt-10 flex-align-center">
-        <div :style="defaultData.freightstatus === '到付'?{background:'#d9ecff'}:{background:'#fff'}" class="reveive__panel normal-margin inline-16" @click="defaultData.freightstatus = '到付'">
-          <p>到付</p>
-        </div>
-        <div :style="defaultData.freightstatus === '预付'?{background:'#d9ecff'}:{background:'#fff'}" class="reveive__panel normal-margin" @click="defaultData.freightstatus = '预付'">
-          <p>预付</p>
-        </div>
-      </div>
-
-      <div class="mt-10">
-        <p class="normal-title inline-16">订单备注</p>
-      </div>
-      <div class="mt-10">
-        <el-input v-model="defaultData.remarks" type="textarea" :autosize="{minRows:5,maxRows:10}" placeholder="请输入订单备注"></el-input>
-      </div>
-      <div>
-        <div class="mt-10">
-          <p class="normal-title inline-16">订单产品</p>
-          <el-button type="text" size="mini" @click="addMoreProduct">{{setcol === 12?'关闭选择':'添加产品'}}</el-button>
-        </div>
-        <el-row :gutter="10">
-          <el-col :span="setcol">
-            <product-list ref="prolist" :data="data" :type="data.status === '提交'?'':'edit'" @onSuccess="onDelSuccess"></product-list>
-          </el-col>
-          <el-col :span="24 - setcol">
-            <add-product ref="addpro" :data="data" @onConfirm="onConfirm"></add-product>
-          </el-col>
-        </el-row>
-      </div>
-    </div>
-    <div class="fixed__btn__panel">
-      <el-button size="small" @click="drawer = false" class="normal-btn-width">{{$t('取 消')}}</el-button>
-      <el-button size="small" type="primary" @click="onSubmit" class="normal-btn-width">保存修改</el-button>
-    </div>
-  </el-drawer>
-  </div>
-</template>
-
-<script>
-import previewImage from '@/components/previewImage/index.vue'
-import productList from '../details/tabs/productlist.vue'
-import addProduct from '@/template/orderCanUseProduct/index.vue'
-export default {
-  props:['data'],
-  components:{
-    previewImage,
-    productList,
-    addProduct
-  },
-  data () {
-    return {
-      visible:false,
-      visible1:false,
-      visible2:false,
-      visible3:false,
-      drawer:false,
-      receiveAddresslist:[],
-      accountlist:[],
-      logisticcomlist:[],
-      financiallist:[],
-      defaultData:{
-        re_info:{},
-        logist_info:{},
-        fin_info:{},
-        accountclass:{},
-        account_index:0,
-        remarks:this.data.remarks,
-        freightstatus:'到付',
-        tradefieldmx:''
-      },
-      agnetInfo:{},
-      total:0,
-      setcol:24,
-      checked:0,
-      rebateamount:null,
-      isusedrebate:0,
-      rebateAccount:[]
-    }
-  },
-  methods:{
-    onShow () {
-      this.queryAgentiInfo()
-      this.defaultData.freightstatus = this.data.freightstatus
-      this.defaultData.tradefieldmx = this.data.tradefieldmx
-    },
-    async queryAgentiInfo () {
-      const res = await this.$api.requested({
-        "id": "20221022165203",
-        "content": {
-          sys_enterpriseid:this.data.sys_enterpriseid
-        }
-      })
-      this.agnetInfo = res.data
-
-      this.receiveAddress()
-
-      this.queryAccount()
-
-      this.queryLogisticcom()
-
-      this.queryFinancial()
-
-      this.queryUsedrebate()
-
-      this.checked = this.data.rebate_used
-      this.rebateamount = this.data.rebateamount
-    },
-    // 收货信息:合作企业联系人
-    async receiveAddress () {
-      const res = await this.$api.requested({
-        "id": "20221009155803",
-        "content": {
-        "sys_enterpriseid":this.agnetInfo.sys_enterpriseid,
-          "where":{
-            "condition":"",
-            "workaddress":0
-          }
-        }
-      })
-      this.receiveAddresslist = res.data
-      this.defaultData.re_info = res.data[0] ? res.data[0] : {}
-      console.log(res.data);
-
-    },
-
-    // 账号信息
-    async queryAccount () {
-      const res = await this.$api.requested({
-        "id": "20221008134803",
-        "content": {
-          "pageNumber": 1,
-          "pageSize": 100,
-          "where":{
-            "isused":1
-          }
-        }
-      })
-     this.accountlist = res.data.filter(e=>{
-        return e.isrebate !== 1
-      })
-      this.rebateAccount = res.data.filter(e=>{
-        return e.isrebate === 1
-      })
-      this.defaultData.accountclass = this.data.accountclass
-    },
-
-    // 物流企业
-    async queryLogisticcom () {
-      const res = await this.$api.requested({
-        "id": "20221121135804",
-        "content": {
-          "pageNumber": 1,
-          "pageSize": 100
-        }
-      })
-      this.logisticcomlist = res.data
-
-      this.defaultData.logist_info = this.data.logiscomp
-    },
-    // 财务信息
-    async queryFinancial () {
-      const res = await this.$api.requested({
-        "id": "20221013160602",
-        "content": {
-          "sys_enterpriseid":this.agnetInfo.sys_enterpriseid,
-          "pageNumber": 1,
-          "pageSize": 100
-        }
-      })
-      this.financiallist = res.data
-      this.defaultData.fin_info = this.data.finance
-    },
-    async onSubmit() {
-      const res = await this.$api.requested({
-        "id": 20221108111402,
-        "content": {
-          "sa_orderid": this.$route.query.id,
-          "sys_enterpriseid": this.data.sys_enterpriseid, //订货企业id
-          "sa_accountclassid": this.defaultData.accountclass.sa_accountclassid, //营销账户类型ID
-          "sa_brandid": this.data.sa_brandid, //品牌ID
-          "sa_contractid":this.data.sa_contractid, //合同ID,标准订单不传
-          "sa_projectid": this.data.sa_projectid, //工程项目表ID,标准订单不传
-          "sys_enterprise_financeid": this.defaultData.fin_info.sys_enterprise_financeid, //合作企业财务信息ID(开票信息)
-          "sa_logiscompid": this.defaultData.logist_info.sa_logiscompid, //物流公司档案ID
-          "rec_contactsid": this.defaultData.re_info.contactsid, //合作企业联系人表ID(收货信息)
-          "type": this.data.type, //订单类型
-          "typemx":this.data.typemx, //明细分类,可选
-          "remarks": this.defaultData.remarks, //可选
-          // "saler_hrid":this.data.saler_hrid//销售人员hrid,业务员hrid
-          "pay_enterpriseid":this.data.pay_enterpriseid,
-          "tradefield":this.data.tradefield,
-          "freightstatus":this.defaultData.freightstatus
-        },
-      })
-      this.tool.showMessage(res,()=>{
-        console.log(this.data)
-        this.$emit('onSuccess')
-        this.useRebate()
-        this.drawer = false
-      })
-    },
-    onDelSuccess () {
-      this.$refs.addpro.listData()
-    },
-    addMoreProduct () {
-      this.setcol === 12?this.setcol = 24 : this.setcol = 12
-    },
-    // 订单添加商品
-    async onConfirm (data) {
-      const res = await this.$api.requested({
-        "id": 20221109093602,
-        "content": {
-          "sa_orderid": this.$route.query.id, //订单ID
-          "sys_enterpriseid": this.data.sys_enterpriseid, //企业ID
-          "type": "标准订单", //订单类型
-          "items": data.map(e=>{
-            return {
-              sa_orderitemsid:0,
-              itemid:e.itemid,
-              qty:e.orderminqty,
-              needdate:e.deliverydate
-            }
-          })
-        },
-      })
-      this.tool.showMessage(res,()=>{
-        this.setcol = 24
-        this.$refs['prolist'].listData()
-      })
-    },
-     async useRebate () {
-      if (this.rebateamount == null) return this.$message({
-          message:"返利金不能为空",
-          type:'error'
-        })
-      const res = await this.$api.requested({
-        "id": 20230218225002,
-        "content": {
-          "sa_orderid": this.data.sa_orderid, //订单金额
-          "isused": this.checked, //是否使用
-          "rebateamount": this.rebateamount //返利金使用金额
-        },
-      })
-      if (res.code === 0) this.$message({
-        message:`使用返利金失败!${res.msg}`,
-        type:'error'
-      })
-    },
-    // 查询站点是否使用返利金
-    async queryUsedrebate () {
-      const res = await this.$api.requested({
-         "classname": "webmanage.site.site",
-        "method": "querySite_Parameter",
-        "content": {
-        }
-      })
-      this.isusedrebate = res.data.order_rebate_used
-    }
-  },
-  mounted () {
-  }
-}
-
-</script>
-<style>
-</style>
-<style scoped>
-.reveive__panel{
-  font-size: 14px;
-  line-height: 30px;
-  padding: 10px;
-  background: #d9ecff;
-  border: 1px dashed #0676e7;
-  cursor: pointer;
-}
-.account__panel small,.reveive__panel small{
-  color:#666
-}
-.account__panel{
-  width: calc(25% - 26px);
-  padding: 10px;
-  margin-bottom:10px;
-  border: 1px dashed #666;
-}
-.act{
-  background: #d9ecff;
-  border: 1px dashed #0676e7;
-}
-.image {
-  width:40px;height:40px;margin:0px auto;
-}
-.order__note__input{
-  border: none;
-  outline: none;
-  /* margin-left: 10px; */
-  /* border-bottom: 1px solid #f1f2f3; */
-  flex:1
-}
-</style>

+ 0 - 47
src/HDrpManagement/prodectFileData/index copy.vue

@@ -1,47 +0,0 @@
-<template>
-  <div>
-    <div class="container normal-panel normal-margin">
-      <add @addSuccess="onSuccess"></add>
-    </div>
-    <div class="container normal-panel ">
-      <list ref="list">
-        <template v-slot:edit="scope">
-          <edit v-if="tool.checkAuth($route.name,'update')"  :data="scope.data"   :type="'text'" @updateSuccess="onSuccess"></edit>
-        </template>
-        <template v-slot:del="scope">
-          <file_del v-if="tool.checkAuth($route.name,'delete')" :data="scope.data" :type="'text'" @deleteSuccess="onSuccess"></file_del>
-        </template>
-        <template v-slot:bind="scope">
-          <el-button  :type="'text'" @click="$router.push({path:'/relation',query:{id:scope.data.plm_technicalinfoid}})" style="font-size: 12px">关联商品</el-button>
-        </template>
-      </list>
-    </div>
-  </div>
-</template>
-
-<script>
-import list from './modules/list'
-import add from './modules/add'
-import edit from './modules/edit'
-import file_del from './modules/fileDel'
-import relation from "./modules/relation"
-export default {
-  name: "index",
-  components: {
-    list,
-    add,
-    edit,
-    file_del,
-    relation
-  },
-  methods: {
-    onSuccess(){
-      this.$refs.list.listData()
-    }
-  }
-}
-</script>
-
-<style scoped>
-
-</style>

+ 0 - 278
src/HDrpManagement/projectStage/modules/stageDetail copy.vue

@@ -1,278 +0,0 @@
-<template>
-  <div>
-    <el-button type="text" size="small" @click="onShow">设置项目阶段</el-button>
-    <el-drawer
-      title="我是标题"
-      :visible.sync="dialogStageVisible"
-      direction="rtl"
-      :modal="true"
-      :show-close="false"
-      :withHeader="false"
-      size="50%">
-      <div class="flex-align-center flex-between container" style="border-bottom:1px solid #f1f2f3">
-        <div style="font-size:20px">模板</div>
-        <div>
-          <el-button type="primary" @click="dialogStageVisible = false" size="small">{{$t('保 存')}}</el-button>
-          <!-- <el-button @click="dialogStageVisible = false" size="small">{{$t('取 消')}}</el-button> -->
-        </div>
-      </div>
-      <div class="container">
-        <div class="container">
-          <div class="flex-align-stretch">
-            <div v-for="(stage,index) in stageData.sa_projstagetempStages" :key="index" @click="(act_stageIndex = index,showEidtWork = 'hide',act_workIndex = null)">
-              <div class="stage__panel" :class="act_stageIndex === index?'active__stage':''">
-                <!-- <div>
-                  {{stage.stagename}}
-                </div> -->
-                <div>
-                  <el-input
-                    style="width:100px"
-                    class="input-new-tag"
-                    v-if="act_stageIndex === index && inputVisible"
-                    v-model="stage.stagename"
-                    ref="editTagInput"
-                    size="small"
-                    @keyup.enter.native="handleInputConfirm"
-                    @blur="handleInputConfirm"
-                  >
-                  </el-input>
-                  <p v-else class="button-new-tag" size="small" @click="showEditInput">{{stage.stagename}}</p>
-                </div>
-              </div>
-            </div>
-            <div class="stage__panel">
-              <div>
-                <el-input
-                  style="width:100px"
-                  class="input-new-tag"
-                  v-if="inputVisible && !act_stageIndex"
-                  v-model="inputValue"
-                  ref="saveTagInput"
-                  size="small"
-                  @keyup.enter.native="handleInputConfirm"
-                  @blur="handleInputConfirm"
-                >
-                </el-input>
-                <p v-else class="button-new-tag" size="small" @click="showInput">+ 新阶段</p>
-              </div>
-            </div>
-          </div>
-          <div class="work__panel"
-          :class="act_workIndex === windex?'active__work':''"
-          v-for="(work,windex) in stageData.sa_projstagetempStages[act_stageIndex].sa_projstagetempWorks"
-          :key="windex"
-          @click="(act_workIndex = windex,showEidtWork = 'show')">
-            <div :class="act_workIndex === windex?showEidtWork==='hide'?'show':'hide':''">
-              <!-- <p><b>{{work.workname}}</b></p> -->
-              <el-divider content-position="left">{{work.workname}}</el-divider>
-              <p>{{work.remarks}}</p>
-            </div>
-            <div class="work__panel__operation">
-              <i class="el-icon-s-claim"></i>&emsp;
-              <i class="el-icon-delete" @click="deleteWork(windex)"></i>
-            </div>
-            <div v-if="act_workIndex === windex"  :class="showEidtWork" style="margin-top:20px">
-              <el-input class="normal-margin" v-model="work.workname" size="small"></el-input>
-              <el-input v-model="work.remarks" type="textarea" size="mini" :rows="3"></el-input>
-            </div>
-          </div>
-          <div class="work__panel_add" @click="addNewWork()">
-            + 添加新工作内容
-          </div>
-        </div>
-      </div>
-    </el-drawer>
-  </div>
-</template>
-
-<script>
-export default {
-  props:['data'],
-  data () {
-    return {
-      dialogStageVisible:false,
-      inputVisible:false,
-      act_stageIndex:0,
-      act_workIndex:null,
-      showEidtWork:'hide',
-      stageData: {
-        "sa_projstagetempid": this.data.sa_projstagetempid,
-        "stagetempname": this.data.stagetempname,
-        "remarks":this.data.remarks,
-        "projecttype": this.data.projecttype,
-        "isused": this.data.isused,
-        "locked":  this.data.locked,
-        "sa_projstagetempStages":[
-          {
-            "sa_projstagetemp_stageid": 0,
-            "stagename": "阶段一",
-            "remarks": "",
-            "sequence": 1,
-            "sa_projstagetempWorks": [
-              {
-                  "workname": "工作一",
-                  "remarks": "本的 CSS 变形平行四边形其实是矩形的超集:它的各条边是两两平行的,但各个角则不一定都是直角。",
-                  "sequence": 1,
-                  "score": 1
-              },
-              {
-                  "workname": "工作二",
-                  "remarks": "yos23",
-                  "sequence": 1,
-                  "score": 1
-              }
-            ]
-          },
-          {
-            "sa_projstagetemp_stageid": 0,
-            "stagename": "阶段二",
-            "remarks": "",
-            "sequence": 1,
-            "sa_projstagetempWorks": [
-              {
-                  "workname": "yos23",
-                  "remarks": "yos23",
-                  "sequence": 1,
-                  "score": 1
-              }
-            ]
-          }
-        ]
-      },
-      inputValue:''
-    }
-  },
-  methods:{
-    async getStageData() {
-      const res = await this.$api.requested({
-        "id": "20221019085904",
-        "content": {
-          "sa_projstagetempid":this.data.sa_projstagetempid
-        }
-      })
-    },
-    onShow () {
-      this.dialogStageVisible = true
-      this.getStageData()
-    },
-    editWork () {
-      this.showEidtWork = 'show'
-    },
-    addNewWork () {
-      let stage = this.stageData.sa_projstagetempStages[this.act_stageIndex].sa_projstagetempWorks
-      stage.push({
-        "workname": "新工作",
-        "remarks": "新工作内容",
-        "sequence": 1,
-        "score": 1
-      })
-      this.act_workIndex = stage.length - 1
-      this.showEidtWork = 'show'
-    },
-    deleteWork (windex) {
-      let stage = this.stageData.sa_projstagetempStages[this.act_stageIndex].sa_projstagetempWorks
-      stage = stage.filter((e,index)=>{
-        if (index !== windex) {
-          return e
-        }
-
-      })
-      this.stageData.sa_projstagetempStages[this.act_stageIndex].sa_projstagetempWorks = stage
-      console.log(stage)
-    },
-    showInput() {
-      this.act_stageIndex = null
-      this.inputVisible = true;
-      this.$nextTick(_ => {
-        this.$refs.saveTagInput.$refs.input.focus();
-      });
-    },
-    showEditInput () {
-      this.inputVisible = true;
-      this.$nextTick(_ => {
-        this.$refs.editTagInput.$refs.input.focus();
-      });
-    },
-    handleInputConfirm() {
-      let inputValue = this.inputValue;
-      if (inputValue) {
-        this.stageData.sa_projstagetempStages.push({
-          "sa_projstagetemp_stageid": 0,
-          "stagename": this.inputValue,
-          "remarks": "yos",
-          "sequence": 1,
-          "sa_projstagetempWorks": []
-        });
-      }
-      this.inputVisible = false;
-      this.inputValue = '';
-    }
-  },
-  create () {
-
-  }
-}
-
-</script>
-<style>
-</style>
-<style scoped>
-.stage__panel{
-  height: 42px;
-  line-height: 42px;
-  width:150px;
-  transform: skewX(-45deg);
-  margin-left:15px;
-  text-align: center;
-  cursor: pointer;
-  background: #f1f2f3;
-}
-.stage__panel > div {
-    transform: skewX(45deg);
-  }
-.work__panel{
-  position: relative;
-  width:400px;
-  margin: 16px 0 0px 0;
-  padding:10px;
-  border:2px solid #fff;
-  font-size:14px;
-  border-radius: 4px;
-  cursor: pointer;
-}
-.work__panel:hover{
-  border:2px dashed #3874f6;
-}
-.active__work{
-  border:2px dashed #3874f6;
-}
-.work__panel__operation{
-  display: none;
-  position: absolute;
-  right:0px;
-  top:0px;
-  padding:2px 10px;
-  background: #3874f6;
-  color:#fff;
-  z-index: 999;
-}
-.active__work > .work__panel__operation {
-  display: block;
-}
-.hide{
-  display: none;
-}
-.show{
-  display: block;
-}
-.work__panel_add{
-  width:400px;
-  margin: 16px 0 0px 0;
-  padding:10px;
-  font-size:14px;
-  color:#666;
-  border-radius: 4px;
-  cursor: pointer;
-  border:2px dashed #ccc;
-}
-</style>

+ 0 - 474
src/HDrpManagement/serveWorkBill/modules/detail copy.vue

@@ -1,474 +0,0 @@
-<template>
-  <div>
-    <basicDetails
-      ref="details"
-      :titleText="mainData.billno"
-      :oldFormPath="{ edit: 'HDrpManagement/serveWorkBill/components' }"
-      :editData="mainData"
-      :mainAreaData="mainAreaData"
-      turnPageId="20221031141102"
-      idname="sa_workorderid"
-      ownertable="sa_workorder"
-      tags=""
-      :tabs="
-        mainData.actiontype == '工序模板'
-          ? ['工序详情', '确认单', '服务团队', '工单物料', '详细信息']
-          : ['服务商品', '确认单', '服务团队', '详细信息']
-      "
-      @pageChange="pageChange"
-      @onEditSuccess="queryMainData($route.query.id)"
-    >
-      <div slot="tags"></div>
-      <div slot="customOperation">
-        <!-- <customBtn
-          btnName="接单"
-          message="确认接单当前服务工单吗?"
-          idName="20230210101103"
-          keyName="sa_workorderid"
-          :id="$route.query.id"
-          @onSuccess="queryMainData"
-          class="inline-16"
-          v-if="mainData.status == '新建' && tool.checkAuth($route.name,'join')"
-        />
-        <customBtn
-          btnName="开始"
-          message="确认开始当前服务工单吗?"
-          idName="20230209144503"
-          keyName="sa_workorderid"
-          :id="$route.query.id"
-          @onSuccess="queryMainData"
-          class="inline-16"
-          v-if="mainData.status == '待开始' && tool.checkAuth($route.name,'start')"
-
-        /> -->
-        <customBtn
-          btnName="暂停"
-          message="确认暂停当前服务工单吗?"
-          idName="20230209144603"
-          keyName="sa_workorderid"
-          :id="$route.query.id"
-          @onSuccess="queryMainData"
-          class="inline-16"
-          v-if="
-            mainData.status == '进行中' && tool.checkAuth($route.name, 'stop')
-          "
-        />
-        <customBtn
-          btnName="启用"
-          message="确认启用当前服务工单吗?"
-          idName="20230209144703"
-          keyName="sa_workorderid"
-          :id="$route.query.id"
-          @onSuccess="queryMainData"
-          class="inline-16"
-          v-if="
-            mainData.status == '暂停' && tool.checkAuth($route.name, 'used')
-          "
-        />
-        <!-- <customBtn
-          btnName="完结"
-          message="确认完结当前服务工单吗?"
-          idName="20230209144903"
-          keyName="sa_workorderid"
-          :id="$route.query.id"
-          @onSuccess="queryMainData"
-          class="inline-16"
-          v-if="mainData.status != '新建' && tool.checkAuth($route.name,'complete')"
-
-        /> -->
-        <customBtn
-          btnName="作废"
-          message="确认作废当前服务工单吗?"
-          idName="20230209144803"
-          keyName="sa_workorderid"
-          :id="$route.query.id"
-          @onSuccess="queryMainData"
-          class="inline-16"
-          v-if="
-            mainData.status != '完结' && tool.checkAuth($route.name, 'delete')
-          "
-        />
-      </div>
-      <div slot="slot0" v-if="mainData.actiontype == '工序模板'">
-        <taskDetail :data="nodes">
-          <template v-slot:detail="scope">
-            <taskListDetail
-              class="inline-16"
-              :data="scope.data"
-            ></taskListDetail>
-          </template>
-          <!-- <template v-slot:edit="scope">
-            <taskListEdit class="inline-16" :data="scope.data"/>
-          </template> -->
-        </taskDetail>
-      </div>
-      <div slot="slot1" v-if="mainData.actiontype == '工序模板'">
-        <checkBill>
-          <template v-slot:download="scope">
-            <el-button
-              v-if="tool.checkAuth($route.name, 'checkBillDetail')"
-              type="text"
-              size="mini"
-              @click="downLoadBill(scope.data)"
-              >{{ $t("单 据 下 载") }}</el-button
-            >
-          </template>
-        </checkBill>
-      </div>
-      <div slot="slot2" v-if="mainData.actiontype == '工序模板'">
-        <teamList
-          v-if="tool.checkAuth($route.name, 'teamList')"
-          ref="teamList"
-          :data="mainData.team"
-        >
-          <selectTeam ref="team" @teamChange="teamChange" slot="add">
-            <el-button
-              v-if="tool.checkAuth($route.name, 'teamHandle')"
-              class="button-new-tag"
-              size="small"
-              type="primary"
-              @click="$refs.team.dialogFormVisible = true"
-              >{{ $t("添 加") }}</el-button
-            >
-          </selectTeam>
-        </teamList>
-      </div>
-      <div slot="slot3" v-if="mainData.actiontype == '工序模板'">
-        <Items :data="mainData"></Items>
-      </div>
-      <div slot="slot4" v-if="mainData.actiontype == '工序模板'">
-        <detailInfo :more="true" :data="detailInfo"></detailInfo>
-      </div>
-
-      <div slot="slot0" v-if="mainData.actiontype != '工序模板'">
-        <Items :data="mainData"></Items>
-      </div>
-      <div slot="slot1" v-if="mainData.actiontype != '工序模板'">
-        <checkBill>
-          <template v-slot:download="scope">
-            <el-button
-              v-if="tool.checkAuth($route.name, 'checkBillDetail')"
-              type="text"
-              size="mini"
-              @click="downLoadBill(scope.data)"
-              >{{ $t("单 据 下 载") }}</el-button
-            >
-          </template>
-        </checkBill>
-      </div>
-      <div slot="slot2" v-if="mainData.actiontype != '工序模板'">
-        <teamList
-          v-if="tool.checkAuth($route.name, 'teamList')"
-          ref="teamList"
-          :data="mainData.team"
-        >
-          <selectTeam ref="team" @teamChange="teamChange" slot="add">
-            <el-button
-              v-if="tool.checkAuth($route.name, 'teamHandle')"
-              class="button-new-tag"
-              size="small"
-              type="primary"
-              @click="$refs.team.dialogFormVisible = true"
-              >{{ $t("添 加") }}</el-button
-            >
-          </selectTeam>
-        </teamList>
-      </div>
-      <div slot="slot3" v-if="mainData.actiontype != '工序模板'">
-        <detailInfo :more="true" :data="detailInfo"></detailInfo>
-      </div>
-    </basicDetails>
-  </div>
-</template>
-
-<script>
-import detailInfo from "@/components/detailInfo/index";
-import taskDetail from "./taskDetail/index";
-import taskListDetail from "./taskDetail/taskListDetail";
-import taskListEdit from "./taskDetail/taskListEdit";
-import checkBill from "./checkBill/index";
-import teamList from "./teamList/index";
-import Items from "./items/index";
-import selectTeam from "../components/teamSelect";
-import { log } from "@antv/g2plot/lib/utils";
-export default {
-  name: "detail",
-  data() {
-    return {
-      mainData: "",
-      mainAreaData: {},
-      detailInfo: "",
-      nodes: [],
-    };
-  },
-  components: {
-    detailInfo,
-    taskDetail,
-    taskListDetail,
-    taskListEdit,
-    checkBill,
-    teamList,
-    Items,
-    selectTeam,
-  },
-  methods: {
-    async queryMainData(id) {
-      const res = await this.$api.requested({
-        id: 20230208140103,
-        content: {
-          sa_workorderid: this.$route.query.id,
-        },
-      });
-      this.mainData = res.data;
-      this.changeDataStructure();
-      console.log(res.data);
-
-      this.nodes = this.createTreeData(res.data.nodes);
-      console.log(this.nodes);
-    },
-    downLoadBill(data) {
-      let result = data.attinfos.filter(
-        (item) => item.usetype == "comfirmbill"
-      );
-      if (result.length == 0)
-        return this.$message({
-          type: "warning",
-          message: this.$t("暂无单据信息"),
-        });
-      window.open(result[0].url, "_self");
-    },
-    async teamChange(data) {
-      let result = data.map((item) => {
-        return item.userid;
-      });
-      const res = await this.$api.requested({
-        id: 20220930103603,
-        content: {
-          ownertable: "sa_workorder",
-          ownerid: this.$route.query.id,
-          justuserids: false,
-          userids: result,
-        },
-      });
-      this.tool.showMessage(res, () => {
-        this.$refs.team.dialogFormVisible = false;
-        this.$refs.teamList.listData();
-      });
-    },
-    changeDataStructure() {
-      let that = this;
-      this.mainAreaData = [
-        {
-          label: "单号",
-          value: this.mainData.billno,
-        },
-        {
-          label: "服务申请单号",
-          value: this.mainData.servicebillno,
-        },
-        {
-          label: "工单类型",
-          value: this.mainData.type,
-        },
-        {
-          label: "负责人",
-          value: this.mainData.projectleader,
-        },
-        {
-          label: "状态",
-          value: this.$t(this.mainData.status),
-          style: function () {
-            let style = {};
-            switch (that.mainData.status) {
-              case "进行中":
-                style = { color: "#52c41a" };
-                break;
-              case "待开始":
-                style = { color: "#3874f6" };
-                break;
-              case "暂停":
-                style = { color: "#333333" };
-                break;
-              /* case '提交':
-                style = {color:'#3874f6'}
-                break; */
-              case "待接单":
-                style = { color: "#fa8c16" };
-                break;
-              case "已完成":
-                style = { color: "#fa8c16" };
-                break;
-              default:
-                break;
-            }
-            return style;
-          },
-        },
-        {
-          label: "经销商编号",
-          value: this.mainData.agentnum,
-        },
-        {
-          label: "经销商",
-          value: this.mainData.enterprisename,
-        },
-        {
-          label: "省市县",
-          value:
-            this.mainData.province + this.mainData.city + this.mainData.county,
-        },
-        {
-          label: "业务员",
-          value: this.mainData.saler_name,
-        },
-        {
-          label: "业务员电话",
-          value: this.mainData.salerphonenumber,
-        },
-        {
-          label: "地址",
-          value: this.mainData.address,
-        },
-        {
-          label: "创建时间",
-          value: this.mainData.createdate,
-        },
-        {
-          label: "结束时间",
-          value: this.mainData.enddate,
-        },
-        {
-          label: "操作类型",
-          value: this.mainData.actiontype,
-        },
-      ];
-      this.detailInfo = [
-        {
-          title: "基本信息",
-          info: [
-            { label: "单号", value: this.mainData.billno },
-            { label: "申请单号", value: this.mainData.servicebillno },
-            {
-              label: "状态",
-              value: this.$t(this.mainData.status),
-              style: function () {
-                let style = {};
-                switch (that.mainData.status) {
-                  case "进行中":
-                    style = { color: "#52c41a" };
-                    break;
-                  case "待开始":
-                    style = { color: "#3874f6" };
-                    break;
-                  case "暂停":
-                    style = { color: "#333333" };
-                    break;
-                  /* case '提交':
-                       style = {color:'#3874f6'}
-                       break; */
-                  case "待接单":
-                    style = { color: "#fa8c16" };
-                    break;
-                  case "已完成":
-                    style = { color: "#fa8c16" };
-                    break;
-                  default:
-                    break;
-                }
-                return style;
-              },
-            },
-            { label: "经销商编号", value: this.mainData.agentnum },
-            { label: "经销商", value: this.mainData.enterprise },
-            { label: "现场联系人", value: this.mainData.scenecontact },
-            {
-              label: "联系人电话",
-              value: this.mainData.scenecontactphonenumber,
-            },
-            { label: "工单负责人", value: this.mainData.projectleader },
-            { label: "工单类型", value: this.mainData.type },
-            { label: "工单模板", value: this.mainData.name },
-            {
-              label: "省市县",
-              value: `${this.mainData.province}-${this.mainData.city}-${this.mainData.county}`,
-            },
-            { label: "地址", value: this.mainData.address },
-            { label: "创建人", value: this.mainData.createby },
-            { label: "创建时间", value: this.mainData.createdate },
-          ],
-        },
-      ];
-    },
-    createTreeData(array) {
-      var that = this;
-      let arr = [];
-      function convertToElementTree(node) {
-        // 新节点
-        var elNode = {
-          amount: node["amount"],
-          attinfos: node["attinfos"],
-          changeby: node["changeby"],
-          changedate: node["changedate"],
-          changeuserid: node["changeuserid"],
-          confirm_value: node["confirm_value"],
-          finishby: node["finishby"],
-          parentid: node["parentid"],
-          remarks: node["remarks"],
-          sa_workorder_nodeid: node["sa_workorder_nodeid"],
-          sa_workorderid: node["sa_workorderid"],
-          sequence: node["sequence"],
-          status: node["status"],
-          textcontent: node["textcontent"],
-          workname: node["workpresetjson"].workname,
-          additem: node["workpresetjson"].additem,
-          addperson: node["workpresetjson"].amountpay,
-          confirm_options: node["workpresetjson"].confirm_options,
-          confirm: node["workpresetjson"].confirm,
-          contractupload: node["workpresetjson"].contractupload,
-          fileupload: node["workpresetjson"].fileupload,
-          itemtype: node["workpresetjson"].itemtype,
-          remarks: node["workpresetjson"].remarks,
-          required: node["workpresetjson"].required,
-          textedit: node["workpresetjson"].textedit,
-          children: [],
-        };
-
-        if (node.child && node.child.length > 0) {
-          // 如果存在子节点
-          for (var index = 0; index < node.child.length; index++) {
-            // 遍历子节点, 把每个子节点看做一颗独立的树, 传入递归构造子树, 并把结果放回到新node的children中
-            elNode.children.push(convertToElementTree(node.child[index]));
-          }
-        }
-        return elNode;
-      }
-      array.forEach((element) => {
-        arr.push(convertToElementTree(element));
-      });
-      return arr;
-    },
-    // 监听切换数据,上一页,下一页
-    pageChange(id, rowindex, tabIndex) {
-      this.flag = false;
-      tabIndex = this.$route.query.tabIndex;
-      this.$router.replace({
-        path: "/workorderDetail",
-        query: { id: id, rowindex: rowindex, tabIndex: tabIndex },
-      });
-      this.queryMainData(id);
-    },
-    onSuccess() {
-      this.visible = false;
-      this.queryMainData(this.$route.query.id);
-      this.$emit("onSuccess");
-    },
-  },
-  mounted() {
-    this.queryMainData(this.$route.query.id);
-  },
-  created() {},
-};
-</script>
-
-<style scoped>
-</style>

+ 0 - 115
src/HManagement/accountManage/bak/account_detail copy.vue

@@ -1,115 +0,0 @@
-<template>
-  <div>
-    <div class="container normal-panel normal-margin">
-      <el-descriptions title="用户信息">
-          <el-descriptions-item label="账号">{{minaInfo.accountno}}</el-descriptions-item>
-          <el-descriptions-item label="账号类型">{{minaInfo.usertypename}}</el-descriptions-item>
-          <el-descriptions-item :label="$t('状态')">
-            <span :style="minaInfo.status === 'ACTIVE'?'color:#52C41A':'color:#FF3B30'">{{minaInfo.status === 'ACTIVE'?'启用':minaInfo.status === 'INACTIVE'?'停用':'其他'}}</span>
-          </el-descriptions-item>
-          <el-descriptions-item :label="$t('手机号')">{{minaInfo.phonenumber}}</el-descriptions-item>
-          <el-descriptions-item label="账号密码">
-            ********
-          </el-descriptions-item>
-      </el-descriptions>
-    </div>
-    <div class="container normal-panel normal-margin">
-      <el-descriptions title="员工信息" :column="6">
-          <el-descriptions-item :label="$t('编号')">{{minaInfo.hrmsg.hrcode?minaInfo.hrmsg.hrcode:'--'}}</el-descriptions-item>
-          <el-descriptions-item label="身份证号">{{minaInfo.hrmsg.idcard?minaInfo.hrmsg.idcard:'--'}}</el-descriptions-item>
-          <el-descriptions-item :label="$t('部门')">{{minaInfo.hrmsg.depname?minaInfo.hrmsg.depname:'--'}}</el-descriptions-item>
-          <el-descriptions-item label="是否部门负责人">{{minaInfo.hrmsg.isleader === 1?'是':'否'}}</el-descriptions-item>
-          <el-descriptions-item :label="$t('职位')">{{minaInfo.hrmsg.position?minaInfo.hrmsg.position:'--'}}</el-descriptions-item>
-          <el-descriptions-item label="办公电话">{{minaInfo.hrmsg.officetelephone?minaInfo.hrmsg.officetelephone:'--'}}</el-descriptions-item>
-          <el-descriptions-item :label="$t('姓名')">{{minaInfo.hrmsg.name?minaInfo.hrmsg.name:'--'}}</el-descriptions-item>
-          <el-descriptions-item label="电话">{{minaInfo.hrmsg.phonenumber?minaInfo.hrmsg.phonenumber:'--'}}</el-descriptions-item>
-          <el-descriptions-item label="性别">{{minaInfo.hrmsg.sex?minaInfo.hrmsg.sex:'--'}}</el-descriptions-item>
-          <el-descriptions-item label="电子邮箱">{{minaInfo.hrmsg.email?minaInfo.hrmsg.email:'--'}}</el-descriptions-item>
-      </el-descriptions>
-    </div>
-    <div class="container normal-panel normal-margin">
-      <el-descriptions title="角色信息"></el-descriptions>
-      <tableLayout :layout="table_roleinfo" :data="roleData" :opwidth="200" :custom="false">
-        <template v-slot:opreation="scope">
-          <el-button type="text" size="small" @click="$router.push({path:'/roleDetail',query:{id:scope.data.roleid}})">{{$t('详 情')}}</el-button>
-        </template>
-      </tableLayout>
-    </div>
-  </div>
-</template>
-
-<script>
-import tableLayout from '../../../components/dynamic-table'
-
-export default {
-  components:{
-    tableLayout
-  },
-  data () {
-    return {
-      minaInfo:{},
-      table_userinfo:[],
-      table_hrinfo:[],
-      table_roleinfo:[],
-      list:[],
-      hrmsg:[],
-      roleData:[]
-    }
-  },
-  methods:{
-    async userMian () {
-      const res = await this.$api.requested({
-        "classname": "webmanage.users.users",
-        "method": "query_userMain",
-        "content": {
-            "userid": this.$route.query.id
-        }
-      })
-      this.minaInfo = res.data
-      // 插入用户数据
-      let arr = [{
-        accountno:res.data.accountno,
-        phonenumber:res.data.phonenumber,
-        usertypename:res.data.usertypename,
-        status:res.data.status
-      }]
-      this.list = arr
-      // 插入人员数据
-      if (typeof(res.data.hrmsg) === 'object'){
-        res.data.hrmsg.systemname = res.data.name
-        let hrmsg = [res.data.hrmsg]
-        this.hrmsg = hrmsg
-      }
-      // 插入角色数据
-      this.roleData = res.data.userrole
-    }
-  },
-  mounted () {
-    this.userMian()
-    // 获取用户信息表结构
-    this.table_userinfo = this.tool.tabelCol(this.$route.name).detailUserinfo.tablecols
-    // 获取人员表结构
-    this.table_hrinfo = this.tool.tabelCol(this.$route.name).detailHrInfo.tablecols
-    // 获取角色表结构
-    this.table_roleinfo = this.tool.tabelCol(this.$route.name).detailRoleInfo.tablecols
-  }
-}
-
-</script>
-<style>
-</style>
-<style scoped>
-.title{
-  height: 20px;
-  line-height: 20px;
-  font-size: 14px;
-  text-indent: 7px;
-  font-weight: bold;
-  color: #333333;
-  margin-bottom: 20px;
-  border-left: .3rem solid #3874F6;
-}
-.mb-40{
-  margin-bottom:40px
-}
-</style>

+ 0 - 72
src/HManagement/accountManage/bak/index copy.vue

@@ -1,72 +0,0 @@
-<template>
-  <div>
-    <div class="container normal-panel normal-margin">
-      <add style="margin-right:10px;" v-if="tool.checkAuth($route.name,'insert')" @onSuccess="onSuccess"></add>
-    </div>
-    <list v-if="tool.checkAuth($route.name,'read')" ref="list" @handleSelectionChange="handleSelectionChange">
-      <template v-slot:detail="scope">
-        <div class="inline-16">
-          <el-button size="mini" type="text" @click="$router.push({path:'/account_details',query:{id:scope.data.userid}})">{{$t('详 情')}}</el-button>
-        </div>
-      </template>
-      <template v-slot:del="scope">
-        <account-del v-if="tool.checkAuth($route.name,'delete')" :data="scope.data" @onSuccess="onSuccess" :type="'text'"></account-del>
-      </template>
-      <template v-slot:edit="scope">
-        <account-edit v-if="tool.checkAuth($route.name,'update')" :data="scope.data" @onSuccess="onSuccess" :type="'text'"></account-edit>
-      </template>
-      <template v-slot:use="scope">
-        <account-use v-if="tool.checkAuth($route.name,'use') && scope.data.status === 'INACTIVE'" :data="scope.data" @onSuccess="onSuccess" :type="'text'"></account-use>
-        <account-unuse v-if="tool.checkAuth($route.name,'use') && scope.data.status === 'ACTIVE'" :data="scope.data" @onSuccess="onSuccess" :type="'text'"></account-unuse>
-      </template>
-    </list>
-  </div>
-</template>
-
-<script>
-import list from './list.vue'
-import add from '../add.vue'
-import accountDel from '../account_delete.vue'
-import accountEdit from '../editWeek.vue'
-import accountUse from '../useAccdount.vue'
-import accountUnuse from '../unuseAccount.vue'
-
-import role from '../set_account_role.vue'
-import accountDetail from '../account_detail.vue'
-
-export default {
-  components:{
-    list,
-    add,
-    accountDel,
-    accountEdit,
-    accountDetail,
-    accountUse,
-    accountUnuse,
-    role
-  },
-  data () {
-    return {
-      accounts:[]
-    }
-  },
-  methods:{
-    onSuccess () {
-      this.$refs.list.listData()
-    },
-    handleSelectionChange (arr) {
-      console.log(arr)
-      this.accounts = arr
-    },
-
-  }
-}
-
-</script>
-<style>
-</style>
-<style scoped>
-.borderRight{
-  border-right: 1px solid #ccc;
-}
-</style>

+ 0 - 111
src/HManagement/archives_ad/index copy.vue

@@ -1,111 +0,0 @@
-<template>
-  <div>
-    <list ref="list">
-      <!-- 新增课程 -->
-      <Header slot="add" v-if="tool.checkAuth($route.name, 'insert')">
-        <save />
-      </Header>
-      <!-- 详情 -->
-      <template v-slot:detail="scope">
-        <div class="inline-16">
-          <el-button type="text" size="mini" @click="openDetail(scope.data.data)">详情</el-button>
-        </div>
-      </template>
-      <!-- 编辑 -->
-      <template v-slot:edit="scope" v-if="tool.checkAuth($route.name, 'update')">
-        <el-button slot="edit" type="text" size="small" class="inline-16" :disabled="scope.data.data.status == '审核'"
-          @click="editData(scope.data.data)">{{$t('编辑')}}</el-button>
-      </template>
-      <!-- 发布 -->
-      <template v-slot:release="scope" v-if="tool.checkAuth($route.name, 'release')">
-        <release :data="scope.data.data" @onSuccess="onSuccess" />
-      </template>
-      <!-- 数据分析 -->
-      <template v-slot:data_statistics="scope" v-if="tool.checkAuth($route.name, 'analysis')">
-        <el-button type="text" size="small" @click="
-                    $router.push({
-                        path: '/archives_ad_analysis?id=' + scope.data.data.sat_sharematerialid
-                    })
-                ">数据统计</el-button>
-      </template>
-      <!-- 删除 -->
-      <template v-slot:del="scope" v-if="tool.checkAuth($route.name, 'delete')">
-        <on-del :data="scope.data.data" @onSuccess="onSuccess" />
-      </template>
-    </list>
-
-    <detail ref="detail" v-if="currentFile && tool.checkAuth($route.name, 'read')" :currentSelectFile="currentFile">
-    </detail>
-  </div>
-</template>
-
-<script>
-import Header from '@/SManagement/archives_upload/components/Header';//业务端上传
-import save from '@/SManagement/archives_upload/components/save';
-
-import list from './modules/list.vue';
-import detail from '@/SManagement/archives_ad/components/detail'
-import release from './modules/release.vue';
-import onDel from './modules/delete.vue';
-export default {
-  name: "archives_adlist",
-  components: { list, release, onDel, detail, Header, save },
-  data () {
-    return {
-      currentFile: {}
-    }
-  },
-  methods: {
-    onSuccess () {
-      this.$refs.list.getList();
-    },
-    /* 编辑素材 */
-    editData (data) {
-      window.sessionStorage.setItem('newMaterial', JSON.stringify(data));
-      this.$router.push({
-        path: '/upload_archives',
-        query: {
-          id: data.sat_sharematerialid
-        }
-      });
-    },
-    /* 打开详情 */
-    openDetail (data) {
-      let param = {
-        "classname": "saletool.sharematerial.sharematerial",
-        "method": "selectDetail",
-        "content": {
-          "sat_sharematerialid": data.sat_sharematerialid
-        }
-      }
-      this.$api.requested(param).then(res => {
-        res.data.attinfos = this.fileType.fileList(res.data.attinfos)
-        this.currentFile = res.data
-        this.$nextTick(() => {
-          this.$refs.detail.isFileInfoPanlShow = true
-        })
-      })
-    },
-
-    async getAgentData () {
-      const res = await this.$api.requested({
-        "classname": "webmanage.saletool.courseware.statistics.agent",
-        "method": "getAgentStudyData",
-        "content": {
-          "sat_coursewareid": this.$route.query.id
-        }
-      })
-      this.pieStudyData = [{ type: '已学习', num: res.data.studyNum }, { type: '未学习', num: res.data.unStudyNum }]
-      this.pieDownloadData = [{ type: '已下载', num: res.data.downloadNum }, { type: '未下载', num: res.data.unDownloadNum }]
-      this.$refs.studyPie.piePlot.changeData(this.pieStudyData)
-      this.$refs.downloadPie.piePlot.changeData(this.pieDownloadData)
-    }
-  }
-}
-</script>
-
-<style scoped>
-/deep/.header .left .el-button img {
-  margin-left: -6px;
-}
-</style>

+ 0 - 30
src/HManagement/clueManage/clue_import/index copy.vue

@@ -1,30 +0,0 @@
-<template>
-  <div>
-    <importClue v-if="tool.checkAuth($route.name,'import')" @onSuccess="onSuccess"></importClue>
-    <list ref="list">
-      <template v-slot:detail="scope">
-        <el-button v-if="tool.checkAuth($route.name,'update')" type="text" size="small" @click="$router.push({path:'/importClueDetail',query:{id:scope.data.data.sat_orderclueuploadbillid,rowindex:scope.data.data.rowindex}})">{{$t('编 辑')}}</el-button>
-      </template>
-    </list>
-  </div>
-</template>
-
-<script>
-import importClue from './modules/importClue.vue'
-import list from './modules/list.vue'
-
-export default {
-  components:{
-    importClue,
-    list
-  },
-  methods:{
-    onSuccess () {
-      this.$refs['list'].listData()
-    }
-  }
-}
-
-</script>
-<style>
-</style>

+ 0 - 132
src/HManagement/clueManage/clue_private/modules/detail copy.vue

@@ -1,132 +0,0 @@
-<template>
-  <div>
-    <div class="container normal-panel normal-margin">
-      <el-descriptions :column="5" title="线索详情">
-        <el-descriptions-item :label="$t('客户名称')">{{mainData.name}}</el-descriptions-item>
-        <el-descriptions-item :label="$t('手机号')">{{mainData.phonenumber}}</el-descriptions-item>
-        <el-descriptions-item :label="$t('省市县')">{{mainData.province}}-{{mainData.city}}-{{mainData.county}}</el-descriptions-item>
-        <el-descriptions-item :label="$t('地址')">{{mainData.address}}</el-descriptions-item>
-        <el-descriptions-item label="来源">{{mainData.cluesource}}</el-descriptions-item>
-        <el-descriptions-item :label="$t('负责人')">{{mainData.leadername}}</el-descriptions-item>
-        <el-descriptions-item :label="$t('备注')">{{mainData.notes}}</el-descriptions-item>
-        <el-descriptions-item label="所属经销商">{{mainData.enterprisename}}</el-descriptions-item>
-        <el-descriptions-item :label="$t('状态')">
-          <span v-if="mainData.status === '待分配'" style="color:#3874F6">{{mainData.status}}</span>
-          <span v-if="mainData.status === '待跟进'" style="color:#FA8C16">{{mainData.status}}</span>
-          <span v-if="mainData.status === '跟进中'" style="color:#52C41A">{{mainData.status}}</span>
-          <span v-if="mainData.status === '已过期'" style="color:#999999">{{mainData.status}}</span>
-          <span v-if="mainData.status === '丢单'" style="color:#FF3B30">{{mainData.status}}</span>
-          <span v-if="mainData.status === '已成交'" style="color:#333333">{{mainData.status}}</span>
-          <span v-if="mainData.status === '无效'" style="color:#333333">{{mainData.status}}</span>
-        </el-descriptions-item>
-      </el-descriptions>
-    </div>
-    <div class="container normal-panel normal-margin">
-      <el-descriptions :column="5" :title="$t('系统信息')">
-        <el-descriptions-item :label="$t('创建人')">{{mainData.createBy}}</el-descriptions-item>
-        <el-descriptions-item label="分配人">{{mainData.assignedBy}}</el-descriptions-item>
-        <el-descriptions-item label="最近跟进人">{{mainData.followBy}}</el-descriptions-item>
-        <el-descriptions-item label="转移人">{{mainData.changeBy}}</el-descriptions-item>
-        <el-descriptions-item label="最近编辑人">{{mainData.editBy}}</el-descriptions-item>
-        <el-descriptions-item :label="$t('创建时间')">{{mainData.createDate}}</el-descriptions-item>
-        <el-descriptions-item label="分配时间">{{mainData.assignedDate}}</el-descriptions-item>
-        <el-descriptions-item label="最近跟进时间">{{mainData.followDate}}</el-descriptions-item>
-        <el-descriptions-item label="最近转移时间">{{mainData.changeDate}}</el-descriptions-item>
-        <el-descriptions-item label="最近编辑时间">{{mainData.editDate}}</el-descriptions-item>
-      </el-descriptions>
-    </div>
-    <div class="container normal-panel">
-      <el-descriptions>
-        <div slot="title">跟进记录<i @click="followRecord(isdesc === 1?isdesc = 0:isdesc =1)" :class="isdesc === 1?'fa fa-sort-amount-asc':'fa fa-sort-amount-desc'"></i></div>
-      </el-descriptions>
-      <div class="flex-align-center normal-margin">
-        <p>日期:&nbsp;</p>
-        <el-date-picker
-          v-model="value2"
-          type="daterange"
-          align="right"
-          unlink-panels
-          range-separator="至"
-          start-placeholder="开始日期"
-          end-placeholder="结束日期"
-          value-format="yyyy-MM-dd"
-          size="small"
-          @change="dateChange"
-          clearable>
-        </el-date-picker>
-      </div>
-      <div v-for="(item,index) in recordlist" :key="item.index" class="follow-item">
-        <p>{{index + 1}}.&nbsp;{{item.createdate}},由经销商端<b>{{item.createby}}</b>{{item.logtype}},跟进方式:<b>{{item.followupmode}}</b>,跟进内容:</p>
-        <div class="content-panel">
-         <p>{{item.content}}</p>
-         <p>{{item.competitor}}</p>
-        </div>
-      </div>
-    </div>
-  </div>
-</template>
-
-<script>
-export default {
-  data () {
-    return {
-      mainData:{},
-      recordlist:[],
-      value2:'',
-      dateParam:{
-        "start": "",
-        "end": ""
-      }
-    }
-  },
-  methods:{
-    async clueDetail () {
-      const res = await this.$api.requested({
-        "classname": "webmanage.saletool.orderclue.publicclue.PublicClue",
-        "method": "selectDetail",
-        "content": {
-          "sat_orderclueid": this.$route.query.id
-        }
-      })
-      this.mainData  = res.data
-    },
-    async followRecord () {
-      const res = await this.$api.requested({
-        "classname": "webmanage.saletool.orderclue.publicclue.PublicClue",
-        "method": "getFollowList",
-        "content": {
-          "sat_orderclueid": this.$route.query.id,
-          "isdesc": 1,
-          "where": this.dateParam
-        }
-      })
-      this.recordlist = res.data
-    },
-    dateChange (val) {
-      console.log(val)
-      if (!val) {val = []}
-      this.dateParam.start = val[0]
-      this.dateParam.end = val[1]
-      this.followRecord()
-    },
-  },
-  mounted () {
-    this.clueDetail()
-    this.followRecord()
-  }
-}
-
-</script>
-<style>
-</style>
-<style scoped>
-.follow-item{
-  font-size: 14px;
-}
-.content-panel{
-  background: #f1f2f3;
-  padding: 16px;
-  margin: 10px 0 16px 15px;
-  line-height: 25px;
-}
-</style>

+ 0 - 110
src/HManagement/department/bak/index copy.vue

@@ -1,110 +0,0 @@
-<template>
-  <div class="flex">
-    <dep-list ref="list" style="width:180px;flex:0 1 auto" @onClick="onClick">
-      <template v-slot:operation="data">
-        <addDep v-if="tool.checkAuth($route.name,'addDep')" class="inline-16" :data="data.data" @onSuccess="onSuccess"></addDep>
-      </template>
-    </dep-list>
-    <div class="hm-info-panel">
-      <div class="container normal-panel normal-margin sticky">
-        <editDep v-if="tool.checkAuth($route.name,'editDep')" class="inline-16" :data="depInfo.data" @editSuccess="editSuccess"></editDep>
-        <delDep  v-if="tool.checkAuth($route.name,'delDep')" class="inline-16" :data="depInfo.data" @onSuccess="onSuccess"></delDep>
-        <startDep v-if="tool.checkAuth($route.name,'editDep')" class="inline-16" :data="depInfo.data" @stopOrStart="stopOrStart"></startDep>
-      </div>
-      <dep-info-card class="normal-margin" :depInfo='depInfo'></dep-info-card>
-      <staffList :depInfo="depInfo" ref="staff">
-        <template v-slot:detail="scope">
-          <div class="inline-16">
-            <el-button  type="text" size="mini" @click="$router.push({path:'/depManage/staffDetail',query:{id:scope.data.hrid}})">{{$t('详 情')}}</el-button>
-          </div>
-        </template>
-        <add-staff v-if="tool.checkAuth($route.name,'addStaff')" slot="staff" :depInfo="depInfo" @onSuccess="onStaffSuccess"></add-staff>
-        <template v-slot:del="scope">
-          <del-staff  v-if="tool.checkAuth($route.name,'delStaff')" slot="del" :data="scope.data" @onSuccess="onStaffSuccess"></del-staff>
-        </template>
-        <template v-slot:edit="scope">
-          <edit-staff v-if="tool.checkAuth($route.name,'editStaff')" slot="edit" :data="scope.data" @onSuccess="onStaffSuccess"></edit-staff>
-        </template>
-
-      </staffList>
-    </div>
-  </div>
-</template>
-
-<script>
-import depList from '../modules/dep_list.vue'
-import staffList from '../staff/list/list.vue'
-
-import depInfoCard from '../modules/dep_info.vue'
-
-import addDep from '../modules/add_dep.vue'
-import delDep from '../modules/del_dep.vue'
-import editDep from '../modules/edit_dep.vue'
-import startDep from '../modules/start_dep.vue'
-
-import addStaff from '../staff/list/modules/add.vue'
-import delStaff from '../staff/list/modules/del.vue'
-import editStaff from '../staff/list/modules/edit.vue'
-
-export default {
-  components:{
-    depList,
-    depInfoCard,
-    staffList,
-    addDep,
-    delDep,
-    editDep,
-    addStaff,
-    delStaff,
-    editStaff,
-    startDep
-  },
-  data () {
-    return {
-      depInfo:{
-        data:null,
-        parent:{
-          data:{}
-        }
-      }
-    }
-  },
-  methods:{
-    onClick (data) {
-      this.depInfo = data
-      this.$refs.staff.listData(this.depInfo.data.departmentid)
-    },
-    onSuccess () {
-      this.$refs.list.department()
-    },
-    editSuccess (form) {
-      this.$refs.list.department(()=>{
-        form.label = form.depname
-        this.depInfo.data = Object.assign({},this.depInfo.data,form)
-        this.$emit('onClick',this.depInfo)
-        this.$refs['list'].setCurrentKey(form.departmentid)
-      })
-    },
-    stopOrStart(status) {
-      status === 1?this.depInfo.data.isused = 0:this.depInfo.data.isused = 1
-    },
-    onStaffSuccess () {
-      this.$refs.staff.listData(this.depInfo.data.departmentid)
-    },
-  }
-}
-
-</script>
-<style>
-</style>
-<style scoped>
-.flex{
-  display: flex;
-}
-.hm-info-panel{
-  flex:1;
-  width:500px;
-  height:calc(100vh - 100px);
-  overflow-y:scroll
-}
-</style>

+ 0 - 42
src/HManagement/roleManage/bak/index copy.vue

@@ -1,42 +0,0 @@
-<template>
-  <div>
-    <add class="container normal-panel" style="margin-bottom:16px"></add>
-    <div class="container normal-panel">
-      <list ref="list">
-        <template v-slot:detail="scope">
-          <div class="inline-16">
-            <el-button type="text" size="small" @click="$router.push({path:'/roleDetail',query:{id:scope.data.roleid}})">{{$t('详 情')}}</el-button>
-          </div>
-        </template>
-        <template v-slot:edit="scope">
-          <el-button v-if="tool.checkAuth($route.name,'update')" type="text" size="small" @click="$router.push({path:'/roleEdit',query:{id:scope.data.roleid}})">{{$t('编 辑')}}</el-button>
-        </template>
-      </list>
-    </div>
-  </div>
-</template>
-
-<script>
-import list from '../modules/list.vue'
-import add from '../modules/add.vue'
-
-export default {
-  components:{
-    list,
-    add
-  },
-  data () {
-    return {
-      row:{}
-    }
-  },
-  methods:{
-
-  },
-  mounted () {
-  }
-}
-
-</script>
-<style>
-</style>

+ 0 - 139
src/HManagement/roleManage/bak/role_details copy.vue

@@ -1,139 +0,0 @@
-<template>
-  <div>
-    <div class="container normal-panel mb-16">
-      <el-button v-if="tool.checkAuth($route.name,'update')" size="small" icon="el-icon-edit" @click="$router.replace({path:'/roleEdit',query:{id:roleid}})">{{$t('编 辑')}}</el-button>
-      <onDel v-if="tool.checkAuth($route.name,'delete')" :data="{roleid:roleid}"></onDel>
-    </div>
-    <div class="container normal-panel mb-16">
-      <p class="normal-title mb-16">角色信息</p>
-      <el-row>
-        <el-form :inline="true" :model="form" ref="form" size="small" label-position="right" class="demo-form-inline">
-          <el-col :span="8">
-            <el-form-item label="角色名称:">
-              <p>{{form.rolename}}</p>
-            </el-form-item>
-          </el-col>
-          <el-col :span="8">
-            <el-form-item label="角色描述:">
-              <p>{{form.remarks}}</p>
-            </el-form-item>
-          </el-col>
-          <el-col :span="8">
-            <el-form-item label="角色类型:">
-              <p>{{form.usertypename}}</p>
-            </el-form-item>
-          </el-col>
-        </el-form>
-      </el-row>
-    </div>
-    <div class="container normal-panel mb-16">
-      <p class="normal-title mb-16">角色授权</p>
-      <el-row :gutter="20">
-        <el-col :span="12">
-          <tableLayout :layout="tablecols" :data="roleMainInfo.apps" height="500px" :custom="false" @rowClick="appoptionselect">
-          </tableLayout>
-        </el-col>
-        <el-col :span="11">
-          <el-row :gutter="40">
-            <el-col :span="12">
-              <p class="title">功能</p>
-              <div class="flex-align-center flex-between option-item" v-for="item in appoptions" :key="item.index">
-                <p>{{item.optionname}}</p>
-              </div>
-            </el-col>
-            <el-col :span="12">
-              <p class="title">隐藏字段</p>
-              <div class="flex-align-center flex-between option-item" v-for="item in hiddenfields" :key="item.index">
-                <p>{{item.fieldname}}</p>
-              </div>
-            </el-col>
-          </el-row>
-        </el-col>
-      </el-row>
-    </div>
-  </div>
-</template>
-
-<script>
-import onDel from '../modules/delete_role.vue'
-export default {
-  components:{
-    onDel
-  },
-  data () {
-    return{
-      form:{
-        "roleid":0,
-        "rolename":"",
-        "remarks":""
-      },
-      roleMainInfo:{},
-      tablecols:[],
-      appoptions:[],
-      hiddenfields:[],
-      roleid:0,
-      active_systemappid:''
-    }
-  },
-  created() {
-  },
-  methods:{
-    async roleMain () {
-      const res = await this.$api.requested({
-        "classname": "webmanage.role.role",
-        "method": "query_roleMain",
-        "content": {
-            "roleid":this.roleid
-        }
-      })
-      this.form = {
-        "roleid":res.data.roleid,
-        "rolename":res.data.rolename,
-        "remarks":res.data.remarks,
-        "usertype":res.data.usertype,
-        "usertypename":res.data.usertypename
-      }
-      this.roleMainInfo = res.data
-
-      //显示默认授权信息,一般默认信息为第一条数据
-      this.appoptionselect(res.data.apps[0])
-    },
-    async appoptionselect (row) {
-      this.active_systemappid = row.systemappid
-      this.appoptions = row.options
-      this.hiddenfields = row.hiddenfields
-    },
-  },
-  mounted () {
-    // 获取应用表结构
-    this.tablecols = this.tool.tabelCol(this.$route.name).detailsAppsTable.tablecols
-
-    this.roleid = this.$route.query.id
-    this.roleid !== '0'?this.roleMain():''
-  }
-}
-
-</script>
-<style>
-</style>
-<style scoped>
-.mb-16{
-  margin-bottom:16px
-}
-.title{
-  height: 20px;
-  line-height: 20px;
-  font-size: 14px;
-  text-indent: 7px;
-  font-weight: bold;
-  color: #333333;
-  margin-bottom: 20px;
-  border-left: .3rem solid #3874F6;
-}
-.option-item{
-  color:#333333;
-  font-size: 14px;
-  border-bottom:1px solid #f1f2f3;
-  line-height: 35px;
-}
-</style>

+ 0 - 29
src/HManagement/siteManage/coderule/index copy.vue

@@ -1,29 +0,0 @@
-<template>
-  <div>
-    <list ref="list">
-      <template v-slot:edit="scope">
-        <edit :data="scope.data" @onSuccess="onSuccess"></edit>
-      </template>
-    </list>
-  </div>
-</template>
-
-<script>
-import list from './modules/list.vue'
-import edit from './modules/edit.vue'
-
-export default {
-  components:{
-    list,
-    edit
-  },
-  methods:{
-    onSuccess () {
-      this.$refs['list'].query_coderuleList()
-    }
-  }
-}
-
-</script>
-<style>
-</style>

+ 0 - 288
src/SManagement/archives_admag/index copy.vue

@@ -1,288 +0,0 @@
-<template>
-  <div>
-    <!--新增-->
-    <Header v-if="tool.checkAuth($route.name,'insert')">
-      <add ref="add" />
-    </Header>
-    <div class="normal-card">
-      <div style="display:flex;align-items:center">
-        <div style="display:flex;align-items:center;padding-bottom:15px">
-          <p style="font-size:14px;margin-right:10px;width:50px">{{$t('范围')}}:</p>
-          <el-select v-model="params.content.where.type" placeholder="请选择素材范围" size="small" @change="getFileList">
-            <el-option
-              label="全部"
-              :value="0">
-            </el-option>
-            <el-option
-              label="我的"
-              :value="1">
-            </el-option>
-          </el-select>
-        </div>
-        <!-- 搜索及分类筛选 -->
-        <filterList @changeTypeId="changeTypeId" @startSearch="startSearch">
-          <span style="flex: 1;display: flex;justify-content: flex-end;">
-            <hot-new-control @sortTypeChange="sortTypeChange" />
-          </span>
-        </filterList>
-      </div>
-
-      <!--素材列表-->
-      <list :fileData="fileData" @listItemClick="listItemClick"
-        v-if="tool.checkAuth($route.name, 'read')">
-        <template v-slot:edit="scope">
-          <Edit :fileData="scope.data" v-if="tool.checkAuth($route.name, 'update')"></Edit>
-        </template>
-        <template v-slot:delete="scope">
-          <Delete :data="scope.data" @removeSuccess="getFileList" v-if="tool.checkAuth($route.name, 'delete')"></Delete>
-        </template>
-      </list>
-      <pagination :total="total" :pageSize="params.content.pageSize" :currentPage="params.content.pageNumber"
-        @pageChange="pageChange">
-      </pagination>
-      <detail ref="detail" v-if="currentFile && tool.checkAuth($route.name, 'read')" :currentSelectFile="currentFile">
-      </detail>
-    </div>
-    <!--抽屉面板-->
-    <el-drawer
-      title="我是标题"
-      :visible.sync="drawer"
-      :with-header="false"
-      direction="rtl"
-      size="90%"
-      append-to-body
-      @close="closeDrawer">
-      <div class="detail__panel">
-        <router-view/>
-      </div>
-    </el-drawer>
-  </div>
-</template>
-
-<script>
-import filterList from "@/HManagement/archives_ad/modules/filterList.vue";
-import Header from '@/SManagement/archives_upload/components/Header'
-import add from '../archives_ad/components/add'
-import HotNewControl from '@/components/hot-new-control/HotNewControl'
-import CategorySelect from '@/components/category-select/CategorySelect'
-import list from '@/SManagement/archives_ad/components/list'
-import search from '@/components/search/index'
-import detail from '@/SManagement/archives_ad/components/detail'
-import Delete from '@/SManagement/archives_ad/components/delete'
-import Edit from '@/SManagement/archives_ad/components/Edit'
-import Pagination from '@/components/pagination/Pagination'
-
-import matchingFileType from '@/utils/matchingFeilType'
-
-import {mapGetters} from 'vuex'
-export default {
-  name: 'index',
-  data() {
-    return {
-      drawer:false,
-      params: {
-        "classname": "saletool.sharematerial.sharematerial",
-        "method": "selectList",
-        "content": {
-          "pageNumber": 1,
-          "pageSize": 16,
-          "nocache": true,
-          "where": {
-            "condition": "",
-            "sat_sharematerial_classid": null,
-            "type":0,
-          }
-        }
-      },
-      //分类配置
-      select: {
-        "classname": "saletool.sharematerial.sharematerial",
-        "method": "select",
-        "content": {
-          "parentid": 0
-        }
-      },
-      fileData: [],
-      //列表数据
-      list: [],
-      //分类列表
-      selectList: [],
-      total: 0,
-      //当前查看的素材
-      currentFile: ''
-    };
-  },
-  components: {
-    HotNewControl,
-    CategorySelect,
-    Pagination,
-    list,
-    search,
-    detail,
-    Delete,
-    Edit,
-    Header,
-    add,
-    filterList
-  },
-  computed: {
-    ...mapGetters({
-      DrawerShow:'DrawerShow'
-    })
-  },
-  watch: {
-    $route (val) {
-      if (val.path == '/archives_admag') {
-        this.getFileList()
-        this.$refs.add.dialogVisible = false
-      }
-    },
-    DrawerShow (val) {
-      val ? this.drawer = true : this.drawer = false
-    }
-  },
-  created() {
-    this.getFileList()
-    this.getSelectList()
-  },
-  methods: {
-    closeDrawer () {
-      this.$router.push({path:'/archives_admag'})
-      this.$store.dispatch('DrawerShowChange',false)
-    },
-    /* 改变分类ID */
-    changeTypeId(id) {
-      this.params.content.where.sat_sharematerial_classid = id == 0 ? null : id;
-      this.getFileList(true);
-    },
-    /* 开始搜索 */
-    startSearch(value) {
-      this.params.content.pageNumber = 1
-      this.params.content.where.condition = value;
-      this.getFileList(true);
-    },
-    //获取文件数据
-    async getFileList(init = false) {
-      if (init) this.params.content.pageNumber = 1;
-      let res = await this.$api.requested(this.params)
-      let initID = '9999' + JSON.parse(window.sessionStorage.getItem("active_account")).userid;
-      let deleteList = [];
-      res.data.forEach(v => (initID == v.sat_sharematerial_classid && v.title == '') ? deleteList.push(v.sat_sharematerialid) : '');
-      if (deleteList.length != 0) return this.handleDelete(deleteList);
-      this.total = res.total
-      this.fileData = res.data
-      console.log(this.fileData);
-
-      this.fileData.forEach((item) => {
-        item.attinfos = matchingFileType.fileList(item.attinfos)
-      })
-      this.params.content.sort = res.sort
-    },
-    /* 处理批量删除 */
-    handleDelete(list) {
-      this.$api.requested({
-        "id": 20221102143602,
-        "content": {
-          "sat_sharematerialid": list
-        }
-      }).then(res => {
-        console.log("处理删除", res);
-        if (res.msg == '成功') this.getFileList()
-      })
-    },
-    //获取分类列表
-    async getSelectList() {
-      let res = await this.$api.requested(this.select)
-      this.selectList = res.data
-    },
-    sortTypeChange(name) {
-      for (let i = 0; i < this.params.content.sort.length; i++) {
-        this.params.content.sort[i].sorted = this.params.content.sort[i].sortname == name ? 1 : 0
-      }
-      this.getFileList()
-    },
-    //列表单击事件
-    async listItemClick(data) {
-      let param = {
-        "classname": "saletool.sharematerial.sharematerial",
-        "method": "selectDetail",
-        "content": {
-          "sat_sharematerialid": data.sat_sharematerialid
-        }
-      }
-      let res = await this.$api.requested(param)
-      res.data.attinfos = this.fileType.fileList(res.data.attinfos)
-      this.currentFile = res.data
-      this.$nextTick(() => {
-        this.$refs.detail.isFileInfoPanlShow = true
-      })
-    },
-    itemEdit(data) {
-      this.$router.push({
-        path: '/upload_archives',
-        params: JSON.stringify(data)
-      })
-    },
-    clearData() {
-      this.params.content.where.condition = ''
-      this.getFileList()
-    },
-    pageChange(n) {
-      this.params.content.pageNumber = n
-      this.getFileList()
-    }
-  },
-};
-</script>
-
-<style scoped>
-* {
-  box-sizing: border-box;
-}
-
-.normal-card {
-  min-height: calc(100vh - 190px);
-  box-sizing: border-box;
-  position: relative;
-}
-
-.normal-card .header-panl {
-  display: flex;
-  justify-content: space-between;
-  margin-bottom: 30px;
-}
-
-.normal-card .header-panl .left {
-  display: flex;
-  align-items: center;
-}
-
-.normal-card .header-panl .left .select {
-  margin-right: 16px;
-  display: flex;
-  align-items: center;
-}
-
-.normal-card .header-panl .left .select span {
-  margin-right: 8px;
-}
-
-.normal-card .header-panl .left .search {
-  height: 36px;
-}
-
-/deep/ .input-with-select {
-  height: 34px;
-}
-
-/deep/.el-button span {
-  transform: translateX(-5px) !important;
-}
-
-.el-pagination {
-  position: absolute;
-  right: 16px;
-  bottom: 0;
-  margin-top: 16px;
-}
-</style>

+ 0 - 96
src/SManagement/notice/index copy.vue

@@ -1,96 +0,0 @@
-<template>
-  <div class="normal-card">
-    <search @searchActive="searchActive" @clearData="clearData" v-if="tool.checkAuth($route.name,'read')"></search>
-    <div class="content">
-      <list :list="list" v-if="tool.checkAuth($route.name,'read')"></list>
-      <div class="page">
-        <pagination :total="total"
-                    :pageSize="param.content.pageSize"
-                    :currentPage="param.content.pageNumber"
-                    @pageChange="pageChange">
-        </pagination>
-      </div>
-    </div>
-  </div>
-</template>
-
-<script>
-import Pagination from '@/components/pagination/Pagination'
-import List from '@/SManagement/notice/compoents/list'
-import search from '@/components/search/index'
-export default {
-  name: "Index",
-  data() {
-    return {
-      param:{
-        "accesstoken": "2686aade24d20b15bbaa177dc35e638c",
-        "classname": "saletool.notice.notice",
-        "method": "queryNoticeList",
-        "content": {
-          "nocache": true,
-          "pageNumber": 1,
-          "pageSize": 10,
-          "where":{
-              "condition":""
-          }
-        }
-      },
-      searchTitle: '',
-      list:[],
-      total:0,
-      currentPage:0,
-    };
-  },
-  components: {
-    Pagination,
-    List,
-    search,
-  },
-  created() {
-    this.getNoticeData()
-  },
-  mounted() {},
-  methods: {
-    //获取通告列表
-    async getNoticeData() {
-      let res = await this.$api.requested(this.param)
-      this.list = res.data
-      this.total = res.total
-    },
-    pageChange(val) {
-      this.param.content.pageNumber = val
-      this.getNoticeData()
-    },
-
-    async searchActive(data) {
-      this.param.content.where.condition = data.trim()
-      let res = await this.$api.requested(this.param)
-      this.list = res.data
-      this.total = res.total
-    },
-    clearData() {
-      this.param.content.where.condition = ''
-      this.getNoticeData()
-    },
-  }
-};
-</script>
-<style scoped>
-*{
-  box-sizing: border-box;
-}
-.normal-card {
-  min-height: 100%;
-  padding: 20px 0 50px 30px;
-  font-family: PingFang SC-Regular;
-}
-.normal-card .search {
-  width: 320px;
-  height: 36px;
-}
-.el-pagination {
-  position: absolute;
-  right: 16px;
-  bottom: 0;
-}
-</style>

+ 0 - 188
src/SManagement/orderclue_detail/components/followDetailCopy.vue

@@ -1,188 +0,0 @@
-<template>
-  <div class="normal-card" style="padding-right:0">
-    <el-descriptions>
-      <div slot="title">跟进记录 &nbsp;<i @click="sortFun" :class="param.content.sort[0].reversed == 1?'fa fa-sort-amount-asc':'fa fa-sort-amount-desc'"></i></div>
-    </el-descriptions>
-    <div class="select">
-      <span class="demonstration">{{$t('日期范围')}}:</span>
-      <time-select @clearSelect="clearSelect" @timeChange="timeChange"></time-select>
-    </div>
-    <div class="detail" v-if="follow.length > 0">
-      <div class="item" v-for="(item,index) in follow" :key="index">
-        <p>{{index + 1}}.{{item.createdate}},&nbsp;由<span style="font-weight:bold;margin:0 6px;font-size:13px">{{item.createby}}</span>开始跟进,跟进方式:<span style="font-weight:bold;margin:0 5px">{{item.followupmode}}</span>{{handleTxt[item.logtype]}}</p>
-
-        <div class="content">
-          <el-button type="text">{{$t('删除')}}</el-button>
-          <div style="margin-bottom:10px">
-            <p v-if="item.competitor">已购买品牌:{{item.competitor}}</p>
-            {{item.content}}
-          </div>
-          <file-item
-            :marginRight="10"
-            :rowCount="5"
-            :isDownLoad="true"
-            :fileData="item.attinfo"
-            @deleteSuccess="deleteFile">
-          </file-item>
-        </div>
-      </div>
-    </div>
-    <el-empty :title="$t('暂无数据')" v-else></el-empty>
-    <div style="margin-top:16px;text-align:right">
-      <el-pagination
-      background
-      small
-      @size-change="handleSizeChange"
-      @current-change="handleCurrentChange"
-      :current-page="param.content.pageNumber"
-      :page-size="param.content.pageSize"
-      layout="total, prev, pager, next"
-      :total="total">
-      </el-pagination>
-    </div>
-  </div>
-</template>
-
-<script>
-import FileItem from '../../orderclue/components/file/index2'
-
-import TimeSelect from '@/SManagement/submitedit_one/components/TimeSelect'
-import { log } from '@antv/g2plot/lib/utils';
-export default {
-  name: 'followDetail',
-  data() {
-    return {
-      param: {
-        "id": "20221101094602",
-        "version":1,
-        "content": {
-            "sat_orderclueid": this.$route.query.id,
-            "isdesc": 1,
-            "pageNumber":1,
-            "pageSize":20,
-            "where": {
-                "start": "",
-                "end": ""
-            },
-            "sort": [
-              {
-                "reversed":0,
-                "sorted":1,
-                "sortid":0,
-                "sortname":'默认'
-              }
-            ]
-        }
-      },
-      handleTxt:{
-        '跟进中':'跟进内容',
-        '成交':'成交操作,添加备注',
-        '丢单':'丢单操作,具体原因如下',
-        '无效':'无效操作,具体原因如下',
-      },
-      follow:[],
-      timeArr:[],
-      total:0
-    };
-  },
-  components:{ TimeSelect , FileItem},
-  computed:{
-  },
-  watch:{
-  },
-  created() {
-    this.getFollowDetail()
-  },
-  methods: {
-    async getFollowDetail() {
-      let res = await this.$api.requested(this.param)
-      this.follow = res.data
-      this.total = res.total
-      this.follow.forEach(item => {
-        item.attinfo = this.fileType.fileList(item.attinfo)
-      })
-      this.param.content.sort = res.sort
-      console.log(this.follow);
-
-    },
-    handleCurrentChange(n) {
-      this.param.content.pageNumber = n
-      this.getFollowDetail()
-    },
-    clearSelect() {
-      this.param.content.where.start = ''
-      this.param.content.where.end = ''
-      this.param.content.pageNumber = 1
-      this.getFollowDetail()
-    },
-    timeChange(result) {
-      this.param.content.where.start = result[0]
-      this.param.content.where.end = result[1]
-      this.param.content.pageNumber = 1
-      this.getFollowDetail()
-    },
-    sortFun() {
-      this.param.content.sort[0].reversed = this.param.content.sort[0].reversed == 0 ? 1 : 0
-      this.getFollowDetail()
-    },
-    deleteFile (data) {
-      this.follow.forEach(item => {
-        item.attinfo.forEach((item2,index) => {
-          if(item2.linksid == data.linksid) {
-            console.log(item2,data);
-
-            item.attinfo.splice(index,1)
-          }
-        })
-      })
-
-    },
-    handleSizeChange(val) {
-      // console.log(`每页 ${val} 条`);
-      this.param.content.pageSize = val
-      this.getFollowDetail()
-    },
-    handleCurrentChange(val) {
-      // console.log(`当前页: ${val}`);
-      this.param.content.pageNumber = val
-      this.getFollowDetail()
-    },
-  },
-};
-</script>
-
-<style scoped>
-*{
-  box-sizing: border-box;
-}
-  .normal-card .title {
-    font-size: 16px;
-    color: #000000;
-    font-weight: bold;
-  }
-  .normal-card .select {
-    margin: 25px 10px 15px 0;
-    display: flex;
-    align-items: center;
-  }
-  .normal-card .select .demonstration {
-    font-size: 14px;
-    margin-right: 10px;
-  }
-  .normal-card .detail {
-    font-size: 14px;
-    overflow-y: scroll;
-    height: calc(100vh - 400px);
-    padding-right: 10px;
-  }
-  .normal-card .detail .content {
-    margin: 10px 0 16px 0;
-    background: #F2F2F2;
-    padding: 16px;
-    border-radius: 5px;
-    font-size: 14px;
-  }
-  /deep/.el-descriptions__header {
-    margin-bottom: 0 !important;
-  }
-</style>

+ 0 - 125
src/SManagement/orderclue_detail/index copy.vue

@@ -1,125 +0,0 @@
-<template>
-  <div class="detail">
-    <Header>
-      <edit position="detail" @getDetail="getDetail" :arealist="arealist" :detailInfo="{data:detail}"></edit>
-      <follow :detailInfo="{data:detail}" @getDetail="getDetail" position="detail"></follow>
-    </Header>
-    <div class="normal-card">
-      <el-descriptions :column="5" title="线索信息">
-        <el-descriptions-item label="序号">{{detail.rowindex}}</el-descriptions-item>
-        <el-descriptions-item :label="$t('手机号')">{{detail.phonenumber}}</el-descriptions-item>
-        <el-descriptions-item :label="$t('地址')">{{detail.addres}}</el-descriptions-item>
-        <el-descriptions-item label="来源">{{detail.cluesource}}</el-descriptions-item>
-        <el-descriptions-item :label="$t('状态')"><span :style="{'color':statusStyle[detail.status]}">{{detail.status}}</span></el-descriptions-item>
-        <el-descriptions-item :label="$t('客户名称')">{{detail.name}}</el-descriptions-item>
-        <el-descriptions-item :label="$t('省市县')">{{detail.province}}、{{detail.city}}、{{detail.county}}</el-descriptions-item>
-        <el-descriptions-item :label="$t('备注')">{{detail.notes}}</el-descriptions-item>
-        <el-descriptions-item :label="$t('负责人')">{{detail.leadername}}</el-descriptions-item>
-      </el-descriptions>
-    </div>
-    <div class="normal-card">
-      <el-descriptions :column="5" :title="$t('系统信息')">
-        <el-descriptions-item :label="$t('创建人')">{{detail.createBy}}</el-descriptions-item>
-        <el-descriptions-item label="分配人">{{detail.assignedBy}}</el-descriptions-item>
-        <el-descriptions-item label="最近跟进人">{{detail.followBy}}</el-descriptions-item>
-        <el-descriptions-item label="转移人">{{detail.changeBy}}</el-descriptions-item>
-        <el-descriptions-item label="最近编辑人">{{detail.editBy}}</el-descriptions-item>
-        <el-descriptions-item :label="$t('创建时间')">{{detail.createDate}}</el-descriptions-item>
-        <el-descriptions-item label="分配时间">{{detail.assignedDate}}</el-descriptions-item>
-        <el-descriptions-item label="最近跟进时间">{{detail.followDate}}</el-descriptions-item>
-        <el-descriptions-item label="最近转移时间">{{detail.changeDate}}</el-descriptions-item>
-        <el-descriptions-item label="最近编辑时间">{{detail.editDate}}</el-descriptions-item>
-      </el-descriptions>
-    </div>
-    <follow-detail ref="followDetatil"></follow-detail>
-  </div>
-</template>
-
-<script>
-import Header from '@/SManagement/archives_upload/components/Header'
-import followDetail from '@/SManagement/orderclue_detail/components/followDetail'
-import edit from '@/SManagement/orderclue/components/edit'
-import follow from '@/SManagement/orderclue/components/follow'
-export default {
-  name: 'index',
-  data() {
-    return {
-      param: {
-        "classname": "saletool.orderclue.web.orderclue",
-        "method": "selectDetail",
-        "content": {
-          "nocache":true,
-          "sat_orderclueid": 0
-        }
-      },
-      statusStyle: {
-        '待跟进':'#FA8C16',
-        '跟进中':'#52C41A',
-        '丢单':'#FF3B30',
-        '无效':'#999999',
-        '已成交':'#333333',
-        '已过期':'#999999'
-      },
-      detail: '',
-      arealist:[]
-    };
-  },
-  components:{ Header , followDetail , edit , follow },
-  computed:{
-  },
-  watch:{
-  },
-  created() {
-    this.getDetail()
-    this.query_arealist()
-  },
-  methods: {
-    async getDetail() {
-      this.$nextTick(() => {
-        this.$refs.followDetatil.getFollowDetail()
-      })
-      this.param.content.sat_orderclueid = this.$route.query.id
-      let res = await this.$api.requested(this.param)
-      this.detail = res.data
-    },
-    async query_arealist() {
-      const res = await this.$api.requested({
-        "classname": "system.tools",
-        "method": "query_arealist",
-        "content": {
-        }
-      })
-      this.arealist = this.tool.createMenu(res.data)
-    }
-  },
-};
-</script>
-
-<style scoped>
-*{
-  box-sizing: border-box;
-}
-  .normal-card {
-    margin-bottom: 10px;
-    padding: 16px;
-  }
-  .normal-card .title {
-    font-size: 16px;
-    font-weight: bold;
-    color: #000000;
-    margin-bottom: 25px;
-  }
-  .normal-card .info {
-    color: #000000;
-    display: flex;
-    flex-wrap: wrap;
-  }
-  .normal-card .info p {
-    margin-right: 50px;
-    margin-bottom: 15px;
-    font-size: 14px;
-  }
-  .normal-card .info p span {
-    margin-right: 15px;
-  }
-</style>

+ 0 - 97
src/SManagement/project_target/modules/components/projectAdd/index copy.vue

@@ -1,97 +0,0 @@
-<template>
-  <div>
-    <el-button size="mini"  type="primary" @click="dialogTableVisible = true" :disabled="disabled">{{$t('添加项目')}}</el-button>
-    <el-dialog
-        :title="$t('添加项目')"
-        :visible.sync="dialogTableVisible"
-        width="20%"
-        append-to-body
-        @close="onCancel"
-    >
-      <div class="panel_Target">
-        <el-row style="margin-top: 3%">
-          <el-col :span="4" :offset="1">
-            <div style="width: 100%;text-align: right">
-              <label class="normal-margin inline-16" style="margin-top: 8%">项目名称:</label>
-            </div>
-          </el-col>
-          <el-col :span="18">
-            <el-input v-model="form.projectname" size="small" placeholder="请选择项目" @focus="projectList"></el-input>
-          </el-col>
-        </el-row>
-      </div>
-      <div class="dialog-footer ">
-        <el-button size="small" @click="onCancel" class="normal-btn-width">{{$t('取 消')}}</el-button>
-        <el-button size="small" type="primary"  @click="onSubmit" class="normal-btn-width">{{$t('确 定')}}</el-button>
-      </div>
-    </el-dialog>
-    <project :visible="visible" v-if="visible" @onProject="onProject"></project>
-  </div>
-</template>
-
-<script>
-import project from '../../components/projectAdd/project'
-export default {
-  name: "index",
-  components:{project},
-  props:["id","year","disabled"],
-  data(){
-    return {
-      dialogTableVisible:false,
-      visible:false,
-      form:{
-        projectname:'',
-        sa_projectid:''
-      }
-    }
-  },
-  methods:{
-    onCancel(){
-
-    },
-    async onSubmit(){
-      const res = await this.$api.requested({
-        "id": 20220905154102,
-        "content": {
-          "year": this.year,
-          "hrid": this.id,
-          /*"sa_salestargetbillid":2,//可不传*/
-          "project": [
-            {
-              "sa_projectid": this.form.sa_projectid,
-            },
-          ]
-        },
-      })
-      this.tool.showMessage(res,()=>{
-        this.dialogTableVisible = false
-        this.$emit("onSuccess")
-      })
-    },
-    projectList(){
-      this.visible = true
-    },
-    onProject(data){
-      this.visible = false
-      console.log("获取")
-      console.log(data)
-      this.form.sa_projectid = data.sa_projectid
-      this.form.projectname = data.projectname
-     /* this.project = data*/
-      console.log("项目详细信息")
-      console.log(this.project)
-    },
-  }
-}
-</script>
-
-<style scoped>
-.el-pagination {
-  text-align: right;
-}
-.panel_Target {
-  border-top:1px solid #eeeeee;
-  padding:5px 5px;
-  margin-bottom:0px
-}
-</style>

+ 0 - 116
src/SManagement/project_target/modules/components/projectAdd/project copy.vue

@@ -1,116 +0,0 @@
-<template>
-  <div>
-    <el-dialog
-        title="新 建"
-        :visible.sync="dialogProjectVisible"
-        width="35%"
-        append-to-body
-    >
-      <div slot="title" style="font-size: 15px">
-        添加项目
-      </div>
-      <el-input :placeholder="$t('请输入编号/项目名称')"  suffix-icon="el-icon-search" @input="listData(params.content.pageNumber = 1)" v-model="params.content.where.condition" @keyup.native.enter="listData(params.content.pageNumber = 1)" @clear="listData(params.content.pageNumber = 1)" style="width:300px;margin-bottom: 10px" size="small" class="input-with-select inline-16" clearable>
-      </el-input>
-      <layout_table
-          :layout="tablecols"
-          :data="list"
-          :opwidth="200"
-          :custom="false"
-          :height="320"
-          :checkbox="true"
-          @onRow="onRow">
-      </layout_table>
-
-      <div style="margin-top:16px;text-align:right">
-        <el-pagination
-            background
-            small
-            @size-change="handleSizeChange"
-            @current-change="handleCurrentChange"
-            :current-page="currentPage"
-            :page-size="params.content.pageSize"
-            layout="total, prev, pager, next, jumper"
-            :total="total">
-        </el-pagination>
-      </div>
-      <div class="dialog-footer">
-        <el-button size="small" @click="onColes" class="normal-btn-width">{{$t('取 消')}}</el-button>
-        <el-button size="small" type="warning" class="normal-btn-width btn-warning"  @click="onSubmit">{{$t('确 定')}}</el-button>
-      </div>
-    </el-dialog>
-  </div>
-</template>
-
-<script>
-import layout_table from '../projectAdd/table'
-export default {
-  name: "project",
-  props:["visible"],
-  data(){
-    return {
-      dialogProjectVisible:false,
-      bill_id:"",
-      tablecols:[],
-      list:[],
-      total:0,
-      currentPage:0,
-      row:"",
-      params:{
-        "id": 20220905151902,
-        "content": {
-          "where": {
-            "condition": ""
-          }
-        },
-      }
-    }
-  },
-  components:{layout_table},
-  mounted() {
-    console.log(this.visible)
-    this.dialogProjectVisible = true
-    this.listData()
-  },
-  methods:{
-    async listData(){
-      const res = await this.$api.requested(this.params)
-      this.list = res.data
-      this.total = res.total
-    },
-    handleSizeChange(val) {
-      // console.log(`每页 ${val} 条`);
-      this.params.content.pageSize = val
-      this.listData()
-    },
-    handleCurrentChange(val) {
-      // console.log(`当前页: ${val}`);
-      this.params.content.pageNumber = val
-      this.listData()
-    },
-    onColes(){
-      this.dialogProjectVisible = false
-      this.$emit("onProject")
-    },
-    onRow(row){
-      console.log("**********************---------------------")
-      console.log(row)
-      this.row = row
-    },
-    onSubmit(){
-      console.log("**********************---------------------")
-      this.dialogProjectVisible = false
-      this.$emit("onProject",this.row)
-      console.log(this.row)
-    }
-
-  },
-
-  created() {
-    this.tablecols = this.tool.tabelCol(this.$route.name).projectTable.tablecols
-  }
-}
-</script>
-
-<style scoped>
-
-</style>

+ 0 - 119
src/SManagement/sales_forecast/modules/bak/productDetail copy.vue

@@ -1,119 +0,0 @@
-<template>
-  <div class="detail">
-    <div class="container normal-panel">
-      <p class="normal-title normal-margin">{{$t('基础信息')}}</p>
-      <el-descriptions :column="3" v-if="detail">
-          <el-descriptions-item :label="$t('单号')">{{detail.billnum?detail[0].billnum:$t('未知')}}</el-descriptions-item>
-          <el-descriptions-item label="预测模板">{{detail[0].title?detail[0].title:$t('未知')}}</el-descriptions-item>
-          <el-descriptions-item label="提报周期">{{detail[0].periodpoint | timer(detail[0].periodtype)}}</el-descriptions-item>
-          <el-descriptions-item label="提报要求">
-            <span v-if="detail[0].baseonproject == 1">按项目及产品类别预测</span>
-            <span v-else>按产品类别预测</span>
-          </el-descriptions-item>
-          <el-descriptions-item label="提报人">{{detail[0]?detail[0].createby : '未知'}}</el-descriptions-item>
-          <el-descriptions-item :label="$t('部门')">{{detail[0]?detail[0].depname:$t('未知')}}</el-descriptions-item>
-          <el-descriptions-item :label="$t('职位')">{{detail[0]?detail[0].position:$t('未知')}}</el-descriptions-item>
-          <el-descriptions-item label="提报时间">{{detail[0]?detail[0].createdate:$t('未知')}}</el-descriptions-item>
-      </el-descriptions>
-    </div>
-    <div class="container normal-panel" style="margin-top:16px">
-      <p class="normal-title normal-margin">提报内容</p>
-      <div class="handle">
-        <div class="left">
-          <Search @searchActive="Search" @clearData="clearData"/>
-          <DownSelect :title="$t(`提报要求`)+':'" :list="[{value:'按产品类别'},{value:'按产品类别 + 项目'}]" style="margin-right:16px" />
-        </div>
-      </div>
-      <tableLayout v-if="projectList" :layout="tablecols" :custom="false" :data="projectList">
-      </tableLayout>
-    </div>
-  </div>
-</template>
-
-<script>
-import Search from '@/components/search/index'
-import DownSelect from '@/components/down_select/index'
-import mergeTable from '../components/mergeTable'
-export default {
-  name: 'historyDetail',
-  data() {
-    return {
-      id:this.$route.query.id,
-      detail:'',
-      tablecols:'',
-      projectList:'',
-      condition:''
-    };
-  },
-  components:{Search,DownSelect,mergeTable},
-  computed:{
-  },
-  filters: {
-    timer (val, type) {
-      if (type == '月') {
-        return '每月' + val.substr(1, val.length - 2) + '日'
-      } else {
-        return '每周' + val.substr(1, val.length - 2)
-      }
-    }
-  },
-  watch:{
-  },
-  created() {
-    this.getDetail()
-    this.getSubmitList()
-    this.tablecols = this.tool.tabelCol(this.$route.name).productDetailTable.tablecols.splice(0,7)
-
-  },
-  methods: {
-    /* 获取头部详情 */
-    async getDetail() {
-      let res = await this.$api.requested({
-          "id": 20220914104603,
-          "version":1,
-          "content": {
-              "sa_salesforecastbillid":this.id
-          }
-        })
-      this.detail = res.data
-      console.log(this.detail);
-    },
-    /* 获取详情提报内容数据 */
-    async getSubmitList() {
-      let res = await this.$api.requested({
-          "id": 20220906154703,
-          "version":1,
-          "content": {
-              "nocache":true,
-              "sa_salesforecastbillid":this.id,
-              "where":{
-                  "condition":this.condition
-              }
-          }
-      })
-      res.data[0].itemclassname ? this.projectList = res.data : this.projectList = []
-    },
-    Search(data) {
-      this.condition = data
-      this.getSubmitList()
-    },
-    clearData() {
-      this.condition = ''
-      this.getSubmitList()
-    }
-  },
-};
-</script>
-
-<style scoped>
-  .handle {
-    display: flex;
-    justify-content: space-between;
-    align-items: center;
-    margin-bottom: 16px;
-  }
-  .handle .left {
-    display: flex;
-    align-items: center;
-  }
-</style>

+ 0 - 119
src/SManagement/sales_forecast/modules/bak/projectDetail copy.vue

@@ -1,119 +0,0 @@
-<template>
-  <div class="detail">
-    <div class="container normal-panel">
-      <p class="normal-title normal-margin">{{$t('基础信息')}}</p>
-      <el-descriptions :column="3" v-if="detail">
-          <el-descriptions-item :label="$t('单号')">{{detail.billnum?detail[0].billnum:$t('未知')}}</el-descriptions-item>
-          <el-descriptions-item label="预测模板">{{detail[0].title?detail[0].title:$t('未知')}}</el-descriptions-item>
-          <el-descriptions-item label="提报周期">{{detail[0].periodpoint | timer(detail[0].periodtype)}}</el-descriptions-item>
-          <el-descriptions-item label="提报要求">
-            <span v-if="detail[0].baseonproject == 1">按项目及产品类别预测</span>
-            <span v-else>按产品类别预测</span>
-          </el-descriptions-item>
-          <el-descriptions-item label="提报人">{{detail[0]?detail[0].createby : '未知'}}</el-descriptions-item>
-          <el-descriptions-item :label="$t('部门')">{{detail[0]?detail[0].depname:$t('未知')}}</el-descriptions-item>
-          <el-descriptions-item :label="$t('职位')">{{detail[0]?detail[0].position:$t('未知')}}</el-descriptions-item>
-          <el-descriptions-item label="提报时间">{{detail[0]?detail[0].createdate:$t('未知')}}</el-descriptions-item>
-      </el-descriptions>
-    </div>
-    <div class="container normal-panel" style="margin-top:16px">
-      <p class="normal-title normal-margin">提报内容</p>
-      <div class="handle">
-        <div class="left">
-          <Search @searchActive="Search" @clearData="clearData"/>
-          <DownSelect :title="$t(`提报要求`)+':'" :list="[{value:'按产品类别'},{value:'按产品类别 + 项目'}]" style="margin-right:16px" />
-        </div>
-      </div>
-      <merge-table v-if="projectList" :layout="tablecols" :custom="false" :data1="projectList" :endFalse="false">
-      </merge-table>
-    </div>
-  </div>
-</template>
-
-<script>
-import Search from '@/components/search/index'
-import DownSelect from '@/components/down_select/index'
-import mergeTable from '../components/mergeTable'
-export default {
-  name: 'historyDetail',
-  data() {
-    return {
-      id:this.$route.query.id,
-      detail:'',
-      tablecols:'',
-      projectList:'',
-      condition:''
-    };
-  },
-  components:{Search,DownSelect,mergeTable},
-  computed:{
-  },
-  filters: {
-    timer (val, type) {
-      if (type == '月') {
-        return '每月' + val.substr(1, val.length - 2) + '日'
-      } else {
-        return '每周' + val.substr(1, val.length - 2)
-      }
-    }
-  },
-  watch:{
-  },
-  created() {
-    this.getDetail()
-    this.getSubmitList()
-    this.tablecols = this.tool.tabelCol(this.$route.name).salesEditTable.tablecols.splice(0,8)
-  },
-  methods: {
-    /* 获取头部详情 */
-    async getDetail() {
-      let res = await this.$api.requested({
-          "id": 20220914104603,
-          "version":1,
-          "content": {
-              "sa_salesforecastbillid":this.id
-          }
-        })
-      this.detail = res.data
-      console.log(this.detail);
-    },
-    /* 获取详情提报内容数据 */
-    async getSubmitList() {
-      let res = await this.$api.requested({
-          "id": 20220906154703,
-          "version":1,
-          "content": {
-              "nocache":true,
-              "sa_salesforecastbillid":this.id,
-              "where":{
-                  "condition":this.condition
-              }
-          }
-      })
-      console.log(res.data);
-      res.data[0].sa_projectid ? this.projectList = res.data : this.projectList = []
-    },
-    Search(data) {
-      this.condition = data
-      this.getSubmitList()
-    },
-    clearData() {
-      this.condition = ''
-      this.getSubmitList()
-    }
-  },
-};
-</script>
-
-<style scoped>
-  .handle {
-    display: flex;
-    justify-content: space-between;
-    align-items: center;
-    margin-bottom: 16px;
-  }
-  .handle .left {
-    display: flex;
-    align-items: center;
-  }
-</style>

+ 0 - 130
src/SManagement/sales_forecast/modules/bak/salesHistory copy.vue

@@ -1,130 +0,0 @@
-<template>
-  <div class="container normal-panel">
-    <!-- 表格搜索 -->
-    <div class="flex-align-center  search-panel normal-margin">
-      <el-input style="width:200px;margin-right:16px" size="small" :placeholder="$t(`单号`)" @keyup.native.enter="listData(null,1)" @clear="listData(null,1)" v-model="params.content.where.condition" prefix-icon="el-icon-search" clearable></el-input>
-      <time-select @clearSelect="clearTime" @timeChange="timeChange"></time-select>
-    </div>
-    <!-- 表格主题 -->
-    <tableLayout v-if="tablecols && list" :layout="tablecols" :data="list" :opwidth="200" :custom="true" :fixedName="'operation'" height="300px" @rowClick="rowClick">
-      <template v-slot:customcol="scope">
-        <div v-if="scope.column.columnname === 'baseonproject'">
-          <span>{{scope.column.data.baseonproject === 1?'按项目及产品预测':'按产品预测'}}</span>
-        </div>
-        <div v-else-if="scope.column.columnname == 'periodtype'">
-            <span>
-              {{scope.column.data.periodpoint | timer(scope.column.data[scope.column.columnname])}}
-            </span>
-          </div>
-        <p v-else>{{scope.column.data[scope.column.columnname]}}</p>
-      </template>
-      <template v-slot:opreation="scope">
-        <slot name="detail" :data="scope.data"></slot>
-        <slot name="edit" :data="scope.data"></slot>
-      </template>
-    </tableLayout>
-    <div style="margin-top:16px;text-align:right">
-      <el-pagination
-        background
-        small
-        @size-change="handleSizeChange"
-        @current-change="handleCurrentChange"
-        :current-page="currentPage"
-        :page-size="params.content.pageSize"
-        layout="total, prev, pager, next, jumper"
-        :total="total">
-      </el-pagination>
-    </div>
-  </div>
-</template>
-
-<script>
-import TimeSelect from '@/SManagement/submitedit_one/components/TimeSelect'
-export default {
-  props:['mainData'],
-  components:{
-    TimeSelect
-  },
-  data () {
-    return {
-      params:{
-        "id": 20220908134403,
-        "version": 1,
-        "content": {
-          "nocache": true,
-          "sa_salesforecastmodelid": "",
-          "where": {
-            "begindate": "",
-            "enddate": "",
-            "condition":""
-          }
-        }
-      },
-      tablecols:[],
-      list:[],
-      total:0,
-      currentPage:0,
-
-    }
-  },
-  filters: {
-    timer (val, type) {
-      if (type == '月') {
-        return '每月' + val.substr(1, val.length - 2) + '日'
-      } else {
-        return '每周' + val.substr(1, val.length - 2)
-      }
-    }
-  },
-  methods:{
-    async listData (sa_salesforecastmodelid,pageNumber) {
-      this.params.content.pageNumber = pageNumber
-      this.params.content.sa_salesforecastmodelid = this.mainData.sa_salesforecastmodelid
-      const res = await this.$api.requested(this.params)
-      this.list = res.data
-      this.total = res.total
-      this.currentPage = res.pageNumber
-    },
-    handleSizeChange(val) {
-      // console.log(`每页 ${val} 条`);
-      this.params.content.pageSize = val
-      this.listData(null,this.params.content.pageNumber)
-    },
-    handleCurrentChange(val) {
-      // console.log(`当前页: ${val}`);
-      this.params.content.pageNumber = val
-      this.listData(null,val)
-    },
-    /* 时间赛选改变 */
-    timeChange (time) {
-      this.params.content.where.begindate = time[0]
-      this.params.content.where.enddate = time[1]
-      this.listData()
-    },
-    /* 清除时间赛选 */
-    clearTime () {
-      this.params.content.where.begindate = ''
-      this.params.content.where.enddate = ''
-      this.listData()
-    },
-    rowClick (row) {
-      this.$emit('tableRowClick',row)
-    },
-  },
-  mounted () {
-    this.listData()
-    this.tablecols = this.tool.tabelCol(this.$route.name)['salesHistoryTable'].tablecols
-  },
-  created () {
-  }
-}
-
-</script>
-<style>
-</style>
-<style scoped>
-.search-panel p{
-  width:40px;
-  font-size:14px
-}
-</style>

+ 0 - 114
src/SManagement/user/role-manage/RoleManage copy.vue

@@ -1,114 +0,0 @@
-<template>
-  <div class="role" v-if="tool.checkAuth($route.name,'read')">
-    <div class="top">
-      <p>角色管理</p>
-      <el-button type="primary" @click="addRole()" v-if="tool.checkAuth($route.name,'insert')">
-        <img src="@/assets/add.png" alt style="vertical-align:middle" />
-        新建角色
-      </el-button>
-    </div>
-    <role-item :roleData="roleData" v-if="tool.checkAuth($route.name,'read') && roleData.length != 0">
-      <template v-slot:icon="scope">
-        <img src="@/assets/edit.png" alt @click="roleEdit(scope.data)" v-if="tool.checkAuth($route.name,'update')" />
-      </template>
-      <template v-slot:remove="scope">
-        <remove-role :roleData="scope.data" v-if="tool.checkAuth($route.name,'delete')"></remove-role>
-      </template>
-    </role-item>
-    <el-empty :description="$t('暂无数据')" v-else></el-empty>
-  </div>
-</template>
-
-<script>
-import RoleItem from '@/SManagement/user/role-manage/components/RoleItem'
-import removeRole from '@/SManagement/user/role-manage/components/removeRole'
-export default {
-  name: 'RoleManage',
-  data () {
-    return {
-      param: {
-        "classname": "sale.role.role",
-        "method": "query_roleList",
-        "content": {
-          "nocache": true,
-          "pageNumber": 1,
-          "pageSize": 9999999,
-          "where": {
-            "condition": ""
-          }
-        }
-      },
-      roleData: []
-    }
-  },
-  props: [],
-  components: {
-    RoleItem,
-    removeRole
-  },
-  computed: {
-  },
-  watch: {
-  },
-  created () {
-    this.getRoleData()
-  },
-  methods: {
-    getRoleData () {
-      this.$api.requested(this.param).then(res => {
-        this.roleData = res.data
-      })
-    },
-    //角色编辑
-    roleEdit (data) {
-      window.sessionStorage.setItem('currentEditRole', JSON.stringify(data))
-      this.$router.push({
-        name: 'roleEdit',
-        params: {
-          data
-        }
-      })
-    },
-    addRole () {
-      window.sessionStorage.setItem('currentEditRole', 0)
-      window.sessionStorage.setItem('currentPath', '/role_managent')
-      this.$router.push({
-        path: 'role_edit',
-        query: {
-          id: 0
-        }
-      })
-    },
-  },
-};
-</script>
-
-<style scoped>
-* {
-  box-sizing: border-box;
-}
-.role {
-  width: 100%;
-  min-height: 100%;
-  background: #ffffff;
-}
-.role .top {
-  display: flex;
-  justify-content: space-between;
-  padding: 16px 16px 9px 0;
-  margin-left: 16px;
-  border-bottom: 1px solid #dddddd;
-  align-items: center;
-}
-.role .top p {
-  font-size: 16px;
-  font-weight: bold;
-  color: #333333;
-}
-.el-empty {
-  position: absolute;
-  left: 50%;
-  top: 50%;
-  transform: translate(-50%, -50%);
-}
-</style>

+ 0 - 110
src/SManagement/user/team-manage/TeamManage copy.vue

@@ -1,110 +0,0 @@
-<template>
-  <div class="tema">
-    <div class="top">
-      <p>团队管理</p>
-      <el-button type="primary" @click="addUser()" v-if="tool.checkAuth($route.name,'insert')">
-        <img src="@/assets/add.png" alt="" style="vertical-align:middle">
-        新建账号
-        </el-button>
-    </div>
-    <team-item :teamData="teamData" v-if="tool.checkAuth($route.name,'read') && teamData.length != 0">
-      <template v-slot:icon="scope">
-        <img src="@/assets/edit.png" alt="" @click.stop="editTargetFun(scope.data)" slot="icon" v-if="tool.checkAuth($route.name,'update')">
-      </template>
-      <template v-slot:remove="scope">
-        <remove-team :teamData="scope.data" v-if="tool.checkAuth($route.name,'delete')"></remove-team>
-      </template>
-    </team-item>
-    <el-empty :description="$t('暂无数据')" v-else></el-empty>
-    <add-user ref="addUser" :editTarget="editTarget"></add-user>
-  </div>
-</template>
-
-<script>
-import AddUser from '@/SManagement/user/team-manage/components/AddUser'
-import TeamItem from '@/SManagement/user/team-manage/components/TeamItem'
-import RemoveTeam from '@/SManagement/user/team-manage/components/RemoveTeam'
-export default {
-  name: 'TeamManage',
-  data () {
-    return {
-      param: {
-          /*"classname": "sale.team.team",
-          "method": "query_teamList",*/
-          "id":'20221107094704',
-          "content": {
-              "pageNumber": 1,
-              "pageSize": 999999,
-              "where": {
-                  "condition": ""
-              }
-          }
-      },
-      teamData:[],
-      //编辑的目标
-      editTarget:''
-    };
-  },
-  components: {
-    AddUser,
-    TeamItem,
-    RemoveTeam
-  },
-  computed: {
-  },
-  watch: {
-  },
-  created() {
-    this.getTeamData()
-  },
-  methods: {
-    addUser() {
-      this.$refs.addUser.dialogVisible = true
-      this.editTarget = ''
-      this.$refs.addUser.param.content.sa_agent_hrid = '0'
-      this.$nextTick(() => {
-        this.$refs.addUser.$refs.formInfo.resetFields()
-      })
-    },
-    async getTeamData() {
-      let res = await this.$api.requested(this.param)
-      this.teamData = res.data
-    },
-    editTargetFun(data) {
-      this.editTarget = data
-      this.$refs.addUser.dialogVisible = true
-    }
-  },
-};
-</script>
-
-<style scoped>
-*{
-  box-sizing: border-box;
-}
-  .tema {
-    width: 100%;
-    min-height: 100%;
-    background: #ffffff;
-    position: relative;
-  }
-  .tema .top {
-    display: flex;
-    justify-content: space-between;
-    padding: 16px 16px 9px 0;
-    margin-left: 16px;
-    border-bottom: 1px solid #DDDDDD;
-    align-items: center;
-  }
-  .tema .top p {
-    font-size: 16px;
-    font-weight: bold;
-    color: #333333;
-  }
-  .el-empty {
-    position: absolute;
-    left: 50%;
-    top: 50%;
-    transform: translate(-50%,-50%);
-  }
-</style>

+ 0 - 266
src/optionSystem/itemManage/modules/add copy.vue

@@ -1,266 +0,0 @@
-<template>
-  <div>
-    <el-drawer
-      title="新建主阀"
-      :visible.sync="drawer"
-      size="664px"
-      direction="rtl"
-      append-to-body
-      :show-close="false">
-      <div class="drawer__panel">
-        <el-row>
-          <el-form :model="form" :rules="rules" ref="form"  size="mini" label-position="right">
-            <el-col :span="24">
-              <el-form-item label="主阀料号" label-width="80px" prop="itemno">
-                <el-input v-model="form.itemno" autocomplete="off" placeholder="请输入主阀料号"></el-input>
-              </el-form-item>
-            </el-col>
-            <el-col :span="24">
-              <el-form-item label="名称" label-width="80px" prop="itemname">
-                <el-input  v-model="form.itemname" autocomplete="off" placeholder="请输入名称"></el-input>
-              </el-form-item>
-            </el-col>
-            <el-col :span="24">
-              <el-form-item label="阀门类型" label-width="80px" prop="valvetype">
-                <el-select v-model="form.valvetype" style="width:100%" :placeholder="$t('请选择')">
-                  <el-option
-                    v-for="item in itemTypeList()"
-                    :label="$t(item.remarks)"
-                    :value="item.value"
-                    :key="item.index"
-                  ></el-option>
-                </el-select>
-              </el-form-item>
-            </el-col>
-            <el-col :span="24">
-              <el-form-item label="公称通径" label-width="80px" prop="caliber">
-                <el-select v-model="form.caliber" style="width:100%" :placeholder="$t('请选择')">
-                  <el-option
-                    v-for="item in caliber()"
-                    :label="$t(item.remarks)"
-                    :value="item.value"
-                    :key="item.index"
-                  ></el-option>
-                </el-select>
-              </el-form-item>
-            </el-col>
-            <el-col :span="24">
-              <el-form-item label="公称压力" label-width="80px" prop="pressure">
-                <el-select v-model="form.pressure" style="width:100%" :placeholder="$t('请选择')">
-                  <el-option
-                    v-for="item in pressure()"
-                    :label="$t(item.remarks)"
-                    :value="item.value"
-                    :key="item.index"
-                  ></el-option>
-                </el-select>
-              </el-form-item>
-            </el-col>
-            <el-col :span="24">
-              <el-form-item label="连接方式" label-width="80px" prop="connection">
-                <el-select v-model="form.connection" style="width:100%" :placeholder="$t('请选择')">
-                  <el-option
-                    v-for="item in connection()"
-                    :label="$t(item.remarks)"
-                    :value="item.value"
-                    :key="item.index"
-                  ></el-option>
-                </el-select>
-              </el-form-item>
-            </el-col>
-            <el-col :span="24">
-              <el-form-item label="阀体材质" label-width="80px" prop="bodymaterial">
-                <el-select v-model="form.bodymaterial" style="width:100%" :placeholder="$t('请选择')">
-                  <el-option
-                    v-for="item in bodymaterial()"
-                    :label="$t(item.remarks)"
-                    :value="item.value"
-                    :key="item.index"
-                  ></el-option>
-                </el-select>
-              </el-form-item>
-            </el-col>
-            <el-col :span="24">
-              <el-form-item label="蝶板材质" label-width="80px" prop="valveplatematerial">
-                <el-select v-model="form.valveplatematerial" style="width:100%" :placeholder="$t('请选择')">
-                  <el-option
-                    v-for="item in valveplatematerial()"
-                    :label="$t(item.remarks)"
-                    :value="item.value"
-                    :key="item.index"
-                  ></el-option>
-                </el-select>
-              </el-form-item>
-            </el-col>
-            <el-col :span="24">
-              <el-form-item label="阀杆材质" label-width="80px" prop="stemmaterial">
-                <el-select v-model="form.stemmaterial" style="width:100%" :placeholder="$t('请选择')">
-                  <el-option
-                    v-for="item in stemmaterial()"
-                    :label="$t(item.remarks)"
-                    :value="item.value"
-                    :key="item.index"
-                  ></el-option>
-                </el-select>
-              </el-form-item>
-            </el-col>
-            <el-col :span="24">
-              <el-form-item label="阀座材质" label-width="80px" prop="plinthmaterial">
-                <el-select v-model="form.plinthmaterial" style="width:100%" :placeholder="$t('请选择')">
-                  <el-option
-                    v-for="item in plinthmaterial()"
-                    :label="$t(item.remarks)"
-                    :value="item.value"
-                    :key="item.index"
-                  ></el-option>
-                </el-select>
-              </el-form-item>
-            </el-col>
-            <el-col :span="24">
-              <el-form-item label="阀门扭矩" label-width="80px" prop="torque">
-                <el-input  v-model="form.torque" autocomplete="off" placeholder="请输入阀门扭矩"></el-input>
-              </el-form-item>
-            </el-col>
-            <el-col :span="24">
-              <el-form-item label="法兰号" label-width="80px" prop="flh">
-                <el-input  v-model="form.flh" autocomplete="off" placeholder="请输入法兰号"></el-input>
-              </el-form-item>
-            </el-col>
-            <el-col :span="24">
-              <el-form-item label="阀杆尺寸" label-width="80px" prop="stemsize">
-                <el-input  v-model="form.stemsize" autocomplete="off" placeholder="请输入阀杆尺寸"></el-input>
-              </el-form-item>
-            </el-col>
-            <el-col :span="24">
-              <el-form-item label="价格" label-width="80px" prop="marketprice">
-                <el-input  v-model="form.marketprice" autocomplete="off" placeholder="请输入价格"></el-input>
-              </el-form-item>
-            </el-col>
-          </el-form>
-        </el-row>
-      </div>
-      <div class="fixed__btn__panel">
-        <el-button size="small" @click="drawer = false" class="normal-btn-width">{{$t('取 消')}}</el-button>
-        <el-button size="small" type="primary" @click="onSubmit" :loading="loading" class="normal-btn-width">{{$t('确 定')}}</el-button>
-      </div>
-    </el-drawer>
-  </div>
-</template>
-
-<script>
-import {mapGetters} from "vuex";
-export default {
-  inject:['itemTypeList','caliber','pressure','connection','bodymaterial','valveplatematerial','stemmaterial','plinthmaterial'],
-  data () {
-    return {
-      drawer:false,
-      visible1:false,
-      timer:null,
-      isDisabled:false,
-      isSelectPhone:'',
-      selectType:[],
-      rules:{
-        itemno: [
-          { required: true, message: '请输入主阀料号', trigger: 'blur' },
-        ],
-        marketprice: [
-          { required: true, message: '请输入价格', trigger: 'blur' },
-          { pattern:/^([1-9][0-9]*)+(\.[0-9]{1,2})?$/,message:'请输入数字(最多两位小数)',trigger:'blur'}
-        ],
-        itemname: [
-          { required: true, message: '请输入名称', trigger: 'blur' }
-        ],
-        valvetype: [
-          { required: true, message: '请选择阀门类型', trigger: 'change' }
-        ],
-        caliber: [
-          { required: true, message: '请选择公称通径', trigger: 'change' },
-        ],
-        pressure: [
-          { required: true, message: '请选择公称压力', trigger: 'change' }
-        ],
-        connection: [
-          { required: true, message: '请选择连接方式', trigger: 'change' }
-        ],
-        bodymaterial: [
-          { required: true, message: '请选择阀体材质', trigger: 'change' }
-        ],
-        valveplatematerial: [
-          { required: true, message: '请选择阀板材质', trigger: 'change' }
-        ],
-        stemmaterial: [
-          { required: true, message: '请选择阀杆材质', trigger: 'change' }
-        ],
-        plinthmaterial: [
-          { required: true, message: '请选择阀座材质', trigger: 'change' }
-        ],
-      },
-      form:{
-        "itemid": 0,
-        "plm_itemextendid": 0,
-        "itemno": "",
-        "itemname": "",
-        "marketprice": '',
-        "valvetype": "",
-        "caliber": "", //公称通径
-        "pressure": "", //公称压力
-        "connection": "",
-        "bodymaterial": "",
-        "valveplatematerial": "",
-        "stemmaterial": "",
-        "plinthmaterial": "",
-        "torque": "",
-        "flh": "",
-        "stemsize": ""
-      },
-      options:[],
-    }
-  },
-  computed:{
-    ...mapGetters({
-      loading:'loading'
-    })
-  },
-  watch: {
-    drawer (val) {
-      if (!val) {
-        this.$refs.form.resetFields()
-        this.isSelectPhone = ''
-      }
-    }
-  },
-  methods:{
-    onShow () {
-      this.drawer = true
-    },
-    onSubmit () {
-      this.$refs['form'].validate((valid) => {
-        if (!valid) return false
-        this.$store.commit('setLoading',true)
-        this.$api.requested({
-            id:2024060116124902,
-            content: this.form
-        }).then(res=>{
-            this.tool.showMessage(res,() => {
-                this.$refs.form.resetFields()
-                this.$store.dispatch('changeDetailDrawer',true)
-                this.$router.push({path:'/itemDetail',query:{id:res.data.itemid,rowindex:res.data.rowindex}})
-                this.drawer = false
-                this.$emit('onSuccess',res.data)
-
-            })
-            this.$store.commit('setLoading',false)
-        })
-      });
-    },
-    },
-
-}
-
-</script>
-<style scoped>
-.dialog-footer{
-  margin-top:32px;
-  text-align: center;
-}
-</style>

+ 0 - 378
src/optionSystem/itemManage/modules/edit copy.vue

@@ -1,378 +0,0 @@
-<template>
-  <div>
-    <el-button size="mini" type="primary" @click="onShow" :disabled="data.status == '审核'"
-      >{{$t('编辑')}}</el-button
-    >
-    <el-drawer
-      title="编辑主阀"
-      :visible.sync="drawer"
-      size="664px"
-      direction="rtl"
-      append-to-body
-      :show-close="false"
-    >
-      <div class="drawer__panel">
-        <el-row>
-          <el-form
-            :model="form"
-            :rules="rules"
-            ref="form"
-            size="mini"
-            label-position="right"
-          >
-            <el-col :span="24">
-              <el-form-item label="主阀料号" label-width="80px" prop="itemno">
-                <el-input
-                  v-model="form.itemno"
-                  autocomplete="off"
-                  placeholder="请输入主阀料号"
-                ></el-input>
-              </el-form-item>
-            </el-col>
-            <el-col :span="24">
-              <el-form-item label="名称" label-width="80px" prop="itemname">
-                <el-input
-                  v-model="form.itemname"
-                  autocomplete="off"
-                  placeholder="请输入名称"
-                ></el-input>
-              </el-form-item>
-            </el-col>
-            <el-col :span="24">
-              <el-form-item
-                label="阀门类型"
-                label-width="80px"
-                prop="valvetype"
-              >
-                <el-select
-                  v-model="form.valvetype"
-                  style="width: 100%"
-                  :placeholder="$t('请选择')"
-                >
-                  <el-option
-                    v-for="item in itemTypeList()"
-                    :label="$t(item.remarks)"
-                    :value="item.value"
-                    :key="item.index"
-                  ></el-option>
-                </el-select>
-              </el-form-item>
-            </el-col>
-            <el-col :span="24">
-              <el-form-item label="公称通径" label-width="80px" prop="caliber">
-                <el-select
-                  v-model="form.caliber"
-                  style="width: 100%"
-                  :placeholder="$t('请选择')"
-                >
-                  <el-option
-                    v-for="item in caliber()"
-                    :label="$t(item.remarks)"
-                    :value="item.value"
-                    :key="item.index"
-                  ></el-option>
-                </el-select>
-              </el-form-item>
-            </el-col>
-            <el-col :span="24">
-              <el-form-item label="公称压力" label-width="80px" prop="pressure">
-                <el-select
-                  v-model="form.pressure"
-                  style="width: 100%"
-                  :placeholder="$t('请选择')"
-                >
-                  <el-option
-                    v-for="item in pressure()"
-                    :label="$t(item.remarks)"
-                    :value="item.value"
-                    :key="item.index"
-                  ></el-option>
-                </el-select>
-              </el-form-item>
-            </el-col>
-            <el-col :span="24">
-              <el-form-item
-                label="连接方式"
-                label-width="80px"
-                prop="connection"
-              >
-                <el-select
-                  v-model="form.connection"
-                  style="width: 100%"
-                  :placeholder="$t('请选择')"
-                >
-                  <el-option
-                    v-for="item in connection()"
-                    :label="$t(item.remarks)"
-                    :value="item.value"
-                    :key="item.index"
-                  ></el-option>
-                </el-select>
-              </el-form-item>
-            </el-col>
-            <el-col :span="24">
-              <el-form-item
-                label="阀体材质"
-                label-width="80px"
-                prop="bodymaterial"
-              >
-                <el-select
-                  v-model="form.bodymaterial"
-                  style="width: 100%"
-                  :placeholder="$t('请选择')"
-                >
-                  <el-option
-                    v-for="item in bodymaterial()"
-                    :label="$t(item.remarks)"
-                    :value="item.value"
-                    :key="item.index"
-                  ></el-option>
-                </el-select>
-              </el-form-item>
-            </el-col>
-            <el-col :span="24">
-              <el-form-item
-                label="蝶板材质"
-                label-width="80px"
-                prop="valveplatematerial"
-              >
-                <el-select
-                  v-model="form.valveplatematerial"
-                  style="width: 100%"
-                  :placeholder="$t('请选择')"
-                >
-                  <el-option
-                    v-for="item in valveplatematerial()"
-                    :label="$t(item.remarks)"
-                    :value="item.value"
-                    :key="item.index"
-                  ></el-option>
-                </el-select>
-              </el-form-item>
-            </el-col>
-            <el-col :span="24">
-              <el-form-item
-                label="阀杆材质"
-                label-width="80px"
-                prop="stemmaterial"
-              >
-                <el-select
-                  v-model="form.stemmaterial"
-                  style="width: 100%"
-                  :placeholder="$t('请选择')"
-                >
-                  <el-option
-                    v-for="item in stemmaterial()"
-                    :label="$t(item.remarks)"
-                    :value="item.value"
-                    :key="item.index"
-                  ></el-option>
-                </el-select>
-              </el-form-item>
-            </el-col>
-            <el-col :span="24">
-              <el-form-item
-                label="阀座材质"
-                label-width="80px"
-                prop="plinthmaterial"
-              >
-                <el-select
-                  v-model="form.plinthmaterial"
-                  style="width: 100%"
-                  :placeholder="$t('请选择')"
-                >
-                  <el-option
-                    v-for="item in plinthmaterial()"
-                    :label="$t(item.remarks)"
-                    :value="item.value"
-                    :key="item.index"
-                  ></el-option>
-                </el-select>
-              </el-form-item>
-            </el-col>
-            <el-col :span="24">
-              <el-form-item label="阀门扭矩" label-width="80px" prop="torque">
-                <el-input
-                  v-model="form.torque"
-                  autocomplete="off"
-                  placeholder="请输入阀门扭矩"
-                ></el-input>
-              </el-form-item>
-            </el-col>
-            <el-col :span="24">
-              <el-form-item label="法兰号" label-width="80px" prop="flh">
-                <el-input
-                  v-model="form.flh"
-                  autocomplete="off"
-                  placeholder="请输入法兰号"
-                ></el-input>
-              </el-form-item>
-            </el-col>
-            <el-col :span="24">
-              <el-form-item label="阀杆尺寸" label-width="80px" prop="stemsize">
-                <el-input
-                  v-model="form.stemsize"
-                  autocomplete="off"
-                  placeholder="请输入阀杆尺寸"
-                ></el-input>
-              </el-form-item>
-            </el-col>
-            <el-col :span="24">
-              <el-form-item label="价格" label-width="80px" prop="marketprice">
-                <el-input
-                  v-model="form.marketprice"
-                  autocomplete="off"
-                  placeholder="请输入价格"
-                ></el-input>
-              </el-form-item>
-            </el-col>
-          </el-form>
-        </el-row>
-      </div>
-      <div class="fixed__btn__panel">
-        <el-button size="small" @click="drawer = false" class="normal-btn-width"
-          >{{$t('取 消')}}</el-button
-        >
-        <el-button
-          size="small"
-          type="primary"
-          @click="onSubmit"
-          :loading="loading"
-          class="normal-btn-width"
-          >{{$t('确 定')}}</el-button
-        >
-      </div>
-    </el-drawer>
-  </div>
-</template>
-
-<script>
-import { mapGetters } from "vuex";
-export default {
-  props: ["data"],
-  inject: [
-    "itemTypeList",
-    "caliber",
-    "pressure",
-    "connection",
-    "bodymaterial",
-    "valveplatematerial",
-    "stemmaterial",
-    "plinthmaterial",
-  ],
-  data() {
-    return {
-      drawer: false,
-      visible1: false,
-      timer: null,
-      isDisabled: false,
-      isSelectPhone: "",
-      selectType: [],
-      rules: {
-        itemno: [
-          { required: true, message: "请输入主阀料号", trigger: "blur" },
-        ],
-        marketprice: [
-          { required: true, message: "请输入价格", trigger: "blur" },
-          {
-            pattern: /^([1-9][0-9]*)+(\.[0-9]{1,2})?$/,
-            message: "请输入数字(最多两位小数)",
-            trigger: "blur",
-          },
-        ],
-        itemname: [{ required: true, message: "请输入名称", trigger: "blur" }],
-        valvetype: [
-          { required: true, message: "请选择阀门类型", trigger: "change" },
-        ],
-        caliber: [
-          { required: true, message: "请选择公称通径", trigger: "change" },
-        ],
-        pressure: [
-          { required: true, message: "请选择公称压力", trigger: "change" },
-        ],
-        connection: [
-          { required: true, message: "请选择连接方式", trigger: "change" },
-        ],
-        bodymaterial: [
-          { required: true, message: "请选择阀体材质", trigger: "change" },
-        ],
-        valveplatematerial: [
-          { required: true, message: "请选择阀板材质", trigger: "change" },
-        ],
-        stemmaterial: [
-          { required: true, message: "请选择阀杆材质", trigger: "change" },
-        ],
-        plinthmaterial: [
-          { required: true, message: "请选择阀座材质", trigger: "change" },
-        ],
-      },
-      form: {
-        itemid: 0,
-        plm_itemextendid: 0,
-        itemno: "",
-        itemname: "",
-        marketprice: "",
-        valvetype: "",
-        caliber: "", //公称通径
-        pressure: "", //公称压力
-        connection: "",
-        bodymaterial: "",
-        valveplatematerial: "",
-        stemmaterial: "",
-        plinthmaterial: "",
-        torque: "",
-        flh: "",
-        stemsize: "",
-      },
-      options: [],
-    };
-  },
-  computed: {
-    ...mapGetters({
-      loading: "loading",
-    }),
-  },
-  watch: {
-    drawer(val) {
-      if (!val) {
-        this.$refs.form.resetFields();
-      }
-    },
-  },
-  methods: {
-    onShow() {
-      this.form = Object.assign({},this.form,this.data)
-      this.drawer = true;
-    },
-    onSubmit() {
-      this.$refs["form"].validate((valid) => {
-        if (!valid) return false;
-        this.$store.commit("setLoading", true);
-        this.$api
-          .requested({
-            id: 2024060116124902,
-            content: this.form,
-          })
-          .then((res) => {
-            this.tool.showMessage(res, () => {
-              this.$store.dispatch("changeDetailDrawer", true);
-              this.$router.push({
-                path: "/itemDetail",
-                query: { id: res.data.itemid, rowindex: res.data.rowindex },
-              });
-              this.drawer = false;
-              this.$emit("onSuccess", res.data);
-            });
-            this.$store.commit("setLoading", false);
-          });
-      });
-    },
-  },
-};
-</script>
-<style scoped>
-.dialog-footer {
-  margin-top: 32px;
-  text-align: center;
-}
-</style>

+ 0 - 29
src/utils/copy.js

@@ -1,29 +0,0 @@
-// 获取应用权限
-checkAuth (appname,auth) {
-  // console.log(appname)
-  try {
-    let _haveAuth = true
-    
-    let modules = JSON.parse(sessionStorage.getItem('active_modules'))
-    
-    let apps =  modules.apps
-
-    // 获取当前应用数据
-    let active_apps = apps.filter(item => {
-      return item.name === appname
-    })
-
-    // 获取当前应用权限
-    let auth_list = active_apps[0].meta.auth
-
-    // 判断是否拥有权限
-    _haveAuth = auth_list.some(item=>item.option === auth)
-
-    return _haveAuth
-    
-  } catch (error) {
-
-  }
-  
- 
-},