瀏覽代碼

保存编码

lining 6 年之前
父節點
當前提交
f8bed8bf5e

+ 8 - 0
src/dashoo.cn/backend/api/controllers/oilsupplier/suppliercert.go

@@ -482,6 +482,8 @@ func (this *OilSupplierCertController) UpdateEntity() {
 func (this *OilSupplierCertController) UpdateStorage() {
 	id := this.Ctx.Input.Param(":id")
 	status := this.GetString("Status")
+	PACNumber := this.GetString("PACNumber")
+	SupplierId := this.GetString("SupplierId")
 	var errinfo ErrorInfo
 	if id == "" {
 		errinfo.Message = "操作失败!请求信息不完整"
@@ -545,6 +547,12 @@ func (this *OilSupplierCertController) UpdateStorage() {
 		model2.CertSubStatus = "1"
 		whereid := " SupplierCertId = " + id
 		svc.UpdateEntityBywheretbl(OilSupplierCertSubName, &model2, []string{"CertSubStatus"}, whereid)
+
+		var model3 supplier.OilSupplier
+		model3.PACNumber = PACNumber
+		cols3 := []string{"PACNumber"}
+		svc.UpdateEntityByIdCols(SupplierId, &model3, cols3)
+
 	}
 
 	if err == nil {

+ 1 - 1
src/dashoo.cn/frontend_web/src/components/oilsupplier/goodsinfo.vue

@@ -696,7 +696,7 @@
     <el-row v-if="formData.OperType == '制造商' && formData.Grade == '2'" >
       <el-col :span="4">
           <span>现场考察报告</span>
-          <el-button type="primary" style="margin-left: 10px;" plain size="mini" title="上传" @click="openDialog()" :disabled="formData.Status > '0'" >上传
+          <el-button type="primary" style="margin-left: 10px;" plain size="mini" title="上传" @click="openDialog()" >上传
           </el-button>
           <!--<el-upload multiple style="margin-top: 10px;" action="" ref="refuploadattach"-->
           <!--:http-request="uploadrequest" class="attach-uploader" :before-upload="beforeAvatarUpload">-->

+ 4 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierstorage/_opera/goodsedit.vue

@@ -407,6 +407,7 @@
           SkillerTotal: 0,
           Remark: '',
           IsDelete: '',
+          PACNumber: '',
           CreateOn: '',
           CreateUserId: '',
           CreateBy: '',
@@ -522,7 +523,9 @@
           type: 'warning'
         }).then(() => {
           let params = {
-            Status: this.formData.Status
+            Status: this.formData.Status,
+            PACNumber: this.formData.PACNumber,
+            SupplierId: this.formData.Id
           }
           apiCert.updateStorage(this.certId, params, this.$axios).then(res => {
             if (res.data.code === 0) {