caojunjie 2 years ago
parent
commit
a187c19b71

+ 2 - 1
src/components/check/check.vue

@@ -99,7 +99,8 @@
           cancelButtonText: "取消",
           type: "warning",
         }).then(() => {
-          this.checkData.operate =  operate
+            console.log(operate)
+          this.checkData.operate = operate
           if(this.idList.length !== 0){
             //批量
             this.buttonLoading = true

+ 5 - 9
src/components/part-library/main.vue

@@ -174,7 +174,6 @@ export default {
         case 6:
           name = '其他'
           break;
-
       }
       return name
     },
@@ -187,23 +186,21 @@ export default {
       };
       let obj = Object.assign(data, this.search);
       this.loading = true;
-      getPricebank(page.currentPage, page.pageSize, obj)
-        .then(res => {
+      getPricebank(page.currentPage, page.pageSize, obj).then(res => {
           this.data = res.data.data.records ? res.data.data.records : [];
           this.page.total = res.data.data.total;
           if (this.page.total > 0) {
-            this.tableOption.height = window.innerHeight - 350;
+              this.tableOption.height = window.innerHeight - 350;
           }
-        })
-        .finally(() => {
+      }).finally(() => {
           this.loading = false;
-        });
+      });
     },
     selectionChange(list) {
       this.selectionList = list;
     },
     priceChange(row) {
-      row.amout = _.multiply(row.price, row.goodNumber)
+        row.amout = _.multiply(row.price, row.goodNumber).toFixed(2)
     },
     importData() {
       this.$emit("importPart", this.pickData, this.partType);
@@ -222,5 +219,4 @@ export default {
 </script>
 
 <style scoped lang="scss">
-
 </style>

+ 47 - 5
src/views/exportTrade/invoice/detailsPage.vue

@@ -523,21 +523,63 @@ export default {
             type: "textarea",
             minRows: 2,
             disabled: true,
-            span: 24
+            span: 16
+          },{
+            label: '需产地证',
+            prop: 'certificateOriginRequired',
+            type: 'select',
+            span: 8,
+            dicData: [{
+                label: "是",
+                value: "1"
+            }, {
+                label: "否",
+                value: "0"
+            }],
+            value: "1"
           },{
             label: "船务备注",
             prop: "shippingRemark",
             type: "textarea",
             minRows: 2,
             disabled: true,
-            span: 24
-          },
-          {
+            span: 16
+          },{
+            label: "签单方式",
+            prop: "signingMethod",
+            span: 8,
+            type: "select",
+            dicUrl: "/api/blade-system/dict-biz/dictionary?code=signing_method",
+            props: {
+                label: "dictValue",
+                value: "dictValue"
+            },
+            rules: [{
+                required: false,
+                message: "",
+                trigger: "blur"
+            }]
+          },{
             label: "备注",
             prop: "deliveryRemarks",
             type: "textarea",
             minRows: 2,
-            span: 24
+            span: 16
+          },{
+            label: "三方检验",
+            prop: "tripartiteInspection",
+            span: 8,
+            type: "select",
+            dicUrl: "/api/blade-system/dict-biz/dictionary?code=tripartite_inspection",
+            props: {
+                label: "dictValue",
+                value: "dictValue"
+            },
+            rules: [{
+                required: false,
+                message: "",
+                trigger: "blur"
+            }]
           }
         ]
       },

+ 1 - 1
src/views/exportTrade/purchaseContract/config/customerContact.json

@@ -15,7 +15,7 @@
   "showSummary": true,
   "column": [
     {
-      "label": "销售单号",
+      "label": "采购单号",
       "prop": "billNo",
       "index": 1,
       "width": 100,

+ 112 - 67
src/views/exportTrade/purchaseContract/detailsPage.vue

@@ -24,13 +24,17 @@
             审核处理<i class="el-icon-arrow-down el-icon--right"></i>
           </el-button>
           <el-dropdown-menu slot="dropdown">
-            <el-dropdown-item
-              :disabled="form.status > 0"
-              @click.native="pleaseCheck"
-              >请核数据</el-dropdown-item
-            >
-            <el-dropdown-item disabled>审核进度</el-dropdown-item>
-            <el-dropdown-item disabled>撤销请核</el-dropdown-item>
+              <el-dropdown-item
+                      :disabled="form.status > 0"
+                      @click.native="pleaseCheck"
+              >请核数据
+              </el-dropdown-item>
+              <el-dropdown-item :disabled="!form.status || form.status == 0" @click.native="checkScheduleDialog = true,checkId = form.id">
+                  审核进度
+              </el-dropdown-item>
+              <el-dropdown-item @click.native="checkDialog = true;checkData = detailData.check;"
+                                v-if="detailData.check">审批
+              </el-dropdown-item>
           </el-dropdown-menu>
         </el-dropdown>
         <el-dropdown style="margin-right: 8px;">
@@ -80,15 +84,16 @@
             ></crop-select>
           </template>
           <template slot="exchangeRate">
-            <el-input
-              size="mini"
-              v-model="form.exchangeRate"
-              oninput="value=value.replace(/[^0-9.]/g,'').replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3')"
-              @change="rateChange"
-              placeholder="请输入 汇率"
-              :disabled="detailData.status == 1"
-              ><template slot="append">%</template></el-input
-            >
+              <el-input
+                      size="mini"
+                      v-model="form.exchangeRate"
+                      oninput="value=value.replace(/[^0-9.]/g,'').replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3')"
+                      @change="rateChange"
+                      placeholder="请输入 汇率"
+                      :disabled="detailData.status == 1"
+              >
+                  <template slot="append">%</template>
+              </el-input>
           </template>
           <template slot="orderNo">
             <el-input
@@ -242,10 +247,10 @@
       <div>
         <trade-card title="银行信息">
           <avue-form
-            class="trading-form"
-            ref="form"
-            v-model="form"
-            :option="bankOption"
+                  class="trading-form"
+                  ref="formTwo"
+                  v-model="form"
+                  :option="bankOption"
           />
         </trade-card>
       </div>
@@ -356,19 +361,42 @@
         append-to-body>
       <span>
         <el-date-picker
-            v-model="pickerValue"
-            type="date"
-            style="width: 100%;"
-            size="small"
-            value-format="yyyy-MM-dd HH:ss:mm"
-            placeholder="选择日期">
+                v-model="pickerValue"
+                type="date"
+                style="width: 100%;"
+                size="small"
+                value-format="yyyy-MM-dd HH:ss:mm"
+                placeholder="选择日期">
       </el-date-picker>
       </span>
-      <span slot="footer" class="dialog-footer">
+        <span slot="footer" class="dialog-footer">
         <el-button @click="dialog = false;">取 消</el-button>
         <el-button type="primary" @click="PSModification(fudaSatus)">确 定</el-button>
       </span>
     </el-dialog>
+      <el-dialog
+              append-to-body
+              title="审批进度"
+              class="el-dialogDeep"
+              :visible.sync="checkScheduleDialog"
+              width="40%"
+              v-if="checkScheduleDialog"
+              :close-on-click-modal="false"
+              :destroy-on-close="true"
+              :close-on-press-escape="false"
+              v-dialog-drag
+      >
+          <check-schedule
+                  :checkId="checkId"
+                  :batchNo="batchNo"
+                  @choceScheduleFun="choceScheduleFun"
+          ></check-schedule>
+      </el-dialog>
+      <el-dialog append-to-body title="审批" class="el-dialogDeep" :visible.sync="checkDialog" width="50%"
+                 :close-on-click-modal="false" :destroy-on-close="true" :close-on-press-escape="false" v-dialog-drag>
+          <check :checkData="checkData" :checkDetail="false" :idList="[]" @choceCheckFun="choceCheckFun">
+          </check>
+      </el-dialog>
   </div>
 </template>
 
@@ -388,26 +416,29 @@ import {
 } from "@/api/exportTrade/purchaseContract";
 import _ from "lodash";
 import reportDialog from "@/components/report-dialog/main";
-import { contrastObj, contrastList } from "@/util/contrastData";
+import {contrastObj, contrastList} from "@/util/contrastData";
 import {
-  isvalidatemobile,
-  validatename,
-  micrometerFormat,
-  IntegerFormat
+    isvalidatemobile,
+    validatename,
+    micrometerFormat,
+    IntegerFormat
 } from "@/util/validate";
 import financialAccount from "@/components/finance/financialAccount";
 import billApplication from "@/components/bill/billApplication";
 import {dateFormat} from "@/util/date";
+import check from "@/components/check/check.vue";
+import checkSchedule from "@/components/check/checkSchedule.vue";
+
 export default {
-  name: "detailsPageEdit",
-  watch:{
-    dialog(newVla, oldVal) {
-      if (newVla){
-        this.pickerValue = dateFormat(new Date(), "yyyy-MM-dd") + " 00:00:00"
-      }
-    }
-  },
-  data() {
+    name: "detailsPageEdit",
+    watch: {
+        dialog(newVla, oldVal) {
+            if (newVla) {
+                this.pickerValue = dateFormat(new Date(), "yyyy-MM-dd") + " 00:00:00"
+            }
+        }
+    },
+    data() {
     return {
       pickerValue:dateFormat(new Date(), "yyyy-MM-dd") + " 00:00:00",
       dialog:false,
@@ -653,17 +684,22 @@ export default {
       orderItemIds: [],
       itemtypeList: [],
       goodsSelections: [],
-      reData: null,
-      oldform: {
-        orderStatus: "录入"
-      },
-      olddata: [],
-      oldorderFeesList: [],
-      oldorderFilesList: [],
-      subLoading: false,
-      pageLoading: false,
-      showBut: true,
-      search: {}
+        reData: null,
+        oldform: {
+            orderStatus: "录入"
+        },
+        olddata: [],
+        oldorderFeesList: [],
+        oldorderFilesList: [],
+        subLoading: false,
+        pageLoading: false,
+        showBut: true,
+        search: {},
+        checkScheduleDialog: false,
+        checkId: '',
+        batchNo: '',
+        checkDialog: false,
+        checkData: {},
     };
   },
   props: {
@@ -672,11 +708,12 @@ export default {
     }
   },
   components: {
-    reportDialog,
-    feeInfo,
-    uploadFile,
-    financialAccount,
-    billApplication
+      checkSchedule, check,
+      reportDialog,
+      feeInfo,
+      uploadFile,
+      financialAccount,
+      billApplication
   },
   async created() {
     if (this.detailData.id) {
@@ -714,16 +751,24 @@ export default {
     }
   },
   methods: {
-    cellStyle() {
-      return "padding:0;height:40px;";
-    },
-    copyDoc() {
-      this.$emit("copyOrder", this.form.id);
-    },
-    PSModification(type){
-      if (!this.pickerValue)return this.$message.error("请选择日期")
-      const loading = this.$loading({
-        lock: true,
+      //审核关闭
+      choceScheduleFun() {
+          this.checkScheduleDialog = false
+      },
+      //关闭审核
+      choceCheckFun() {
+          this.checkDialog = false;
+      },
+      cellStyle() {
+          return "padding:0;height:40px;";
+      },
+      copyDoc() {
+          this.$emit("copyOrder", this.form.id);
+      },
+      PSModification(type) {
+          if (!this.pickerValue) return this.$message.error("请选择日期")
+          const loading = this.$loading({
+              lock: true,
         text: '操作中',
         spinner: 'el-icon-loading',
         background: 'rgba(255,255,255,0.7)'

+ 7 - 4
src/views/exportTrade/purchaseContract/index.vue

@@ -307,7 +307,7 @@ export default {
             dialogOption: {},
             dialogOptionList: {
                 searchShow: true,
-                searchMenuSpan: 16,
+                searchMenuSpan: 8,
                 border: true,
                 index: true,
                 viewBtn: false,
@@ -316,7 +316,7 @@ export default {
                 addBtn: false,
                 menuWidth: "100",
                 headerAlign: "center",
-                searchIcon: true,
+                searchIcon: false,
                 searchIndex: 2,
                 tip: false,
                 column: [{
@@ -324,6 +324,7 @@ export default {
                     prop: "billNo",
                     search: true,
                     searchSpan: 8,
+                    searchOrder:1,
                     overHidden: true
                 }, {
                     label: "销售日期",
@@ -404,6 +405,7 @@ export default {
                     label: "显示全部",
                     prop: "showAll",
                     searchSpan: 8,
+                    searchOrder:2,
                     overHidden: true,
                     type: "select",
                     clearable:false,
@@ -411,10 +413,10 @@ export default {
                     hide: true,
                     showColumn: false,
                     dicData: [{
-                        label: '不显示',
+                        label: '需采购',
                         value: 0
                     }, {
-                        label: '显示',
+                        label: '已采购',
                         value: 1
                     }],
                     searchValue: 0
@@ -458,6 +460,7 @@ export default {
     activated() {
         if (this.$route.query.check) {
             this.detailData = {
+                check: this.$route.query.check,
                 id: this.$route.query.check.billId
             };
             this.show = false;

+ 17 - 2
src/views/exportTrade/salesContract/detailsPage.vue

@@ -22,9 +22,11 @@
                         <el-dropdown-item :disabled="form.status > 0 || (!form.status && form.status !== 0)"
                                           @click.native="pleaseCheck">提交订单
                         </el-dropdown-item>
-                        <el-dropdown-item :disabled="form>0"
+                        <el-dropdown-item :disabled="!form.status || form.status == 0"
                                           @click.native="checkScheduleDialog = true,checkId = form.id">提交进度
                         </el-dropdown-item>
+                        <el-dropdown-item @click.native="checkDialog = true;checkData = detailData.check;" v-if="detailData.check">特殊审批
+                        </el-dropdown-item>
                         <!--                        <el-dropdown-item disabled>撤销请核</el-dropdown-item>-->
                     </el-dropdown-menu>
                 </el-dropdown>
@@ -480,6 +482,11 @@
                     @choceScheduleFun="choceScheduleFun"
             ></check-schedule>
         </el-dialog>
+        <el-dialog append-to-body title="审批" class="el-dialogDeep" :visible.sync="checkDialog" width="50%"
+                   :close-on-click-modal="false" :destroy-on-close="true" :close-on-press-escape="false" v-dialog-drag>
+            <check :checkData="checkData" :checkDetail="false" :idList="[]" @choceCheckFun="choceCheckFun">
+            </check>
+        </el-dialog>
   </div>
 </template>
 
@@ -546,6 +553,7 @@ import {
 } from "@/api/basicData/customerInformation";
 import goodsInfo from "./components/goodsInfo.vue";
 import checkSchedule from "@/components/check/checkSchedule.vue";
+import check from "@/components/check/check.vue";
 export default {
   name: "detailsPageEdit",
   data() {
@@ -1146,7 +1154,9 @@ export default {
       currencyList: [],
       allBoxs: [],
       search: {},
-      dateClauseList: []
+      dateClauseList: [],
+      checkDialog: false,
+      checkData: {},
     };
   },
   props: {
@@ -1155,6 +1165,7 @@ export default {
     }
   },
   components: {
+      check,
       checkSchedule,
     reportDialog,
     feeInfo,
@@ -1261,6 +1272,10 @@ export default {
       choceScheduleFun() {
           this.checkScheduleDialog = false
       },
+      //关闭审核
+      choceCheckFun() {
+          this.checkDialog = false;
+      },
     cellStyle() {
       return "padding:0;height:40px;";
     },

+ 2 - 1
src/views/exportTrade/salesContract/index.vue

@@ -310,7 +310,8 @@ export default {
         }
         if (this.$route.query.check) {
             this.detailData = {
-                id: this.$route.query.check.billId
+                id: this.$route.query.check.billId,
+                check: this.$route.query.check,
             };
             this.show = false;
             this.$store.commit("IN_XS_STATUS");

+ 2 - 2
vue.config.js

@@ -32,9 +32,9 @@ module.exports = {
       '/api': {
         //本地服务接口地址
         // target: 'http://192.168.3.64:1080',
-        target: 'http://192.168.0.106:1080',
+        // target: 'http://192.168.0.106:1080',
         // 打包地址
-        // target: 'http://121.37.83.47:10004',//服务器ip
+        target: 'http://121.37.83.47:10004',//服务器ip
         // target: 'http://trade.tubaosoft.com:10004',//服务器域名
         ws: true,
         pathRewrite: {