zhongtianhaoyuan 3 tahun lalu
induk
melakukan
7386023731

+ 5 - 2
src/views/houseSelfCollect/inspectInfo.vue

@@ -184,6 +184,7 @@
       if(!this.types){
           this.types = 1
            this.information = '添加'
+           this.disabled = false
            this.inspect = {
           tidalGrainPrice: 0,
           buckleWeightRatio: 0,
@@ -232,7 +233,8 @@
       calculation() {
         let number = '000' + this.count
         number = number.substring(number.length - 4, number.length)
-        this.inspect.qualityNo = 'SGRK' + this.getdate() + this.cangNo + number //SGRK+8位时间+3位仓库编号+4位序列号
+        this.inspect.qualityNo = 'ZCRK' + this.getdate() + this.cangNo + number //SGRK+8位时间+3位仓库编号+4位序列号
+        
         // + this.verifyinit()
       },
       closeDialog() {
@@ -249,7 +251,7 @@
               data: formdata
             }).then((response) => {
               //编辑接口
-              this.inspect.pictureAddress=response.data.url
+              this.inspect.pictureAddress = response.data.url
                getinspectEdit(this.inspect)
                 .toPromise()
                 .then((response) => {
@@ -574,6 +576,7 @@
                     .toPromise()
                     .then((response) => {
                       this.inspect = response
+                      console.log(this.inspect,"cdsklh")
                     })
                   this.isShowPrint = true
                 })

+ 16 - 2
src/views/houseSelfCollect/paymentManagement.vue

@@ -8,8 +8,8 @@
         <ws-button type="primary"  @click="screen()">全部</ws-button>
         <ws-button type="primary" @click="reject" v-if="isShowAdopt">驳回</ws-button>
         <ws-button type="primary" @click="adopt" v-if="isShowAdopt">通过</ws-button>
-        <ws-button type="primary" @click="adopt" v-if="isShowAdopt">审核</ws-button>
-        <ws-button type="primary" @click="payment">付款</ws-button>
+        <ws-button type="primary" @click="handlepass" v-if="isShowAdopt">审核</ws-button>
+        <ws-button type="primary" @click="payment" v-hasPermission="`acquisitionManagement.acquisitionPay.pay`">付款</ws-button>
       </template>
       <template slot="right">
         <el-select
@@ -240,6 +240,20 @@ export default {
     this.getList()
   },
   methods: {
+    handlepass() {
+      var that = this
+      if (this.modification.length == 0) {
+        this.$message.warning('请选择要通过的条目')
+      } else {
+        this.$confirm(`审核通过后,任务将发送给财务,是否确定通过?`, {
+          cancelButtonText: '取消',
+          confirmButtonText: '确定',
+          type: 'warning',
+        }).then(() => {
+          that.audit(this.modification[0], 0, true, 2)
+        })
+      }
+    },
     getWarehouse() {
       selectWarehouseSelf({
         compId: sessionStorage.getItem('ws-pf_compId')

+ 1 - 1
vue.config.js

@@ -141,7 +141,7 @@ module.exports = {
         // target: 'https://product-server.winsea.com/', //目标地址
         // target: 'http://standard-dev.winsea.com/', //目标地址
         // target: 'http://localhost:8090/',
-        target: 'http://192.168.1.112:8090/',
+        target: 'http://192.168.1.120:8090/',
         // target: 'http://192.168.1.112:8090/',
         // target: 'http://192.168.1.121:8090/',
         // target: 'http://192.168.1.119:8090/',