加入打印名称

This commit is contained in:
java110 2021-07-22 09:26:13 +08:00
parent 94d9331207
commit 79b8fd1acd
5 changed files with 50 additions and 8 deletions

View File

@ -17,12 +17,19 @@
</select> </select>
</div> </div>
</div> </div>
<div class="form-group row">
<label class="col-sm-2 col-form-label">名称</label>
<div class="col-sm-10">
<input v-model="addFeePrintSpecInfo.printName" type="text" placeholder="必填,请填写名称"
class="form-control">
</div>
</div>
<div class="form-group row"> <div class="form-group row">
<label class="col-sm-2 col-form-label">图片</label> <label class="col-sm-2 col-form-label">图片</label>
<div class="col-sm-10"> <div class="col-sm-10">
<vc:create path="frame/uploadImage" callBackListener="addFeePrintSpec" <vc:create path="frame/uploadImage" callBackListener="addFeePrintSpec"
callBackFunction="notifyUploadImage" imageCount="1" callBackFunction="notifyUploadImage" imageCount="1" namespace="addFeePrintSpec">
namespace="addFeePrintSpec">
</vc:create> </vc:create>
</div> </div>
</div> </div>

View File

@ -10,6 +10,7 @@
specCd: '', specCd: '',
content: '', content: '',
qrImg: '', qrImg: '',
printName: '',
} }
}, },
_initMethod: function () { _initMethod: function () {
@ -39,6 +40,18 @@
errInfo: "规格不是有效数字" errInfo: "规格不是有效数字"
}, },
], ],
'addFeePrintSpecInfo.printName': [
{
limit: "required",
param: "",
errInfo: "名称不能为空"
},
{
limit: "maxLength",
param: "128",
errInfo: "名称太长"
},
],
'addFeePrintSpecInfo.content': [ 'addFeePrintSpecInfo.content': [
{ {
limit: "required", limit: "required",
@ -100,6 +113,7 @@
specCd: '', specCd: '',
content: '', content: '',
qrImg: '', qrImg: '',
printName: '',
}; };
} }
} }

View File

@ -16,6 +16,13 @@
<option value="2020">收据打印说明</option> <option value="2020">收据打印说明</option>
</select> </div> </select> </div>
</div> </div>
<div class="form-group row">
<label class="col-sm-2 col-form-label">名称</label>
<div class="col-sm-10">
<input v-model="editFeePrintSpecInfo.printName" type="text" placeholder="必填,请填写名称"
class="form-control">
</div>
</div>
<div class="form-group row"> <div class="form-group row">
<label class="col-sm-2 col-form-label">必填</label> <label class="col-sm-2 col-form-label">必填</label>

View File

@ -7,7 +7,7 @@
specCd: '', specCd: '',
content: '', content: '',
qrImg: '', qrImg: '',
printName:'',
} }
}, },
_initMethod: function () { _initMethod: function () {
@ -49,6 +49,18 @@
errInfo: "规格不是有效数字" errInfo: "规格不是有效数字"
}, },
], ],
'editFeePrintSpecInfo.printName': [
{
limit: "required",
param: "",
errInfo: "名称不能为空"
},
{
limit: "maxLength",
param: "128",
errInfo: "名称太长"
},
],
'editFeePrintSpecInfo.content': [ 'editFeePrintSpecInfo.content': [
{ {
limit: "required", limit: "required",
@ -106,7 +118,7 @@
specCd: '', specCd: '',
content: '', content: '',
qrImg: '', qrImg: '',
printName:'',
} }
} }
} }

View File

@ -16,6 +16,7 @@
<thead> <thead>
<tr> <tr>
<th class="text-center">图片</th> <th class="text-center">图片</th>
<th class="text-center">名称</th>
<th class="text-center">规格</th> <th class="text-center">规格</th>
<th class="text-center">编码</th> <th class="text-center">编码</th>
<th class="text-center">操作</th> <th class="text-center">操作</th>
@ -27,6 +28,7 @@
<img :src="feePrintSpec.qrImg" style="border-radius: 5px;" width="100px" <img :src="feePrintSpec.qrImg" style="border-radius: 5px;" width="100px"
height="100px"/> height="100px"/>
</td> </td>
<td class="text-center">{{feePrintSpec.printName}}</td>
<td class="text-center">{{feePrintSpec.specCd == '1010'?'催缴打印说明':'收据打印说明'}}</td> <td class="text-center">{{feePrintSpec.specCd == '1010'?'催缴打印说明':'收据打印说明'}}</td>
<td class="text-center">{{feePrintSpec.printId}}</td> <td class="text-center">{{feePrintSpec.printId}}</td>
<td class="text-center"> <td class="text-center">