Selaa lähdekoodia

增加激光机加工产品尺寸

lxf 2 vuotta sitten
vanhempi
commit
f57caa2b62

+ 4 - 3
.env.development

@@ -4,15 +4,16 @@ ENV = 'development'
 # 尔泓/开发环境
 VUE_APP_BASE_API = '/api'
 
-VUE_APP_ACTION_URL='http://192.168.1.164:8181/api/blade-resource/local/file/upload'
+VUE_APP_ACTION_URL='http://www.printmat.cn:8181/api/blade-resource/local/file/upload'
 
-VUE_APP_EXPRESSAGE_URL='http://192.168.1.164:8181/api/saas-production/saas/production/expressagereconciliation/save'
+VUE_APP_EXPRESSAGE_URL='http://www.printmat.cn:8181/api/saas-production/saas/production/expressagereconciliation/save'
 
 VUE_APP_IMG_URL='http://www.printmat.cn:8181/file'
 
 VUE_APP_FILE_PREFIX='ftp://www.printmat.cn/'
 
-VUE_APP_MESSAGE_URL='ws://192.168.1.164/api'
+VUE_APP_MESSAGE_URL='ws://www.printmat.cn:8181'
+# VUE_APP_MESSAGE_URL='ws://192.168.1.164/api'
 
 VUE_APP_TIME = 3000000
 

+ 22 - 7
src/views/shengde/productionSystem/productionOperation/proofing/index.vue

@@ -7,12 +7,24 @@
             <span style="color: #666666">图稿文件名请重命名成 1.ez3</span>
           </div>
           <br />
-          <el-form-item label="打样模板:" prop="p">
+          <el-form-item label="打样模板(长):" prop="long">
             <el-input-number
               size="small"
               style="width: 100%"
-              placeholder="请输入打样模板"
-              v-model="form.p"
+              placeholder="请输入打样模板(长)"
+              v-model="form.long"
+              :controls="false"
+              :min="0"
+              :max="99999999"
+              :precision="0"
+            />
+          </el-form-item>
+          <el-form-item label="打样模板(宽):" prop="wide">
+            <el-input-number
+              size="small"
+              style="width: 100%"
+              placeholder="请输入打样模板(宽)"
+              v-model="form.wide"
               :controls="false"
               :min="0"
               :max="99999999"
@@ -40,25 +52,28 @@ export default {
     return {
       form: {
         id: '',
-        p: '',
+        wide: '',
+        long: '',
       },
       filePrefix: process.env.VUE_APP_FILE_PREFIX,
       formRules: {
-        p: [{ required: true, message: '请输入打样模板', trigger: 'blur' }],
+        wide: [{ required: true, message: '请输入打样模板(宽)', trigger: 'blur' }],
+        long: [{ required: true, message: '请输入打样模板(长)', trigger: 'blur' }],
       },
     }
   },
   created() {},
   mounted() {
     API.getLaserDetail({}).then((res) => {
-      this.form.p = res.data.data.productId
+      this.form.long = res.data.data.long
+      this.form.wide = res.data.data.wide
     })
   },
   methods: {
     clickSubmit() {
       this.$refs.ruleForm.validate((valid) => {
         if (valid) {
-          API.editLaserDetail({ p: this.form.p }).then(() => {
+          API.editLaserDetail({ wide: this.form.wide, long: this.form.long }).then(() => {
             this.msgSuccess('保存成功')
           })
         }