QuKatie 3 年 前
コミット
d6815fb4e4

+ 44 - 9
src/views/approveData/configuration/mainList.json

@@ -29,6 +29,7 @@
       "prop": "processType",
       "type": "select",
       "hide": true,
+      "showColumn":false,
       "dicData": [
         {
           "label": "付费审批",
@@ -61,7 +62,6 @@
       ],
       "search": true,
       "overHidden": true,
-      "width": 200,
       "index": 1
     },
     {
@@ -69,14 +69,14 @@
       "prop": "checkType",
       "search": false,
       "overHidden": true,
-      "width": 180,
+      "width": 100,
       "index": 2
     },
     {
       "label": "审核状态",
       "prop": "auditStatus",
       "type": "select",
-      "dicUrl": "/api/blade-system/dict-biz/dictionary?code=auditStatus",
+      "dicData":[],
       "props": {
         "label": "dictValue",
         "value": "dictKey"
@@ -84,7 +84,6 @@
       "search": true,
       "searchValue": "S",
       "overHidden": true,
-      "width": 200,
       "index": 3
     },
     {
@@ -92,15 +91,16 @@
       "prop": "corpsId",
       "search": true,
       "hide": true,
+      "showColumn":false,
       "overHidden": true,
-      "width": 200,
+      "width": 100,
       "index": 4
     },
     {
       "label": "往来单位",
       "prop": "corpsName",
       "overHidden": true,
-      "width": 200,
+      "width": 100,
       "index": 5
     },
     {
@@ -108,7 +108,7 @@
       "prop": "orderNo",
       "search": true,
       "overHidden": true,
-      "width": 180,
+      "width": 100,
       "index": 6
     },
     {
@@ -117,7 +117,7 @@
       "overHidden": true,
       "search": true,
       "index": 7,
-      "width": 150
+      "width": 100
     },
     {
       "label": "申请日期",
@@ -130,7 +130,42 @@
       "search": true,
       "overHidden": true,
       "index": 8,
-      "width":200
+      "width":150
+    },
+    {
+      "label": "数量",
+      "prop": "orderQuantity",
+      "overHidden": true,
+      "width": 100,
+      "index": 9
+    },
+    {
+      "label": "金额",
+      "prop": "amount",
+      "overHidden": true,
+      "width": 100,
+      "index": 10
+    },
+    {
+      "label": "利润率",
+      "prop": "grossProfitRate",
+      "overHidden": true,
+      "width": 100,
+      "index": 11
+    },
+    {
+      "label": "利润",
+      "prop": "grossProfit",
+      "overHidden": true,
+      "width": 100,
+      "index": 12
+    },
+    {
+      "label": "订单备注",
+      "prop": "orderRemark",
+      "overHidden": true,
+      "width": 100,
+      "index": 13
     }
   ]
 }

+ 5 - 17
src/views/approveData/index.vue

@@ -160,11 +160,15 @@ export default {
   },
   created() {
     getUserInfo().then(res => {
-      if (res.data.data.billType) {
+      if (res.data.data.billType==1) {
         this.option = option2;
       } else {
         this.option = option;
       }
+      this.getWorkDicts("auditStatus").then(res => {
+      this.findObject(this.option.column, "auditStatus").dicData =
+        res.data.data;
+      });
     });
   },
   mounted() {
@@ -259,22 +263,6 @@ export default {
       };
       this.show = false;
     },
-    rowDel(row, index, done) {
-      if (row.id) {
-        this.$confirm("确定将选择数据删除?", {
-          confirmButtonText: "确定",
-          cancelButtonText: "取消",
-          type: "warning"
-        }).then(() => {
-          remove(row.id).then(res => {
-            if (res.data.success) {
-              this.$message.success("操作成功!");
-              this.onLoad(this.page);
-            }
-          });
-        });
-      }
-    },
     //点击搜索按钮触发
     searchChange(params, done) {
       this.query = params;

+ 15 - 16
src/views/businessManagement/deliveryNotice/detailsPageEdit.vue

@@ -28,7 +28,7 @@
           type="primary"
           size="small"
           :disabled="detailData.seeDisabled || arrivalDisabled"
-          v-if="form.deliveryStatus == '已货'"
+          v-if="form.deliveryStatus == '已货'"
           :loading="saveLoading"
           @click="confirmArrival"
         >确认到货</el-button>
@@ -37,10 +37,10 @@
           type="primary"
           @click="revokeOutGoods"
           size="small"
-          v-if="form.deliveryStatus == '已货'"
+          v-if="form.deliveryStatus == '已货'"
           :loading="saveLoading"
           :disabled="detailData.seeDisabled || arrivalDisabled"
-        >撤销货</el-button>
+        >撤销货</el-button>
         <el-button
           class="el-button--small-yh"
           type="primary"
@@ -49,7 +49,7 @@
           v-if="form.deliveryStatus == '录入'"
           :loading="saveLoading"
           :disabled="detailData.seeDisabled || !form.id || arrivalDisabled"
-        >确认货</el-button>
+        >确认货</el-button>
         <el-button
           class="el-button--small-yh"
           size="small"
@@ -143,10 +143,10 @@
               @resetColumn="resetColumn"
               :cell-style="goodsRowClassName"
           >
-            <template slot="headerSerial" slot-scope="{column}">
+            <template slot="headerSerial">
               <el-button type="primary" icon="el-icon-circle-plus-outline" circle size="mini" @click="$refs.crudContact.rowCellAdd()"></el-button>
             </template>
-            <template slot="code" slot-scope="{row,index}">
+            <template slot="code" slot-scope="{row}">
 <!--              <el-button type="text" size="mini" style="padding:4px 10px;float:left" @click="commodityChoice(row)" :disabled="detailData.seeDisabled || !row.$cellEdit || arrivalDisabled || deliverDisabled">选择</el-button>-->
               <span>{{ row.code }}</span>
             </template>
@@ -237,7 +237,7 @@
           :disabled="detailData.seeDisabled || arrivalDisabled"
           :srcType="3"
           optionType="GN"
-          itemType="货"
+          itemType="货"
           feeUrl="/blade-deliver-goods/deliveryfees/update"
           @beforeFinance="beforeFinance"
           :corpId="form.corpId"
@@ -523,7 +523,7 @@ export default {
       basicData: {
         column: [
           {
-            label: '系统编号',//货通知(点击)
+            label: '系统编号',//货通知(点击)
             prop: 'sysNo',
             disabled: true,
             rules: [
@@ -948,7 +948,7 @@ export default {
       this.pageLoading = true
       detail(id).then(res => {
         this.form = res.data.data;
-        if (this.form.deliveryStatus == '已货') {
+        if (this.form.deliveryStatus == '已货') {
           this.deliverDisabled = true;
           this.arrivalDisabled = false;
         } else if (this.form.deliveryStatus == '已到货') {
@@ -1078,7 +1078,7 @@ export default {
           })
           this.form.deliveryStatus = '录入'
         }
-        if (type == '货') {
+        if (type == '货') {
           this.$nextTick(() => {
             this.form.deliveryItemsList = this.contactsData.concat(this.giftData)
             this.form.deliveryFeesList = this.$refs.feeInfo.submitData()
@@ -1089,7 +1089,7 @@ export default {
             this.pageLoading = true
             this.saveActives = ''
             sendOutGoods(this.form).then(res => {
-              this.$message.success('货成功')
+              this.$message.success('货成功')
               this.queryData(res.data.data.id)
             }).finally(() => {
               this.pageLoading = false
@@ -1158,7 +1158,6 @@ export default {
         this.goodsShowData.forEach(item => {
           this.form.presenterIntegral = (Number(this.form.presenterIntegral) + Number(item.integral)).toFixed(2)
         })
-      } else {
       }
     },
     // 类别变换时触发
@@ -1579,7 +1578,7 @@ export default {
         this.leaveDetailsKey(this.$route.name)
       }
     },
-    // 确认
+    // 确认
     sendOutGoods() {
       this.$refs["form"].validate((valid) => {
         if (valid) {
@@ -1607,7 +1606,7 @@ export default {
               cancelButtonText: "取消",
               type: "warning"
             }).then(async () => {
-              await this.editCustomer(false, '货')
+              await this.editCustomer(false, '货')
             }).catch(() => {
               this.$message.info('已取消')
             })
@@ -1627,7 +1626,7 @@ export default {
             this.saveActives = ''
             this.saveLoading = true
             sendOutGoods(this.form).then(res => {
-              this.$message.success('货成功')
+              this.$message.success('货成功')
               this.queryData(res.data.data.id)
             }).finally(() => {
               this.pageLoading = false
@@ -1639,7 +1638,7 @@ export default {
         }
       });
     },
-    // 撤销
+    // 撤销
     revokeOutGoods() {
       this.$refs["form"].validate((valid) => {
         if (valid) {

+ 69 - 14
src/views/businessManagement/receipt/detailsPageEdit.vue

@@ -26,7 +26,7 @@
           size="small"
           v-if="form.deliveryStatus !== '录入'"
           :disabled="detailData.seeDisabled"
-        >撤销货</el-button>
+        >撤销货</el-button>
         <el-button
           class="el-button--small-yh"
           type="primary"
@@ -34,7 +34,7 @@
           size="small"
           v-if="form.deliveryStatus == '录入'"
           :disabled="detailData.seeDisabled || !this.form.id"
-        >确认货</el-button>
+        >确认货</el-button>
         <el-button
           class="el-button--small-yh"
           size="small"
@@ -103,6 +103,14 @@
                   :disabled="detailData.seeDisabled || receiveDisabled">
                   <el-option v-for="(item,index) in GYSInfo" :key="index" :label="item.addr" :value="item.addr"></el-option>
                 </el-select>
+                <el-radio-group v-else-if="item.prop === 'logisticsConfirm'" v-model="form[item.prop]" :disabled="detailData.seeDisabled || receiveDisabled" @change="logisticsConfirmChange">
+                   <el-radio label="1">是</el-radio>
+                   <el-radio label="0">否</el-radio>
+                </el-radio-group>
+                <el-radio-group v-else-if="item.prop === 'assistantConfirm'" v-model="form[item.prop]" :disabled="detailData.seeDisabled || receiveDisabled" @change="assistantConfirmChange">
+                   <el-radio label="1">是</el-radio>
+                   <el-radio label="0">否</el-radio>
+                </el-radio-group>                
                 <warehouse-select v-else-if="item.prop === 'storageId'" v-model="form[item.prop]"
                                   :configuration="configurationWarehouse" style="width: 100%" :disabled="detailData.seeDisabled || receiveDisabled"/>
                 <el-input
@@ -133,10 +141,10 @@
               @saveColumn="saveColumn('goods')"
               @resetColumn="resetColumn"
           >
-            <template slot="headerSerial" slot-scope="{column}">
+            <template slot="headerSerial">
               <el-button type="primary" icon="el-icon-circle-plus-outline" circle size="mini" @click="$refs.crudContact.rowCellAdd()"></el-button>
             </template>
-            <template slot="code" slot-scope="{row,index}">
+            <template slot="code" slot-scope="{row}">
               <el-button type="text" size="mini" style="padding:4px 10px;float:left" :disabled="detailData.seeDisabled || !row.$cellEdit" @click="commodityChoice(row)">选择</el-button>
               <span>{{ row.code }}</span>
             </template>
@@ -194,7 +202,7 @@
           @beforeFinance="beforeFinance"
           :srcType="3"
           optionType="GN"
-          itemType="货"
+          itemType="货"
           feeUrl="/blade-deliver-goods/deliveryfees/update"
           :corpId="form.corpId"
         />
@@ -329,7 +337,7 @@ import {
 } from "@/util/validate";
 import {detail as GYSDetail} from "@/api/basicData/customerInformation";
 import { getMarketPrice, getPurchasePrice } from "@/api/basicData/fees";
-
+import { dateFormat } from "@/util/date";
 export default {
   name: "detailsPage",
   props: {
@@ -612,7 +620,36 @@ export default {
                 trigger: 'blur'
               }
             ]
-          },{
+          },
+          {
+              label: "物流确认",
+              prop: "logisticsConfirm",
+          },
+          {
+              label: "操作人",
+              prop: "logisticsConfirmUser",
+              disabled:true
+          },   
+          {
+              label: "操作时间",
+              prop: "logisticsConfirmTime",
+              disabled:true
+          },  
+          {
+              label: "助理确认",
+              prop: "assistantConfirm",
+          }, 
+          {
+              label: "操作人",
+              prop: "assistantConfirmUser",
+              disabled:true
+          },   
+          {
+              label: "操作时间",
+              prop: "assistantConfirmTime",
+              disabled:true
+          },                                       
+          {
             label: "入库单备注",
             span: 24,
             type: 'textarea',
@@ -645,7 +682,7 @@ export default {
       rowHeight: '',
       // 查询时loading页面
       pageLoading: false,
-      // 货禁用
+      // 货禁用
       receiveDisabled: false,
       messageVisble:false,
       GYSInfo: [], //供应商发货方信息
@@ -1013,6 +1050,24 @@ export default {
       this.treeDeptIdCost = "";
       this.treeData = [];
     },
+    logisticsConfirmChange(row){
+          if(row==1){
+        this.$set(this.form, 'logisticsConfirmUser',localStorage.getItem("roleName"))
+        this.$set(this.form, 'logisticsConfirmTime',dateFormat(new Date(), "yyyy-MM-dd hh:mm:ss"))
+      }else{
+        this.$set(this.form, 'logisticsConfirmUser',null)
+        this.$set(this.form, 'logisticsConfirmTime',null)
+      }
+    },
+    assistantConfirmChange(row){
+       if(row==1){
+        this.$set(this.form, 'assistantConfirmUser',localStorage.getItem("roleName"))
+        this.$set(this.form, 'assistantConfirmTime',dateFormat(new Date(), "yyyy-MM-dd hh:mm:ss"))
+      }else{
+        this.$set(this.form, 'assistantConfirmUser',null)
+        this.$set(this.form, 'assistantConfirmTime',null)
+      }
+    },
     //选中触发
     selectionChange(list) {
       console.log(list);
@@ -1166,7 +1221,7 @@ export default {
       this.configuration.dicData = this.configuration.dicData.concat(data)
       this.removeRepeat()
     },
-    // 确认
+    // 确认
     sendInGoods() {
       this.$refs["form"].validate((valid) => {
         if (valid) {
@@ -1183,7 +1238,7 @@ export default {
               cancelButtonText: "取消",
               type: "warning"
             }).then(async () => {
-              await this.editCustomer(false, '货')
+              await this.editCustomer(false, '货')
             }).catch(() => {
               this.$message.info('已取消')
             })
@@ -1197,7 +1252,7 @@ export default {
             }
             this.pageLoading = true
             sendInGoods(this.form).then(res => {
-              this.$message.success('货成功')
+              this.$message.success('货成功')
               this.queryData(res.data.data.id)
             }).finally(() => {
               this.pageLoading = false
@@ -1208,7 +1263,7 @@ export default {
         }
       });
     },
-    // 撤销
+    // 撤销
     revokeInGoods() {
       this.$refs["form"].validate((valid) => {
         if (valid) {
@@ -1265,7 +1320,7 @@ export default {
             } else {
               this.queryData(res.data.data.id)
             }
-            if (type == '货') {
+            if (type == '货') {
               this.$nextTick(() => {
                 this.form.deliveryItemsList = this.contactsData
                 this.form.deliveryFeesList = this.advantageProjectData
@@ -1275,7 +1330,7 @@ export default {
                 }
                 this.pageLoading = true
                 sendInGoods(this.form).then(res => {
-                  this.$message.success('货成功')
+                  this.$message.success('货成功')
                   this.queryData(res.data.data.id)
                 }).finally(() => {
                   this.pageLoading = false